: hi all,
: I created the runtime files using deployment setup procedure.
: Using Visual studio.net i created the project assembley file FOR example RAC.DLL
: In bin folder in placed that dll file.
: and i copied other aspx page and global.asax and web.config files in the root folder.
: Then i created one virtual directory alias name for example rac in IIS SERVER IN MY MACHINE and file location path is
:
: not in my machine, it is in another machine.
:
: If i am trying to run that rac applications using
http://localhost/rac/index.aspx
:
: i am getting the following errors
:
: 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 'RAC.Global'.
:
: Source Error:
:
:
: Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="RAC.Global" %>
:
:
:
: Source File: \\Idchennaint\web_workarea\RACSETUP\global.asax Line: 1
:
:
: If i run the same set up in the my server where iss server resides, IT WILL WORK PROPERLY
:
: Any one give solution for this.............
: Thanks in Advance.
: Suresh.M
:
:
:
By the sounds of it, I think you are trying to use a GLOBAL.ASAX file from a different application boundary located on another IIS server and use it within your local web application. I believe there is no way to make that work. Below I describe another possible reason, which may or may not help you, but could help others.
Instances where this error can occur is when the web or virtual directory is not set up properly in IIS. Open up the instance of IIS where the site is being hosted, right click on the pertaining web or virtual directory and choose "Properties." This will pull up a tabbed window. Make sure you select the "Directory", "Home Directory", or "Virtual Directory tab." The tab name depends on how the web application was created, it is usually the first tab. Anyways under the "Application Settings" section there is the "Application Name" setting. Make sure the application is created. The button next to "Application Name" textbox will say "Create" if it was not created before-hand. If it says "Create" click the button.
NOTE: If the web application is not created, then there is no HttpContext for the ASP.NET application and the global.asax has no way of loading or creating an HttpApplication object.
If the web was created properly on another IIS server, this would mean you would not see this error in that case.