Question

Je développe une application dans MVC3 ( http://www.colombiatrolley.com/sitrolley).Dans mon ordinateur, il fonctionne correctement, mais lorsque je le télécharge sur le serveur (service d'hébergement), je reçois cette erreur:

Message d'erreur d'analyse d'analyse: il s'agit d'une erreur d'utilisation d'une section enregistrée comme autorisationFinition= 'MachinetoApplication' au-delà du niveau d'application.Cette erreur peut être provoquée par un répertoire virtuel non configuré comme une application dans IIS.

Je sais que c'est une erreur très courante, mais je ne l'ai pas encore résolu.

capture d'erreur

Était-ce utile?

La solution

Some config sections are only allowed at the "root" of the application, then authentication section is one of them.

You need to configure IIS to run your your site as an application, not a sub-directory in an existing application.

For IIS 7+, right click the directory that contains your web application, and select "Convert to Application".

EDIT:

Arie van Someren is right. Looking carefully at your error, you want the <authentication> configuration to be in the web.config one level up, not the web.config in Views.

Autres conseils

I had the same problem. I solved it by deleting the obj folder that appeared after doing a "Build > Publish".

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top