Asp.net applictaion error

  • Thread starter Thread starter Laszlo Csabi
  • Start date Start date
L

Laszlo Csabi

Hi folks,

I got a strange error message on an IIS 6 Win 2003 server.

The error is the following : 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.

The strange thing is I got 1 ASP.net application running on this server for
moths and sudenly stopped to work. I cannot make it work anymore, I received
the errormessage above. I have tried to recreate the website in IIS and I
made sure the ASP.net site was created as an application.

Also I have reinstalled asp.net from the command prompt but did not help
either.


Any ideas what else I could do to fix this problem?

Thnaks

Laszlo
 
First off, see
http://msdn.microsoft.com/library/en-us/cpgenref/html/gngrfauthenticationsection.asp

Secondly, if you installed a security patch, or a service pack, your system
may now be checking for things that it wasn't checking for before.

Third, This happens only in apps that use forms authentication. I took a
look at the messages being posted, and most have to do with apps where you
have two different login forms, one for the application directory and
another for a subdirectory.

The point is that the subdirectory itself has to be an application in order
for this to work.

From some of the messages I've seen, this advice doesn't always apply, so
try it and let me know if this does or doesn't fix the problem.

Good Luck.
--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
 
Back
Top