开发者

deploying web application on server results in this error

开发者 https://www.devze.com 2023-02-22 10:33 出处:网络
h开发者_运维百科ello guys i am facing this error How to fix it. My ASP.net website is running fine locally.This is happening because of some configuration is different from your local machine and yo
h开发者_运维百科ello guys i am facing this error

deploying web application on server results in this error

How to fix it. My ASP.net website is running fine locally.


This is happening because of some configuration is different from your local machine and your deployed machine. An error is thrown here because of this. But you actually cannot see the details of the error message because your web.config file probably has customErrors set to be shown only in the local machine or have no custom errors tag. I suggest you turn it to "off" in the web.config file just to see the proper error message on the deployed machine.


Set it to OFF and see what is the error. By default the section is commented in Web.Config. Look for the section custom error in web.config file, uncomment that and set it to off, to see the error on production.

Update

<system.web> -- inside this section just add the line below. 
                If its already there remove existing custom errors and use this
    <customErrors mode="Off" />
</system.web>
0

精彩评论

暂无评论...
验证码 换一张
取 消