Domanda

Sto sviluppando un'applicazione in mvc3 ( http://www.colombiatrolley.com/sitrolley).Nel mio computer viene eseguito correttamente, ma quando lo carico sul server (un servizio di hosting) ottengo questo errore:

Messaggio di errore del parser: è un errore per utilizzare una sezione registrata come AllowDefinition= 'MachineToApplication' oltre il livello di applicazione.Questo errore può essere causato da una directory virtuale che non viene configurata come un'applicazione in IIS.

So che è un errore molto comune ma non l'ho ancora riparato.

Cattura errori

È stato utile?

Soluzione

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.

Altri suggerimenti

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top