I just installed Visual Studio 2010 and create a basic application. The application executes fine when I executes it from Visual Studio, but some unknow reason when I try to execute it by typing url in browser i.e http://localhost/Lab1/WebApplication1/WebApplication1/ it
gives following error:
Line 16: <compilation debug="true" strict="false" explicit="true" targetFramework="4.0" />
Line 17:
Line 18: <authentication mode="Forms"> Line 19: <forms loginUrl="~/Account/Login.aspx" timeout="2880" />
Line 20: </authentication>
itHighway
Member
2 Points
4 Posts
Web config Form Error
Mar 03, 2012 02:02 PM|LINK
Hi,
I am new to ASP.Net.
I just installed Visual Studio 2010 and create a basic application. The application executes fine when I executes it from Visual Studio, but some unknow reason when I try to execute it by typing url in browser i.e http://localhost/Lab1/WebApplication1/WebApplication1/ it gives following error:
Line 16: <compilation debug="true" strict="false" explicit="true" targetFramework="4.0" /> Line 17: Line 18: <authentication mode="Forms">Line 19: <forms loginUrl="~/Account/Login.aspx" timeout="2880" /> Line 20: </authentication>
Nazm
Participant
1760 Points
330 Posts
Re: Web config Form Error
Mar 03, 2012 02:49 PM|LINK
In IIS under Website , check you site dir and try to change authentication control under directory security
itHighway
Member
2 Points
4 Posts
Re: Web config Form Error
Mar 03, 2012 02:56 PM|LINK
Website is pointing to correct directory and authentication control is set to anonymous.
Nazm
Participant
1760 Points
330 Posts
Re: Web config Form Error
Mar 03, 2012 04:22 PM|LINK
Try to give permissions to "IUSR" and "others!" to app folder