I'm trying to get an ASP.NET 2 app to run from my IIS6 with files placed on
another server.
If i run the app with files placed on the IIS6 server it works just fine.
But there is no space left so i have to place the files on another server.
When i do so i get an error when trying to run the app, se end off message.
I have tried to change the permissions for the app with the .Net 2
configuration and also by using "CasPol.exe -m -ag 1.2 -url
file://fileserver/share$/folder/bill.smith/public_html/* FullTrust" also
with no luck.
When is this permission change going in action? right away or after 10 min
or after a server restart?
Should i place this permission in another code group than
LocalIntranet_Zone?
I run the application pool with a custom account for diffrent reasons, i use
this account also for anonymous connections.
This works:
* Running any type of asp.net 2.0 app with files on local macine (iis6
webserver)
* Running an asp.net 2.0 app using "script inside" technique with files on
remote server
This dosent work:
* Running any type of asp.net 2.0 app using "code behind" technique with
files on remote server
So when i try to run the site that needs to be working i get the following
message from the browser:
Browser Error message:
_______________________________________________________________
Server Error in '/bill.smith' Application.
--------------------------------------------------------------------------------
Security Exception
Description: The application attempted to perform an operation not allowed
by the security policy. To grant this application the required permission
please contact your system administrator or change the application's trust
level in the configuration file.
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.
Source Error:
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.
Stack Trace:
[SecurityException: Request for the permission of type
'System.Web.AspNetHostingPermission, System, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
System.Reflection.Assembly.GetType(String name, Boolean throwOnError,
Boolean ignoreCase) +0
System.Web.UI.TemplateParser.GetType(String typeName, Boolean ignoreCase,
Boolean throwOnError) +270
System.Web.UI.TemplateParser.ProcessInheritsAttribute(String
baseTypeName, String codeFileBaseTypeName, String src, Assembly assembly)
+163
System.Web.UI.TemplateParser.PostProcessMainDirectiveAttributes(IDictionary
parseData) +192
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET
Version:2.0.50727.42
When get the message above i also get the message below in the event viewer
on the webserver:
Event viewer error on the iis6 server:
Event ID: 1314
Event Source: ASP.NET 2.0.50727.0
_____________________________________________________________________________
Event code: 4010
Event message: An unhandled security exception has occurred.
Event time: 2007-03-29 12:33:28
Event time (UTC): 2007-03-29 10:33:28
Event ID: c444100312884c2a95304e7cb790007a
Event sequence: 3
Event occurrence: 1
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/1/Root/bill.smith-1-128196380075596660
Trust level: Full
Application Virtual Path: /bill.smith
Application Path: \\fileserver\share$\folder\bill.smith\public_html\
Machine name: IIS6WEBSERVER
Process information:
Process ID: 3008
Process name: w3wp.exe
Account name: DOMAIN\IUSER_DOMSRVS
Request information:
Request URL: http://fileserver/bill.smith/withdll.aspx
Request path: /bill.smith/withdll.aspx
User host address: 192.168.0.10
User:
Is authenticated: False
Authentication Type:
Thread account name: DOMAIN\IUSER_DOMSRVS
Custom event details:
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
_________________________________________________________________________________
Thanks i advanced
Slint