Pregunta

Estoy desarrollando una aplicación en MVC3 ( http://www.colombiatrolley.com/sitrolley).En mi computadora se ejecuta correctamente, pero cuando lo subo al servidor (un servicio de alojamiento), obtengo este error:

Mensaje de error del analizador: es un error que usa una sección registrada como PermisoDefinition= 'MachinetoApplication' más allá del nivel de aplicación.Este error puede ser causado por un directorio virtual que no se está configurando como una aplicación en IIS.

Sé que es un error muy común, pero aún no lo he arreglado.

Captura de errores

¿Fue útil?

Solución

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.

Otros consejos

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

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top