0

Fiz deploy de um site simples que ainda está em desenvolvimento, o endereço é http://www.datussistemas.com.br, porém não sei como resolver o problema que acontece quanto tento acessar. Alguém já passou por esse problema?

Server Error in '/' Application.

Security Exception

Description: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file. 

Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

Source Error: 

The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

  <%@ Page Language="C#" Debug="true" %>

or:

2) Add the following section to the configuration file of your application:

<configuration>
   <system.web>
       <compilation debug="true"/>
   </system.web>
</configuration>

Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.
6
  • Que problema? O que aparece? Quais passos já fez? Qual o seu ambiente? Adicione essas informações para podermos lhe ajudar
    – Randrade
    19/01/2016 às 16:27
  • Tente não adicionar somente a foto. Copie e cole o texto na pergunta, fica mais "legível".
    – Randrade
    19/01/2016 às 16:29
  • @Randrade colei o texto do erro 19/01/2016 às 16:29
  • Onde você está publicando isso? Me refiro ao servidor. Alguma hospedagem? Quais os passos que você faz para realizar o deply? Qual a versão do .NET?
    – Randrade
    19/01/2016 às 18:20
  • @Randrade Está em um servidor da LocaWeb, Windows server 2012, fiz deploy via FTP do Visual Studio, o projeto está com framework 4.5. 19/01/2016 às 19:50

1 Resposta 1

-1

O diretório "/site" deve ser uma aplicação na hospedagem. Verifique com a hospedagem como configurar esta pasta para aplicação.

1
  • 3
    Se puder dar um pouco mais de detalhes, ajuda bem mais o autor da pergunta e os visitantes futuros, e ainda por cima atrai +1. Anyway, bem vindo ao Stack Overflow em Português :)
    – brasofilo
    15/01/2016 às 2:09

Você deve fazer log-in para responder a esta pergunta.

Esta não é a resposta que você está procurando? Pesquise outras perguntas com a tag .