我用vs2005作的东东,发布了在http://211.100.20.184:8001/地址上,老是报错,我估计是没有权限,请管理员加了数据库的读写权限,还是这个样子,请高人指点!

解决方案 »

  1.   

    其实打开看看就可以了
    我还是报错贴出来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.   

    lz不会仔细看看错误提示吗?不好好看看就急着来发帖,作程序的不看英文可不行错误提示让你把web.config里面
    <configuration>
        <system.web>
            <customErrors mode="Off"/>
        </system.web>
    </configuration>customErrors这一项里面的属性mode改成Off,你就能看到详细的错误信息了
      

  3.   

    to:pellet(鱼丸)
    这点错吴我还看的懂,把<<customErrors mode="Off"/>已经改了
    还是没有用这个程序在我自己的几个机器上发布都没有问题
      

  4.   

    这点错吴我还看的懂,把<<customErrors mode="Off"/>已经改了
    还是没有用
    =======================>
    那最大的可能就是你的web.config所在的文件夹没有被配置为虚拟目录,所以你的设置没起作用,让管理员检查一下虚拟目录配置是否正确。
      

  5.   

    访问一个简单的页面,例如页面上仅显示一个label控件,看看能不能显示。可以发现或者排除大部分应用程序设置问题。
      

  6.   

    to webdiyer(陕北吴旗娃) 
     感谢指点,可是我的发布地址http://211.100.20.184:8001/应该是一个网站地址才对,不可能不是虚拟地址吧....可怜的是今天都休息,没有人在,我想找出问题的原因,周一让管理员直接改...
      

  7.   

    to sp1234(我想去异乡喝杯酒睡一觉然后回来继续工作)我去试试~
      

  8.   

    to sp1234(我想去异乡喝杯酒睡一觉然后回来继续工作)我刚才实验了一下,空白页面也是编译出现上面的错误怎么办?
    估计是什么问题~
      

  9.   

    右键目录属性-》asp.net编辑全局配置和编辑配置,把自定义错误改成Off看看
      

  10.   

    to tianzhenjing(宁静夏天) 
    55555555
    我要是能接触到服务器,我就早配置好了,就是看不到服务器的属性,所以就预测错误,然后让管理员去修改.....
      

  11.   

    实在不行你传个html,试试,可以的话再把一个空白的text文件改成.aspx扩展名试试
      

  12.   

    to tianzhenjing(宁静夏天) 空文件也是出错请问这个是服务器那个地方没有设置好?