分享

写回答

发帖

[提问] godaddy架设asp.net网站 老出错,帮忙看看什么情况

GoDaddy GoDaddy 3333 人阅读 | 16 人回复

发表于 2010-9-2 14:54:27 | 显示全部楼层 |阅读模式

错误信息:
Server Error in '/benma168' 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>

上网看了一下,说是customErrors的mode="Off"设置成这样就OK了,但是我设置了不起作用啊,大家帮我看看,谢谢了。

回答|共 16 个

348102023

发表于 2010-9-2 15:00:56 | 显示全部楼层

哥哥们啊,快来帮忙啊

348102023

发表于 2010-9-2 15:09:54 | 显示全部楼层

现在错误编程这个了:
Server Error in '/benma168' Application.
--------------------------------------------------------------------------------

Required permissions cannot be acquired.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Security.Policy.PolicyException: Required permissions cannot be acquired.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  


我很郁闷,这是怎么回事?
帮帮我。。。

论坛里有godaddy空间架设.net网站的指导帖吗?

348102023

发表于 2010-9-2 15:30:01 | 显示全部楼层

一直未回答,一直在置顶!

348102023

发表于 2010-9-2 15:30:45 | 显示全部楼层

一直未回答,一直在置顶!

348102023

发表于 2010-9-2 15:38:36 | 显示全部楼层

我弄一天了,一直没有成功,很郁闷啊,能不能帮帮我。。。

add.c

发表于 2010-9-2 16:02:36 | 显示全部楼层

回复 3# 的帖子

这个错误可能说明你的程序在GoDaddy上无法运行了.
很多.net程序因为信任模式和组件等原因不能运行

348102023

发表于 2010-9-3 08:46:30 | 显示全部楼层

原帖由 add.c 于 2010-9-2 04:02 PM 发表
这个错误可能说明你的程序在GoDaddy上无法运行了.
很多.net程序因为信任模式和组件等原因不能运行


有什么好的解决办法吗?难道只能换空间??

my_randy

发表于 2010-9-3 09:34:18 | 显示全部楼层

哥们,如果你是用godaddy的虚拟主机,出现这种问题很正常。在此你先对web.config设置
<customErrors mode="Off"/> 把错误信息完完整整的显示出来。
如果出现安全方面的错误,那么就是godaddy的权限问题,godaddy 的信任权限设置为中级,没有全部信任
由此,我们的程序经常需要访问以下较为敏感的dll,所以godaddy拒绝。

我在搜搜文学网 www.sosowx.com 采用了asp.net mvc架构,和ibatis.net 类库,也发布不了。挺郁闷的。
这个问题我也研究了好就,据说 ix 空间是不限制 asp.net 的权限。

add.c

发表于 2010-9-3 09:38:18 | 显示全部楼层

回复 9# 的帖子

貌似Arvixe也是full trust level , 等确认
您需要登录后才可以回帖 登录 | 注册

本版积分规则