Deploy Asp Net MVC

Asked

Viewed 140 times

0

I have deployed a simple website that is still in development, the address is http://www.datussistemas.com.br, but I don’t know how to solve the problem that happens when I try to access it. Someone has already been through this problem?

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.
  • What problem? What does it look like? What steps have you taken? What is your environment? Add this information so we can help you

  • Try not to add only the photo. Copy and paste the text in the question, it is more "readable".

  • @Randrade pasted the error text

  • Where are you publishing this? I refer to the server. Any hosting? What steps do you take to deply? What version of . NET?

  • @Randrade Is on a server of Locaweb, Windows server 2012, I have deployed via FTP of Visual Studio, the project is with framework 4.5.

  • Locaweb has a lot of problems with that. Look these questions, some may help you.

Show 1 more comment

1 answer

-1

The directory "/site" should be an application in the hosting. Check with the hosting how to configure this folder for application.

  • 3

    If you can give a little more detail, it helps the author of the question and future visitors, and attracts +1. Anyway, welcome to [en.so] :)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.