比如:http://localhost/QuickStartv20/util/srcview.aspx?path=~/aspnet/samples/pages/intro/intro5.srcSource Viewer Error: cannot show this fileEither the file does not exist, or your configuration settings for the source viewer do not allow files in this directory to be viewed. To edit the configuration settings, see the web.config file at the root of the quickstart directory. Change the <sourceview> setting to point at the root directory of the quickstart. All files under this directory will be accessible to the source viewer.<configuration>
  <system.web>
    <sourceview>
      <add key="root" value="c:\Program Files\Microsoft.Net\FrameworkSDK\Samples\Quickstart" />
    </sourceview>
  </system.web>
</configuration>我在web.config中指定了Quickstart的路径

解决方案 »

  1.   

    在iis中将wwwroot目录直接映射到
    c:\Program Files\Microsoft.Net\FrameworkSDK\Samples\Quickstart
      

  2.   

    我的C盘中没有c:\Program Files\Microsoft.Net\FrameworkSDK\Samples\Quickstart如何在在iis中将wwwroot目录直接映射到?我的SDK装在:E:\Program Files\Microsoft.NET\SDK\v2.0\QuickStart
      

  3.   

    iis里主目录设一下就好
    -----------------------------------
    100M Asp.Net空间(支持1.1,2.0)+50M企业邮局=60元/年
    100M Asp.Net空间(支持1.1,2.0)+国际顶级域名=100元/年
    国际顶级域名.com.net.cn=50元/年
    咨询OICQ:68311305,379620139 81778640 
    公司主页(www.kingtoo.com)
      

  4.   

    点右建默认网站属性->主目录->配置->映射
      

  5.   

    打开iis,主目录-本地路径E:\Program Files\Microsoft.NET\SDK\v2.0\QuickStart
      

  6.   

    还是不太明白是不是在配置>>应用程序映射中添加"添加/编辑应用程序扩展名映射"
      

  7.   

    iis-网站-默认网站-右键-属性-主目录-在本地路径中填写这个地址