我下载了site server cms .net开发3.4版的。将源码上传至我的godaddy的虚拟主机上,并直接在根目录下安装的。我给与了根目录读和写的权限,当我进入后台就报错如下:Server Error in '/' Application.咨询了几个人,大家都诊断为权限问题,问题是我已经赋予了读写权限,并且子目录也继承了啊?新手,望大侠帮忙解决,这个问题困扰我好久了,做个站就这么难啊!

解决方案 »

  1.   

    关于win2000(win2K)配置asp.net2.0的方法,以及问题解决,Server Error in '/' Application错误解决 收藏 
    关于win2000(win2K)配置asp.net2.0的方法,以及问题解决,Server Error in '/' Application错误解决我用win2000server服务器版配置了一次asp.net2.0。
    其实方法很简单。就是安装完系统之后,IIS当然也安装完了,再安装.net framwork2.0即可。这样asp.net2.0服务器就安装好了。但是在调试的时候总是出错,错误一般如下:
    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>
    这个问题好多人都问,但是不知道怎么解决,我的方法也不一定就是官方方法,但是至少我的方法使我可以运行网站了。关于其他的就不多说了。我也不知道自己的解决方法对不对,但是肯定是蒙对了。我认为原因就出在我的根目录下没有web.config文件!!!
    每个网站一般都是自己一个文件夹,这个文件夹里面一般也有web.config文件,但是没有人想到根目录下应该有一个。只要拷贝一个过去,就不出错了。希望大家记住。
    如果还是不行,再把自己网站目录里的web文件删除掉
    本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/zhuton/archive/2008/11/14/3298317.aspx
      

  2.   

    我的网站的确有一个web.config文件,现在贴下来给大家看看
    <?xml version="1.0" encoding="utf-8"?><configuration>
    <appSettings>
    <add key="DatabaseType" value="SqlServer" />
    <add key="ConnectionString" value="server=(local);uid=sa;pwd=123456;Trusted_Connection=no;database=ss" />
    <add key="DatabaseOwner" value="dbo" />
    </appSettings>
    <system.web>
    <httpRuntime maxRequestLength="1000000" executionTimeout="2000" useFullyQualifiedRedirectUrl="false" minFreeThreads="8" minLocalRequestFreeThreads="4" appRequestQueueLimit="100" enableVersionHeader="false" />
    <webServices>
    <protocols>
    <add name="HttpSoap" />
    <add name="HttpPost" />
    <add name="HttpGet" />
    <add name="Documentation" />
    </protocols>
    </webServices>
    <pages validateRequest="false" enableSessionState="true" enableViewState="true" />
    <customErrors mode="Off" />
    <httpModules>
    <add name="SiteServer" type="SiteServer.Provider.HttpModule.SiteServerHttpModule, SiteServer.Provider" />
    </httpModules>
    <httpHandlers>
    <add verb="GET" path="*/SiteServer_Redirect.aspx" type="SiteServer.Provider.HttpHandler.Redirect, SiteServer.Provider" />
    <add verb="GET" path="*/UserUtils.aspx" type="SiteServer.Provider.HttpHandler.UserUtils, SiteServer.Provider" />
    <add verb="GET" path="*/SiteServer_AjaxUtils.aspx" type="SiteServer.Provider.HttpHandler.AjaxUtils, SiteServer.Provider" />
    <add verb="GET,POST" path="*/*_v.aspx" type="SiteServer.Provider.HttpHandler.View, SiteServer.Provider" />
    <add verb="GET" path="*/*_d.aspx" type="SiteServer.Provider.HttpHandler.Design, SiteServer.Provider" />
    <add verb="POST,GET" path="ajaxpro/*.ashx" type="AjaxPro.AjaxHandlerFactory, AjaxPro.2"/>
    </httpHandlers>
    <sessionState mode="InProc" timeout="30" />
         <compilation defaultLanguage="C#" debug="false" />
    <authentication mode="Forms">
    <forms name="BAIRONG.AUTHENTICATION" protection="All" timeout="60" slidingExpiration="true" path="/"></forms>
    </authentication>
    <trace enabled="false" requestLimit="1000" pageOutput="true" traceMode="SortByTime" localOnly="true" />
    <globalization fileEncoding="gb2312" requestEncoding="gb2312" responseEncoding="gb2312" culture="zh-CN" />
      </system.web>
    </configuration>