473,782 Members | 2,436 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Cassini error when running aspx file

I managed to create and compile a simple aspx source file from VS 2003. When I try to
access it thru the Cassini web server from my web browser on the same machine I get
this below. Anyone know why?

Originally web.config was
<authenticati on mode="Windows" />
and had the same error. But I tried editing the web.config file line 46 to "None"
and that didn't help. They mention IIS in the error message. But I'm not using IIS.

http://localhost/WebApplication1/Dev...ateStatus.aspx

Server Error in '/' Application.
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 44: by Microsoft that offers a single logon and core profile services
for member sites.
Line 45: -->
Line 46: <authenticati on mode="None" />
Line 47:
Line 48: <!-- AUTHORIZATION
Source File: d:\mainpage\www root\WebApplica tion1\web.confi g Line: 46

Version Information: Microsoft .NET Framework Version:1.1.432 2.2032; ASP.NET
Version:1.1.432 2.2032
Nov 19 '05 #1
2 1607
Randall,

may I suggest that you post your Cassini concerns
to the Cassini forum at forums.asp.net ?

http://forums.asp.net/67/ShowForum.aspx

Browsing through the messages there may also turn up the answer to your problem.

In particular, check out this post :

http://forums.asp.net/1082874/ShowPost.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/
=============== =============== ========
"Randall Parker" <NOtechieSPAMpu ndit_please@fut ure_avoidjunk_p undit.com> wrote in message
news:u7******** ******@TK2MSFTN GP15.phx.gbl...
I managed to create and compile a simple aspx source file from VS 2003. When I try to
access it thru the Cassini web server from my web browser on the same machine I get this
below. Anyone know why?

Originally web.config was
<authenticati on mode="Windows" />
and had the same error. But I tried editing the web.config file line 46 to "None" and
that didn't help. They mention IIS in the error message. But I'm not using IIS.

http://localhost/WebApplication1/Dev...ateStatus.aspx

Server Error in '/' Application.
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 44: by Microsoft that offers a single logon and core profile services
for member sites.
Line 45: -->
Line 46: <authenticati on mode="None" />
Line 47:
Line 48: <!-- AUTHORIZATION
Source File: d:\mainpage\www root\WebApplica tion1\web.confi g Line: 46

Version Information: Microsoft .NET Framework Version:1.1.432 2.2032; ASP.NET
Version:1.1.432 2.2032

Nov 19 '05 #2
Commenting out two sections of web.config fixed my problem. Got the answer here:

http://forums.asp.net/1082874/ShowPost.aspx
Excerpt:
The project can be started without debugging, but it doesn't appear to do anything?
Right-clicking on the WebForm1.aspx and selecting 'view in browser' gives an
authentication error, easily fixed by commenting out the authentication line in the
Web.config file. Similarly, the whole of the sessionState block needs to be commented
out.

Randall Parker wrote:
I managed to create and compile a simple aspx source file from VS 2003.
When I try to access it thru the Cassini web server from my web browser
on the same machine I get this below. Anyone know why?

Originally web.config was
<authenticati on mode="Windows" />
and had the same error. But I tried editing the web.config file line 46
to "None" and that didn't help. They mention IIS in the error message.
But I'm not using IIS.

http://localhost/WebApplication1/Dev...ateStatus.aspx

Server Error in '/' Application.
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 44: by Microsoft that offers a single logon and core
profile services for member sites.
Line 45: -->
Line 46: <authenticati on mode="None" />
Line 47:
Line 48: <!-- AUTHORIZATION
Source File: d:\mainpage\www root\WebApplica tion1\web.confi g Line: 46

Version Information: Microsoft .NET Framework Version:1.1.432 2.2032;
ASP.NET Version:1.1.432 2.2032

Nov 19 '05 #3

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
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
1429
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...
2
1744
by: Wiktor Zychla [C# MVP] | last post by:
Hi, I struggle for over an hour with the integrated Cassini web server. the problem I am facing is as follows: when I turn forms authentication on in the web.config file, the website seems to be running in the context of a wrong directory. images, style sheets and jscripts files placed in app directory (or in subdirectories) suddenly become invisible to the application. when I move the application to the IIS, it works as expected but...
1
2121
by: WolfsonNYC | last post by:
Anyone know how to enable Directory Browsing using the Cassini web server on .Net 2.0 ? Right now it says HTTP Error 403 - Forbidden when I go to a folder on my web site. Thanks, JW
2
1789
by: Les Caudle | last post by:
I've gotten url mapping to work perfectly while running in VS 2005 Cassini debug mode. I simply added this to web.config <urlMappings enabled="true"> <add url="~/school" mappedUrl="~/Schools.aspx" /> </urlMappings>
1
1860
by: Ian | last post by:
I am developing a .NET Web Service that acts as a thin calling layer for a larger object. Thus the larger object runs in the context of the web service that is calling it, and is therefore subject to the security restrictions of the Web Server the web service is run through. All well and good. At the end of the main method call of the larger object, it instantiates and calls (through a RCW) a method of a legacy COM object that writes...
4
2945
by: yancheng.cheok | last post by:
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\GOWatch
6
2795
by: R.A.M. | last post by:
Hello, I have problem with IIS 5.1 - it ceased to function. So I downloaded and installed Cassini Web Server and uninstalled IIS in my Windows XP Professional. The problem is that I cannot successfully run Cassini. I entered application directory F:\Inetpub\wwwroot, server port 80, virtual root / and I pressed Start button. Then message box appers: Cassini Managed Web Server failed to start listening on port 80. Possible conflict with...
0
9641
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
9480
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
10313
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
10146
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...
0
9944
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8968
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
7494
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...
2
3643
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2875
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.