分享

写回答

发帖

[提问] .net 上传后运行不成,请问版主是怎么回事.

GoDaddy GoDaddy 1448 人阅读 | 7 人回复

发表于 2010-4-24 17:18:26 | 显示全部楼层 |阅读模式

Server Error in '/' Application.
--------------------------------------------------------------------------------

Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".


<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>


Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.


<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
</configuration>

我是用的2.0开发的.

回答|共 7 个

add.c

发表于 2010-4-24 17:26:58 | 显示全部楼层

用web.config显示下详细错误再说
GoDaddy 500错误解决

wuhanjw

发表于 2010-4-24 17:41:00 | 显示全部楼层

Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed

wuhanjw

发表于 2010-4-24 17:46:53 | 显示全部楼层

.net 上传后出错,请问版主是怎么回事.

Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed
提示上面的错误

hanfei

发表于 2010-4-24 17:50:26 | 显示全部楼层

不要问版主,问给你做网站的人

wuhanjw

发表于 2010-4-24 17:53:59 | 显示全部楼层

但是本机用是好的啊

hanfei

发表于 2010-4-24 18:16:08 | 显示全部楼层

你的本机是中文的,godaddy的本机是英文的

yerencao

发表于 2010-4-24 18:41:38 | 显示全部楼层

System.Security.
trust level  is medium,not full or high.
您需要登录后才可以回帖 登录 | 注册

本版积分规则