I have a web application, which I had developed few years ago with
ASP .NET 1.1
Today, I would like to deploy the web application to client, using
ASP .NET 2.0 + UltiDev Cassini 2.0
I locate my whole project in a folder named C:\website\GOWa tch
My setting in UltiDev Cassini 2.0 is as follow :
Application = GoWatch
Port Number = 2040
Physical Path = C:\website\GOWa tch
When I try to access an URL http://localhost:2040/DesktopPC/login/Login.aspx
(The login.aspx is located physically at C:\website\GOWa tch\DesktopPC
\login\Login.as px), I get the following 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 ='MachineToAppl ication' beyond application level. This
error can be caused by a virtual directory not being configured as an
application in IIS.
Source Error:
Line 7:
Line 8: <system.web>
Line 9: <authenticati on mode="Forms">
Line 10: <forms name=".ASPXUSER DEMO" loginUrl="http://
10.0.38.4/GoWatch/DesktopPC/login/login.aspx" protection="All "
timeout="5" />
Line 11: </authentication>
Source File: C:\website\GOWa tch\desktoppc\l ogin\web.config Line:
9
In my entire application, any sub folder with web.config will have the
similar error.
Please take note that, there are NO web.config in C:\website\GOWa tch,
is this the root cause of the error?
Here is the content of my web.config in C:\website\GOWa tch\desktoppc
\login\web.conf ig
<configuratio n>
<appSettings>
<add key="Connection String" value="server=G OWATCHSERVER
\NetSDK; trusted_connect ion=true; Database=Gowatc h" />
<add key="mailserver " value="GowatchS erver" />
</appSettings>
<system.web>
<authenticati on mode="Forms">
<forms name=".ASPXUSER DEMO" loginUrl="http://10.0.38.4/GoWatch/
PocketPC/login/login.aspx" protection="All " timeout="5" />
</authentication>
<globalizatio n requestEncoding ="UTF-8" responseEncodin g="UTF-8" /
><deviceFilter s>
<filter name="supportsJ avaScript" compare="Javasc ript"
argument="true"/>
</deviceFilters>
</system.web>
<location path="protected ">
<system.web>
<authorizatio n>
<deny users="?" />
</authorization>
</system.web>
</location>
</configuration>
Help are very much appreciated! Thank you.
cheok