在没有安装.net的服务器端安装组件前是可以打开.asp的文件的,现在在安装.net的服务器组件后不能打开.aspx格式的文件了,但能打开.txt和图片格式的文件。请问高手如何再配置,在线急等!!!!
第一次用.net就遇到这么难解决的问题。
我上午把.net全部卸了,把IIS也全卸了,然后又重新安装,.net全部安装的,现在还是打不开。在上面直接用.net建了一个.aspx的文件就能打开,程序员拷上去的就打不开。 
打开时报的错误如下:
Server Error in '/ICManage' 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>
在这台服务器上直接用.net创建了一个虚拟目录,写了一段程序,就可以用打开发布的.aspx;但在程序员机器上能打开的,放到这个服务器上就不行了。我真的是没办法啦!
 

解决方案 »

  1.   

    tigerwen01(小虎)(编程艺术化) ::用记事本可以打开。我们装的版本是一样的,都是用一个安装程序安装的。
      

  2.   

    hackate(兰花开香入梦境,独思佳人亦飘然!!) :::建了虚拟目录了,我现在可以打开登录界面,但是输入用户密码后还是出上面的错误!!!
      

  3.   

    现在你将他上传上来的目录下的web.config里的节点
    <configuration>
        <system.web>
            <customErrors mode="Off"/>
        </system.web>
    </configuration>这里把他的mode="xxx"改成mode="Off"看看具体是出的什么错误,记住Off的"O"要大写。。还有这种情况哄,很可能是跟数据库有关系,我上次碰到过一次,
      

  4.   

    hackate(兰花开香入梦境,独思佳人亦飘然!!)::我照你上面说的将On改成Off后,现在还是报那样的错误!!
    和数据库会有什么关系?能否和你直接联系一下呀?
    我的QQ是31720327,现在在线!非常希望能向你直接请教!谢谢!
      

  5.   

    <customErrors mode="Off"/>
    错误已经很清楚了啊。
      

  6.   

    fangbuge(窗外的雨) ::老兄你说的“machine.config”是什么意思?能详细说一下吗?谢谢!eyych(伦敦7.7大爆炸!) ::你好,你说的“ <customErrors mode="Off"/>错误已经很清楚了啊。 ”,你能详细说一下这样的错误应该怎么样解决吗?谢谢小MM是第一次用.net,希望多多赐教啊!
      

  7.   

    这样设置没用的话,你设置下machine.config文件看看。。machiine.config文件在。[盘符]:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\CONFIG\这个CONFIG文件夹下。找到后。用记事本打开,然后搜索你的那个<customErrors mode="搜索到后,把后面对应改成Off看看。。
      

  8.   

    hackate(兰花开香入梦境,独思佳人亦飘然!!) ::我将WEB.config改了后报错还和原来一样,现在我将machiine.config文件改了之后报这个错误:
    Server Error in '/ICManage' Application.
    --------------------------------------------------------------------------------Configuration Error 
    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.Source Error: 
    Line 37:            by Microsoft that offers a single logon and core profile services for member sites.
    Line 38:     -->
    Line 39:     <authentication mode="Windows" /> 
    Line 40: 
    Line 41: 
     Source File: D:\ICKYW\ICManage\user\web.config    Line: 39 
    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
      

  9.   

    建立一个叫MachineToApplication的虚拟目录
      

  10.   

    运行 C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe -i 这个
      

  11.   

    这个问题确实挺奇怪的!VS。NET能创建项目,而用手工设置的虚拟目录不可以!没遇到过,。。关注下下。。
      

  12.   

    在项目文件夹上加一个EveryOne的访问用户,把权限加到最大试试!!不知道可以不可以!楼主试试吧!
      

  13.   

    我也遇到过,是不是你机器上的asp.net1.0不是1.1
      

  14.   

    也有可能是你的WEB服务器运行的是asp.net1.0
      

  15.   

    http://support.microsoft.com/kb/887787