473,769 Members | 7,923 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

web.config error in cassini 2.0

Hello all,

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

Aug 25 '07 #1
4 2944
Since that's an UltiDev issue, you should post your question to the UltiDev Forums :

http://ultidev.com/Forums/default.aspx


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== ========
<ya************ @gmail.comwrote in message news:11******** **************@ i38g2000prf.goo glegroups.com.. .
Hello all,

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

Aug 25 '07 #2
That said, the problem seems to be that the GOWatch directory is not marked as an application.

UltiDev Cassini is *not* Cassini, btw.
It's a propietary server version based on the Cassini source and owned by UltiDev LLC.

Are you using UltiDev Cassini 1.1 or UltiDev Cassini 2.0 ?


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== ========
"Juan T. Llibre" <no***********@ nowhere.comwrot e in message news:eD******** ******@TK2MSFTN GP03.phx.gbl...
Since that's an UltiDev issue, you should post your question to the UltiDev Forums :

http://ultidev.com/Forums/default.aspx


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== ========
<ya************ @gmail.comwrote in message news:11******** **************@ i38g2000prf.goo glegroups.com.. .
>Hello all,

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.a spx), I get the following error :


Configuratio n Error
Description: An error occurred during the processing of a
configuratio n file required to service this request. Please review the
specific error details below and modify your configuration file
appropriatel y.

Parser Error Message: It is an error to use a section registered as
allowDefinitio n='MachineToApp lication' 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.con fig
<configuration >
<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" /
>>>
<deviceFilters >
<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


Aug 25 '07 #3
Here's the reply from the UltiDev Forums :

---000---
If your application is located entirely in the "DesktopPC" sub-folder, you need to register
the application with the physical location of "C:\website\GOW atch\DesktopPC" .

If not, please be sure that your application root folder "C:\website\GOW atch"
contains a web.config if you want to specify root-level settings, like Authentication type.

In general, application root folder does not necessarily need to contain a web.config,
but some web.config settings seem be required to be in the root-level web.config.
---000---

Good luck...

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== ========
"Juan T. Llibre" <no***********@ nowhere.comwrot e in message news:eD******** ******@TK2MSFTN GP03.phx.gbl...
Since that's an UltiDev issue, you should post your question to the UltiDev Forums :

http://ultidev.com/Forums/default.aspx


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== ========
<ya************ @gmail.comwrote in message news:11******** **************@ i38g2000prf.goo glegroups.com.. .
>Hello all,

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.a spx), I get the following error :


Configuratio n Error
Description: An error occurred during the processing of a
configuratio n file required to service this request. Please review the
specific error details below and modify your configuration file
appropriatel y.

Parser Error Message: It is an error to use a section registered as
allowDefinitio n='MachineToApp lication' 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.con fig
<configuration >
<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" /
>>>
<deviceFilters >
<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


Aug 25 '07 #4
Thanks! I just do a quick hacking by removing all the web.config and
move them to the root folder. Anyway, this just suit to my
requirement :)
Aug 26 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
4323
by: J. Muenchbourg | last post by:
I'm trying to install the Cassini WebServer on my Windows xp with .net framework, but the below instructions to get the webserver running after downloading the .exe doesnot make any sense at all: ------------ Instructions ------------ Go to the directory containing the above files (setup to use c# compiler and gacutil utility). Run 'build.bat', it will:
5
2789
by: Ken Cox [Microsoft MVP] | last post by:
MS has posted this here: http://www.asp.net/faq/ms03-32-issue.aspx Fix for: 'Server Application Unavailable' Error after Applying Security Update for IE ------------------------------------------------------------------------------- -
3
1671
by: Daniel Wang | last post by:
Are there alternate locations to download the Cassini ASP.NET web server? The download link on www.asp.net seems broken: http://www.asp.net/Projects/Cassini/Download/download.aspx?tabindex=0&tabid=1 Thanks.
2
1170
by: jai hanuman | last post by:
somebody please help me install VS .NET with asp.net on XP home edition. I installed cassini but the VS won't install asp.net - it says it needs IIS. i've heard cassini can be used instead of IIS, could anyone post the steps please. thanks
5
1401
by: Kenneth P | last post by:
Hi all, I want to ensure some security in my asp.net apps. I wanna know that you is you comsuming my asp.net app. That's why I'm interested in finding out various ways to solve that problem. Because my comsumers always are companies and my asp.net product is the only on the market, then I can demand some security, I think.
5
2605
by: clintonG | last post by:
After discovering Cassini is crippleware I learned how to use Start Options to disable NTLM and enable support for the default web server on my XP Pro dev platform. Now all new projects are created as websites. I was happy until when out of the blue Cassini has re-enabled itself for one of the websites I am developing. Despite the Start Option settings I can't get rid of the Cassini pest and my website will not load from the IDE. Does...
5
1428
by: Randall Parker | last post by:
Running XP Home which does not come with IIS. In response to advice received on this forum I installed the Cassini web server to serve in place of IIS. See here for Cassini: http://www.asp.net/Projects/Cassini/Download/Default.aspx?tabindex=0&tabid=1 Trying to create an asp.net project in VS 2003. When I try to create the problem I get this error: "The default Web access mode for this project is set to file share, but the project...
5
5305
by: NonNB | last post by:
Apols for the post here, but there is no public.inetserver.cassini Is there a way to configure the cassini / ASP NET Development web server: 1) So that the port can be pegged (seems to be random)? 2) So that can access the server using hostname other than localhost? I need to test some client side SOAP calls Thanks in advance
0
2947
by: Anbu | last post by:
Hello All, I have developed an Win 32 application using .NET 2.0 Framework. This application uses the cassini dll provided by one of the Microsoft groups. While using this component, I'm getting an error (occationally) and the application terminates with unexpected exception prompt. There were two messages logged during this error: Event Type: Error
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10216
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10049
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9997
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8873
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7413
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6675
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.