S
Subir
Can you tell what I am doing wrong in the following:
1. Create a web-application viz. TestWebApplication1
2. Build the app
3. Create a code group TestWebApp under Machine->All Code->My_computer_Zone
4. Set the membership condition as URL and the value as
file://C:\inetpub\wwwroot\WebApplication1\bin\*
5. Check the “This policy level will only have the permissions etc. etc.â€
6. Assign the permission set Everything to the TestWebApp
7. “caspol -rsp WebApplication1.dll†returns the permissions under the
Everything set meaning that it is being assigned the correct group.
8. When I hit http://localhost/WebApplication1/WebForm1.aspx I get this
error.
Parser Error
Description: An error occurred during the parsing of a resource required to
service this request. Please review the following specific parse error
details and modify your source file appropriately.
Parser Error Message: Could not load type 'WebApplication1.Global'.
Source Error:
Line 1: <%@ Application Codebehind="Global.asax.cs"
Inherits="WebApplication1.Global" %>
Source File: c:\inetpub\wwwroot\WebApplication1\global.asax Line: 1
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET
Version:1.1.4322.2032
-----------------------
Also is the above method of using CAS recommended for ASP.Net? Or should we
only use the App Domain method?
Thanks,
Subir
1. Create a web-application viz. TestWebApplication1
2. Build the app
3. Create a code group TestWebApp under Machine->All Code->My_computer_Zone
4. Set the membership condition as URL and the value as
file://C:\inetpub\wwwroot\WebApplication1\bin\*
5. Check the “This policy level will only have the permissions etc. etc.â€
6. Assign the permission set Everything to the TestWebApp
7. “caspol -rsp WebApplication1.dll†returns the permissions under the
Everything set meaning that it is being assigned the correct group.
8. When I hit http://localhost/WebApplication1/WebForm1.aspx I get this
error.
Parser Error
Description: An error occurred during the parsing of a resource required to
service this request. Please review the following specific parse error
details and modify your source file appropriately.
Parser Error Message: Could not load type 'WebApplication1.Global'.
Source Error:
Line 1: <%@ Application Codebehind="Global.asax.cs"
Inherits="WebApplication1.Global" %>
Source File: c:\inetpub\wwwroot\WebApplication1\global.asax Line: 1
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET
Version:1.1.4322.2032
-----------------------
Also is the above method of using CAS recommended for ASP.Net? Or should we
only use the App Domain method?
Thanks,
Subir