FreeTextBox

The no. 1 free ASP.NET HTML Editor.
Welcome to FreeTextBox Sign in | Join | Help
in Search

Request for the permission of type 'System.Web.AspNetHostingPermission

Last post 05-14-2010, 7:22 AM by maradona12. 14 replies.
Sort Posts: Previous Next
  •  10-06-2005, 11:11 AM 4929

    Request for the permission of type 'System.Web.AspNetHostingPermission

    I need help with this - when I compile my VS 2k5 code I get the Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version-2.0.0.0, Culture=neutral, PublicKey Token=b77a5c561934e089' failed.

    Anyone have a fix for this... I'm using v3.1 and VS 2005 Beta2

    -rjp
  •  07-14-2006, 4:05 PM 6911 in reply to 4929

    Re: Request for the permission of type 'System.Web.AspNetHostingPermission

    I have the exact error and so far I have not heard anyone has fixed this problem. I'm looking at he KMTLlite version from InterAKT. It's free too.
  •  07-08-2007, 4:29 AM 8370 in reply to 6911

    Re: Request for the permission of type 'System.Web.AspNetHostingPermission

    I too have a similar issue. I have a web application written in ASP.net 2.0 from scratch. Since I knew that the hosting provider is running on a medium trust, I had configured my local IIS to run on medium trust as well. The Application runs great on my local server.

    When I Deploy the website using publish website option in VS2005, I get the error

    <<

    Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

    >>

    I have been researching on the net to get a solution to this problem without any luck so far.

     

  •  01-07-2009, 10:11 AM 9651 in reply to 8370

    Re: Request for the permission of type 'System.Web.AspNetHostingPermission

    Hi gobesthome!!

    I've the same problem as you! I really don't know after two working days how to solve this problem. I use Visual Web Developper 2008 and I want to publish my project on the server. And now, I got the same error as you!
    Could you already solve this problem? If yes, I would be very, very pleased you could help me...

     

    Thank's a lot!

    Regards, anditanny 

  •  01-09-2009, 11:38 AM 9656 in reply to 9651

    Re: Request for the permission of type 'System.Web.AspNetHostingPermission

    I also have the same problem.

    I am using VS 2008. Works locally, but when publishing to our development server I get the error.

    I have tried creating an empty default Web Application through VS 2008. Even when I publish that with no code, I get the error. Now, when I elimnate any references to anything in the Bin directory, it will run. Also, I took a working application from a different virtual directory on the same server, and it works fine.

    So, I don't think it is a permissions issue on the virtual directory itself. It appears that something in the Bin directory is causing this error. I have been doing alot of research and have tried a few of the suggestions I have seen, but nothing is working so far. I am wondering if there maybe is a policy file that is missing.

    The only other thing I noticed is that our dev server is running a different version of the .net framework than what comes with VS 2008. I have put in a request to get the version upgraded.

    Anyway, If I happen accross a solution, I will make sure to post it here. I'll keep checking to see if anybody else figures it out as well.

    Thanks,

    Chris

  •  10-12-2009, 7:56 PM 10084 in reply to 9656

    Re: Request for the permission of type 'System.Web.AspNetHostingPermission

    I was getting the same error:

    System.Security.SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed

    I was using a UNC path for the build path.  Changing it to a drive letter path resolved the problem:

        Target CompileLicxFiles:
            C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\LC.exe /target:MyLibrary.dll /complist:Properties\licenses.licx /outdir:obj\Release\ /i:E:\MyBuildPath\Source\MyLibrary\MyCompany.Framework\bin\Release\MyCompany.Framework.dll /i:E:\MyBuildPath\Source\MyLibrary\SuiteBuilder\SuiteBuilderDataLibrary\bin\Release\MyCompany.SuiteBuilderDataLibrary.dll /i:..\MyCompany.Framework\bin\AjaxControlToolkit.dll /i:E:\MyBuildPath\Source\MyLibrary\BluePrinter\BluePrinterLibrary\bin\Release\BluePrinterLibrary.dll /i:bin\FreeTextBox.dll /i:"C:\Program Files\PowerUp ASP\Tree View\bin\PowerUp.Web.UI.WebTree.dll" /i:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Configuration.dll /i:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Data.dll /i:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.DirectoryServices.dll /i:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.dll /i:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Drawing.dll /i:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.EnterpriseServices.dll /i:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Web.dll /i:C:\WINDOWS\assembly\GAC_MSIL\System.Web.Extensions\1.0.61025.0__31bf3856ad364e35\System.Web.Extensions.dll /i:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Web.Mobile.dll /i:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Web.Services.dll /i:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll /i:C:\WINDOWS\assembly\GAC_MSIL\System.Web.Extensions.Design\1.0.61025.0__31bf3856ad364e35\System.Web.Extensions.Design.dll /i:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Data.OracleClient.dll /i:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Runtime.Remoting.dll /i:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll /i:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Configuration.Install.dll /i:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Design.dll /i:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.ServiceProcess.dll

  •  10-29-2009, 9:15 PM 10106 in reply to 9656

    Re: Request for the permission of type 'System.Web.AspNetHostingPermission

    I have the same error using VS2008 Team system.  The local build works fine, when it is queued as server build, I got this error:

    LC(0,0): error LC0000: 'Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.'

    I tried to use the caspol.exe to grant full trust to a server share folder, where the build takes place. It did not help.  When I tried to replace the server build location using Drive Letter instead of a UNC server share location, the VS2008 gives me an error citing the drive letter is not  a UNC name.

    I suspect the error message was to complain about a particular assembly.  But I could not identify the Strong Name of the assembly it is complaining about.  Any idea?

     

     

  •  12-19-2009, 12:56 PM 10255 in reply to 10106

    Re: Request for the permission of type 'System.Web.AspNetHostingPermission

    This seems to be a really popular problem.

    Ellen
  •  01-29-2010, 1:42 AM 10310 in reply to 10255

    Re: Request for the permission of type 'System.Web.AspNetHostingPermission

    This is a regular occurring problem. So many people having the same query. 

    I really hope someone gets us out of it
  •  02-23-2010, 10:38 AM 10355 in reply to 10310

    Re: Request for the permission of type 'System.Web.AspNetHostingPermission

    I had this problem also when I moved my site to my live server. It was a permissions problem when my code would try to reference the freetextbox dll in my bin folder. I had to change the iis7 application pool property "Load User Profile" to true. Good Luck.


    Earl

    Jesus Is Lord And Savior

  •  03-02-2010, 4:52 AM 10369 in reply to 10355

    Re: Request for the permission of type 'System.Web.AspNetHostingPermission

    same here happen
  •  03-05-2010, 3:49 PM 10377 in reply to 10369

    Re: Request for the permission of type 'System.Web.AspNetHostingPermission

    Try removing the unused references in the project. 

    I had two apps, same version of freetextbox, one worked and one didn't.  The one that worked, I had removed all unused references, the other new app, I had not.  Which had a number of unused references when the project was originally created.

    Although this worked in my environment, I'm not exactly sure which reference was causing the issue.

     

    I'd be curious if this helps resolve anyones issue, please post your results.

     

     

  •  03-15-2010, 2:52 AM 10396 in reply to 10377

    Re: Request for the permission of type 'System.Web.AspNetHostingPermission

    I have the same problem, waiting for any answer. interest rates calculator
  •  03-15-2010, 12:13 PM 10397 in reply to 10377

    Re: Request for the permission of type 'System.Web.AspNetHostingPermission

  •  05-14-2010, 7:22 AM 51973 in reply to 4929

    Re: Request for the permission of type 'System.Web.AspNetHostingPermission

    Read more: Penny Stock Prophet, Penny Stock Prophet Review, ... Is Penny Stock Prophet scam? Read My Honest Review with FREE $697 bonus! Penny Stock Prophet Review

View as RSS news feed in XML
www.freetextbox.com