Please help me with this problem.
When my project is added as a virtual directory, I am able to browse all of the pages very fine. But since my project is ecommerce application, i wanted to use Form Authentication to my login page and when i add <authentication mode="Forms"> in my web.config file, I got this error:
______________________
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
Source Error:
Line 59: </pages>
Line 60: <customErrors mode="Off"/>
Line 61: <authentication mode="Forms">
Line 62: <forms loginUrl="Home.aspx" timeout="500000" protection="All" name=".ASPXFORMSAUTH"/>
Line 63: </authentication>
________________________________
But, When i convert my project to application through Application Create in IIS, i am not able to browse the page at all. The error i get is:
_________________________
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 Application.Global'.
Source Error:
Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="Application.Global" Language="C#" %>
Source File: /Apps/global.asax Line: 1
________________________________________