From: Slint on 29 Mar 2007 07:16 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
From: "WenJun Zhang[msft]" on 30 Mar 2007 05:38 Hi Slint, This should be an ASP.net CAS issue instead of IIS one. You can post to our ASP.net newsgroup for suggestions: microsoft.public.dotnet.framework.aspnet Thanks. Sincerely, WenJun Zhang Microsoft Online Community Support ================================================== Get notification to my posts through email? Please refer to: http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif ications. Note: The MSDN Managed Newsgroup support offering is for non-urgent issues where an initial response from the community or a Microsoft Support Engineer within 1 business day is acceptable. Please note that each follow up response may take approximately 2 business days as the support professional working with you may need further investigation to reach the most efficient resolution. The offering is not appropriate for situations that require urgent, real-time or phone-based interactions or complex project analysis and dump analysis issues. Issues of this nature are best handled working with a dedicated Microsoft Support Engineer by contacting Microsoft Customer Support Services (CSS) at: http://msdn.microsoft.com/subscriptions/support/default.aspx. ================================================== This posting is provided "AS IS" with no warranties, and confers no rights.
From: Steve Schofield on 30 Mar 2007 21:16 Here is an article I wrote on deploying content on a UNC path. If you are running into a problem still, you could try running CAS in 'full' trust mode. You can check in the 'root' web.config to see what level of trust you are running. Another trick I've done is run filemon by sysinternals on the NAS and Web Server to see if anything at the file level is being blocked. If nothing shows up, then you know it is code / CAS related. Hope that helps. http://www.iislogs.com/articles/23/ -- Thank you, Steve Schofield Windows Server MVP - IIS ASPInsider Member - MCP http://www.orcsweb.com/ Managed Complex Hosting #1 in Service and Support "Slint" <slint(a)noemail.noemail> wrote in message news:C5C44649-D87E-49B4-8789-AC3403B69ADB(a)microsoft.com... > > 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 > > > >
From: Slint on 2 Apr 2007 04:56 Thanks Steve Schofield Your solution solved the problem... I used this command.. and after a minute or two it worked like a charm... caspol -m -ag 1 -url "file://\\ServerName\RemoteContent$\*" FullTrust -exclusive on The funny thing is that most guides and forums that i have looked at explain how to place this codegroup inside LocalIntranet_Zone and not under the "root" of all codegroups next to LocalIntranet_Zone and the others. Also all guides pointout that the command should be file://fileserver/share$/folder/bill.smith/public_html/* with forward slasch not like your example Steve. Any how Your solution worked for me and i'm realy greatful for your help! Thanks once again! Slint "Steve Schofield" <steve(a)orcsweb.com> skrev i meddelandet news:uwQS1IzcHHA.4344(a)TK2MSFTNGP02.phx.gbl... > Here is an article I wrote on deploying content on a UNC path. If you are > running into a problem still, you could try running CAS in 'full' trust > mode. You can check in the 'root' web.config to see what level of trust > you are running. Another trick I've done is run filemon by sysinternals > on the NAS and Web Server to see if anything at the file level is being > blocked. If nothing shows up, then you know it is code / CAS related. > Hope that helps. > > http://www.iislogs.com/articles/23/ > > -- > > Thank you, > > Steve Schofield > Windows Server MVP - IIS > ASPInsider Member - MCP > > http://www.orcsweb.com/ > Managed Complex Hosting > #1 in Service and Support > > "Slint" <slint(a)noemail.noemail> wrote in message > news:C5C44649-D87E-49B4-8789-AC3403B69ADB(a)microsoft.com... >> >> 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 >> >> >> >> >
|
Pages: 1 Prev: Problem SSL: CRYPT_E_REVOCATION_OFFLINE Next: How Should I Strurcture My Directory? |