I have an .NET WebApplication running on my machine smoothly. Now I did an XCOPY to have it run on another location on my machine. I have created a new Virtual directory also for this purpose.
But I get the following error on running the application,
Parser Error: 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.
Line 7: <compilation defaultLanguage="c#" debug="true" />
Line 8: <customErrors mode="RemoteOnly" defaultRedirect="error.aspx" />
Line 9: <authentication mode="Forms">--HIGHLIGHTED
Line 10: <forms loginUrl="~/Login.aspx" />
Line 11: </authentication>
If I tried taking the property of VirtualDirectory and clicking the 'Create' Application. But no change is found.
If I delete the Line 9, the same error jumps onto
<SessionState..> tag in Web.config.
Thanks in advance.