Configuration Error

M

Matthew Louden

My ASP.NET application runs ok locally, but after I upload all the files to
IIS in Windows Server 2003 Standard Edition, and no longer works. This has
the following error messages:

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='MachineToApplication' beyond application level. This error
can be caused by a virtual directory not being configured as an application
in IIS.

Source Error:


Line 43: by Microsoft that offers a single logon and core profile
services for member sites.
Line 44: -->
Line 45: <authentication mode="Windows"/>
Line 46:
Line 47:


Source File: C:\test\web.config Line: 45

any ideas??
 
H

Hermit Dave

the directory you are uploading to isnt a virtual directory... your app root
has to be a virtual directory...
 
M

Matthew Louden

Let's say the virtual directory is C:\aspweb

and my asp.net application is in C:\aspweb\myapp

Then http://localhost/myapp/index.aspx should see the content, rite?? That's
perfectly ok in my local Windows 2000 machine.

However, it has this configuration error in remote Windows Server 2003
machine.

Similarly, in remote windows server 2003 machine,
http://ipaddress/myapp/index.aspx should see the content, rite??
 
M

Munsifali Rashid

Not quite.. As far as I know, even if the "myapp" folder is a subfolder of
"C:\aspweb", it still has to be set-up in IIS to run under its own
application. If you created the project locally using Visual Studio .NET,
the virtual directory would have automatically been set up to run under its
own application. When deploying the project, you have to do this manually
to make it work (unless you're using a setup package, in which case the
installer would create the virtual directory for you).

I don't know about Windows Server 2003, but in Windows 2000, when viewed
from the IIS Snap-In, Virtual Directories which are set to run under their
own application have a different icon from standard subdirectors of an IIS
host. You can also check this by right-clicking on the folder, and under
the "Virtual Directory" tab, the "Application Name" box should have a value
in it, rather than "<Default Application>".

Note, these settings are based on Windows 2000. I've heard IIS has changed
quite a bit in Windows Server 2003, so you might need to dig around a bit to
find the settings, though it should conceptually be the same thing.

Hope this helps,

Mun
 
F

Felix Wang

It seems to me that you have configured "c:\" as a virtual directory and
"c:\test" is a sub-directory of the virtual directory. However, "c:\test"
itself is not a virtual directory.

<authentication mode="Windows"/> is only allowed in a web.config at the root
of the virtual directory.

The solution is to configure "c:\test" as a virtual directory. I hope this
makes sense to you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top