<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>ASP.NET AJAX Control Toolkit</title><link>http://forums.asp.net/1022.aspx</link><description>Here's your place to discuss everything in and about the AJAX Control Toolkit</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Request for the permission of type 'System.Web.AspNetHostingPermission' failed</title><link>http://forums.asp.net/thread/3434084.aspx</link><pubDate>Wed, 30 Sep 2009 19:41:24 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3434084</guid><dc:creator>jhlavenka</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3434084.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1022&amp;PostID=3434084</wfw:commentRss><description>&lt;p&gt;Yay! The first link worked for me, thanks!&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Request for the permission of type 'System.Web.AspNetHostingPermission' failed</title><link>http://forums.asp.net/thread/3331788.aspx</link><pubDate>Wed, 05 Aug 2009 19:18:45 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3331788</guid><dc:creator>jwkeenan</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3331788.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1022&amp;PostID=3331788</wfw:commentRss><description>&lt;p&gt;I was able to fix this issue by simply deleting the&amp;nbsp;application&amp;nbsp;in IIS&amp;nbsp;and adding it back, not sure what caused it but this fixed it for me.
&lt;p&gt;&lt;/p&gt;</description></item><item><title>Re: Request for the permission of type 'System.Web.AspNetHostingPermission' failed</title><link>http://forums.asp.net/thread/2982118.aspx</link><pubDate>Wed, 04 Mar 2009 13:58:45 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2982118</guid><dc:creator>BugSlayer</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2982118.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1022&amp;PostID=2982118</wfw:commentRss><description>&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;I was facing a similar issue,as the code files were stored on a mapped location, not on my local machine.&lt;/font&gt;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;I moved the entire webapp folder to my local drive and it compiled beautifully !&lt;/font&gt;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;Try doing this to make sure that is really the only-problem, before investing hours to fix it.&lt;/font&gt;&lt;/font&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Request for the permission of type 'System.Web.AspNetHostingPermission' failed</title><link>http://forums.asp.net/thread/2909695.aspx</link><pubDate>Mon, 02 Feb 2009 16:12:01 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2909695</guid><dc:creator>Fozzy279</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2909695.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1022&amp;PostID=2909695</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I&amp;#39;m getting the error on my local machine when trying to run/debug the site. On another machine, I get the error when trying to add the AJAX control toolkit into VS2008. The solution suggeated doesn&amp;#39;t seem to work as a) its not running on a web server - the virtual site created by VS2008 and secondly I can&amp;#39;t even add the controls.... Seems something that should be simple is made extremeley difficult!! Any idea on my problems?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Regards&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Request for the permission of type 'System.Web.AspNetHostingPermission' failed</title><link>http://forums.asp.net/thread/2020852.aspx</link><pubDate>Thu, 22 Nov 2007 13:58:43 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2020852</guid><dc:creator>Phr34ker</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2020852.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1022&amp;PostID=2020852</wfw:commentRss><description>&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;The &lt;a&gt;file:////\\server\sharename\&lt;/a&gt;*&amp;nbsp; -solution worked great for me, and I had a&amp;nbsp;different error. I had the extremely annoying:&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;SecurityException: Request for the permission of type &amp;#39;System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&amp;#39; failed.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;That pops up its ugly head waaaay to often in a multitude of situations (I believe I&amp;#39;ve gotten that error for 6 different things that has been wrong by now, but this solution was the one that solved the last one - and perhaps even had solved the otherones aswell, had I only seen it sooner).&lt;br /&gt;&lt;/font&gt;&lt;font face="Times New Roman" size="3"&gt;That message&amp;nbsp;is about as helful as most girlfriends policy: &amp;quot;If you don&amp;#39;t know what made me angry, I&amp;#39;m sure as hell not going to tell you either...&amp;quot;&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Re: Request for the permission of type 'System.Web.AspNetHostingPermission' failed</title><link>http://forums.asp.net/thread/1997737.aspx</link><pubDate>Fri, 09 Nov 2007 04:22:57 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1997737</guid><dc:creator>sbritto</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1997737.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1022&amp;PostID=1997737</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thank you for saving the day! Your link to this Microsoft article worked beautifully. I was about to change the code on my AJAX enabled website.&lt;/p&gt;&lt;p&gt;&lt;a href="http://support.microsoft.com/?id=320268" title="http://support.microsoft.com/?id=320268"&gt;http://support.microsoft.com/?id=320268&amp;nbsp;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Just wanted to return the favour and help anyone who encounters this error&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Server Error in &amp;#39;/&amp;#39; Application.&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;Security Exception &lt;br /&gt;Description: The application attempted to perform an operation not allowed by the security policy.&amp;nbsp; To grant this application the required permission please contact your system administrator or change the application&amp;#39;s trust level in the configuration file. &lt;br /&gt;&lt;br /&gt;Exception Details: System.Security.SecurityException: Request for the permission of type &amp;#39;System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&amp;#39; failed.&lt;br /&gt;&lt;br /&gt;Source Error: &lt;br /&gt;&lt;br /&gt;An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.&amp;nbsp; &lt;br /&gt;&lt;br /&gt;Stack Trace: &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;[SecurityException: Request for the permission of type &amp;#39;System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&amp;#39; failed.]&lt;br /&gt;&amp;nbsp;&amp;nbsp; System.Reflection.Assembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase) +0&lt;br /&gt;&amp;nbsp;&amp;nbsp; System.Web.UI.NamespaceTagNameToTypeMapper.System.Web.UI.ITagNameToTypeMapper.GetControlType(String tagName, IDictionary attribs) +85&lt;br /&gt;&amp;nbsp;&amp;nbsp; System.Web.UI.TagPrefixTagNameToTypeMapper.System.Web.UI.ITagNameToTypeMapper.GetControlType(String tagName, IDictionary attribs) +105&lt;br /&gt;&amp;nbsp;&amp;nbsp; System.Web.UI.MainTagNameToTypeMapper.GetControlType(String tagName, IDictionary attribs, Boolean fAllowHtmlTags) +253&lt;br /&gt;&amp;nbsp;&amp;nbsp; System.Web.UI.RootBuilder.GetChildControlType(String tagName, IDictionary attribs) +20&lt;br /&gt;&amp;nbsp;&amp;nbsp; System.Web.UI.ControlBuilder.CreateChildBuilder(String filter, String tagName, IDictionary attribs, TemplateParser parser, ControlBuilder parentBuilder, String id, Int32 line, VirtualPath virtualPath, Type&amp;amp; childType, Boolean defaultProperty) +127&lt;br /&gt;&amp;nbsp;&amp;nbsp; System.Web.UI.TemplateParser.ProcessBeginTag(Match match, String inputText) +427&lt;br /&gt;&amp;nbsp;&amp;nbsp; System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) +893&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832 &lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Request for the permission of type 'System.Web.AspNetHostingPermission' failed</title><link>http://forums.asp.net/thread/1838313.aspx</link><pubDate>Thu, 02 Aug 2007 18:14:25 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1838313</guid><dc:creator>ataxia1</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1838313.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1022&amp;PostID=1838313</wfw:commentRss><description>&lt;p&gt;I&amp;#39;ve seen tons of posts on this error, and all seem to have different resolutions.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s how I fixed mine:&lt;/p&gt;
&lt;p&gt;Instead of creating a new AJAX-enabled site on the remote server and copying in my files, I&amp;nbsp;created an empty virtual web.&lt;/p&gt;
&lt;p&gt;Then, I published&amp;nbsp; (In VB: &amp;nbsp;Build &amp;gt; Publish Web Site &amp;gt; &lt;a&gt;\\IP.IP.IP.IP\Share$\&lt;/a&gt;) the&amp;nbsp;working project&amp;nbsp;to the web server.&amp;nbsp; Publishing made it a self-contained package that works just fine.&lt;/p&gt;
&lt;p&gt;Hope this helps someone.&lt;/p&gt;</description></item><item><title>Re: Request for the permission of type 'System.Web.AspNetHostingPermission' failed</title><link>http://forums.asp.net/thread/1836385.aspx</link><pubDate>Thu, 02 Aug 2007 00:44:46 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1836385</guid><dc:creator>ataxia1</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1836385.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1022&amp;PostID=1836385</wfw:commentRss><description>&lt;p&gt;Links were corrupted in the above post.&amp;nbsp; Here they are for anyone else following this thread:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;quot;System.Security.SecurityException: Security error&amp;quot; error message when the virtual directory points to a remote share in ASP.NET&lt;/strong&gt;&lt;br /&gt;&lt;a href="http://support.microsoft.com/?id=320268"&gt;http://support.microsoft.com/?id=320268&lt;/a&gt;&lt;br /&gt;The application is local to the server, (C:\inetpub\etc...)&amp;nbsp;not on a remote share.&amp;nbsp; I &lt;u&gt;am&lt;/u&gt; programming and building&amp;nbsp;the project from a remote workstation.&amp;nbsp; Are there special procedures to build a site with Ajax Controls and the Control Toolkit when you are working from a remote workstation?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Troubleshooting common permissions and security-related issues in ASP.NET&lt;/strong&gt;&lt;br /&gt;&lt;a href="http://support.microsoft.com/?id=910449"&gt;http://support.microsoft.com/?id=910449&lt;/a&gt;&lt;br /&gt;I&amp;#39;ll take a look at these.&amp;nbsp; Our server is at another building and controlled by a different department.&amp;nbsp; Let&amp;#39;s hope they are in the mood for some in-depth toubleshooting.&lt;/p&gt;
&lt;p&gt;Thanks for the suggestions; I will give them a shot.&lt;/p&gt;</description></item><item><title>Re: Request for the permission of type 'System.Web.AspNetHostingPermission' failed</title><link>http://forums.asp.net/thread/1836282.aspx</link><pubDate>Wed, 01 Aug 2007 22:50:19 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1836282</guid><dc:creator>Phanatic</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1836282.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1022&amp;PostID=1836282</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I think you are running into CASPOL issues as your content resides on a remote share :&lt;/p&gt;
&lt;p&gt;Review this kb article which talks about similar issues :&lt;/p&gt;
&lt;p&gt;&lt;a class="" title="http://support.microsoft.com/?id=320268" href="http://forums.asp.net/t/%22System.Security.SecurityException:%20Security%20error%22%20error%20message%20when%20the%20virtual%20directory%20points%20to%20a%20remote%20share%20in%20ASP.NET"&gt;&amp;quot;System.Security.SecurityException: Security error&amp;quot; error message when the virtual directory points to a remote share in ASP.NET&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;and also :&lt;/p&gt;
&lt;p&gt;&lt;a class="" title="http://support.microsoft.com/?id=910449" href="http://forums.asp.net/t/Troubleshooting%20common%20permissions%20and%20security-related%20issues%20in%20ASP.NET"&gt;Troubleshooting common permissions and security-related issues in ASP.NET &lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Hope this helps&lt;/p&gt;</description></item><item><title>Request for the permission of type 'System.Web.AspNetHostingPermission' failed</title><link>http://forums.asp.net/thread/1835939.aspx</link><pubDate>Wed, 01 Aug 2007 19:25:49 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1835939</guid><dc:creator>ataxia1</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1835939.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1022&amp;PostID=1835939</wfw:commentRss><description>&lt;p&gt;Built a web app on my local machine, and it works perfectly.&amp;nbsp; Moved everything over to the production server (still editing and building from my local machine to the UNC path&amp;nbsp; &lt;a&gt;\\123.456.789.0\Share\SiteName&lt;/a&gt;), and I receive the following error (25 times)&amp;nbsp;when building the project:&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&lt;em&gt;Request for the permission of type &amp;#39;System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&amp;#39; failed.&lt;br /&gt;\\[SERVER NAME]\[FOLDERNAME]\orders-edit.aspx&amp;nbsp;196&lt;/em&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;I receive one error per Ajax Control Toolkit control in the project.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Found a couple other posts with similar issues and tried everything listed in those, including:&lt;/p&gt;
&lt;p&gt;- Generating a new (clean) web.config with defaults only&lt;br /&gt;- Turning on &amp;#39;Script &amp;amp; Executable&amp;#39; permissions on the virtual web&lt;br /&gt;- Defining classes with unlimited rights&lt;br /&gt;- Manually importing the Ajax System.XX dlls directly into the BIN folder&lt;br /&gt;- Reinstalling AJAX on the server&lt;br /&gt;- Setting the production server name under&amp;nbsp;Website &amp;gt; Start Options&lt;br /&gt;- Giving IUSR/IWAM/All Users execute rights to the BIN folder (yes... reaching for anything that even MIGHT work at this point)&lt;br /&gt;- IISReset&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve pretty much exhausted every article I could find, and the error hasn&amp;#39;t changed in the slightest.&lt;/p&gt;
&lt;p&gt;Any senior admins or developers out there willing to lend a hand?&lt;/p&gt;
&lt;p&gt;I would post code, but I&amp;#39;m fairly confident this is a problem with either permissions or the server settings since everything works perfectly from the development box.&lt;/p&gt;
&lt;p&gt;I&amp;#39;d really appreciate the help.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>