find and solve || findandsolve.com
Please wait.....

The Development environment shouldn't be enabled for deployed applications in asp.net core



Error.

An error occurred while processing your request.

Request ID: 80000010-0001-fb00-b63f-84710c7967bb

Development Mode

Swapping to Development environment will display more detailed information about the error that occurred.

The Development environment shouldn't be enabled for deployed applications. It can result in displaying sensitive information from exceptions to end users. For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development and restarting the app.


ANSWER


<configuration>
  <!--
    Configure your application settings in appsettings.json. Learn more at http://go.microsoft.com/fwlink/?LinkId=786380
  -->
  <system.webServer>
    <handlers>
      <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
    </handlers>
    <aspNetCore processPath=".\Application.exe" arguments="" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false">
      <environmentVariables>
        <environmentVariable name="ASPNETCORE_ENVIRONMENT" value="Production" />
      </environmentVariables>
    </aspNetCore>
  </system.webServer>
</configuration>

OR

Please check your project or file security as given below 

Right click on your project 





Click on Proparties 



Select Security Menu





After Click on Edit button



Click on Add button



After that Entery Everyone in text field as given above image.Then Click Ok button.Your file promition is everyone so all types of user can 

access your file.I hope your problems will be solved.

Related information

Sundar  Neupane

Sundar Neupane

I like working on projects with a team that cares about creating beautiful and usable interfaces.

If findandsolve.com felt valuable to you, feel free to share it.

Comments



Report Response