Last post Mar 10, 2009 10:04 AM by email@example.com
Dec 27, 2008 01:08 AM|kinjalin|LINK
My project is on Win 2003 Server standard edition sp2 Visual Studio 9.0 sp1
Network Pc Xp sp2
when Debugging i get a message : The project location is not trusted.
after googling i used the Caspol.exe command (done successfully), i still get an error......
Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=188.8.131.52, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
Any help is greatly appreciated
Vs 2008 Network
Dec 27, 2008 05:45 AM|HostingASPNet|LINK
You could check this article -
Dec 29, 2008 05:12 AM|kinjalin|LINK
Thanks pal for the link. It indeed is a good article, but it did not help me out.
I still get the same error. More Details on that Error :
When i execute the Project on Network pc a message box pops up saying
" the project location is not trusted."
" Running the application may result in security exceptions when it attempts to perform actions which require full trust. "
and later when i start Debugging i get this on my Browser.
SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=184.108.40.206, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
System.Reflection.Assembly._GetType(String name, Boolean throwOnError, Boolean ignoreCase) +0
System.Reflection.Assembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase) +41
System.Web.UI.Util.GetTypeFromAssemblies(ICollection assemblies, String typeName, Boolean ignoreCase) +119
System.Web.UI.TemplateParser.GetType(String typeName, Boolean ignoreCase, Boolean throwOnError) +179
System.Web.UI.TemplateParser.ProcessInheritsAttribute(String baseTypeName, String codeFileBaseTypeName, String src, Assembly assembly) +95
System.Web.UI.TemplateParser.PostProcessMainDirectiveAttributes(IDictionary parseData) +192
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.
Mar 06, 2009 07:02 AM|kinjalin|LINK
Can somebody please throw some lights on this Error.
Mar 06, 2009 07:09 AM|nishanthnair|LINK
Check under which account the application pool of your website is executing. most propabley it will be Network Service.If it is the case, Try giving access to "Network Service " to the project directory.
Mar 09, 2009 06:45 AM|qwe123kids|LINK
seems to Me same quetion
and probably the Answer To question
Hope It helps
Mar 09, 2009 08:33 AM|kinjalin|LINK
Check under which account the application pool of your website is executing
Try giving access to "Network Service " to the project directory
i did not understand what steps should i follow.
Mar 09, 2009 09:34 AM|nishanthnair|LINK
Run->inetmgr -> (IIS will popup. find ur website)-> Expand Application Pools -> Right click on the Default App pool -> Select identity tab. There u can see the identity on which ur app pool is running. for this user, u need to give access.
Mar 10, 2009 01:26 AM|kinjalin|LINK
The Security Account shows Network Service.
I still can't figure out where the real problem lies.
Mar 10, 2009 01:32 AM|kinjalin|LINK
seems to Me same quetion
Thanks for ur reply,
I had already been thru the link & set the Permission Sets.
Mar 10, 2009 10:04 AMfirstname.lastname@example.org|LINK
Are you running on a UNC path? If so, see:
If not, does this apply:
You said you already used caspol to set permissions though so that should have taken care of it.