zoukankan      html  css  js  c++  java
  • VS加载项目时报错:尚未配置为Web项目.指定的本地IIS URL http://localhsst/..要打开项目,需要配置虚拟目录 。是否立即创建虚拟目录

    在项目目录下的.vs文件夹下,打开对应config文件夹,修改applicationhost.config

    在<sites></sites>节点下对应的site节点删除掉即可。

            <sites>
                <site name="WebSite1" id="1" serverAutoStart="true">
                    <application path="/">
                        <virtualDirectory path="/" physicalPath="%IIS_SITES_HOME%WebSite1" />
                    </application>
                    <bindings>
                        <binding protocol="http" bindingInformation=":8080:localhost" />
                    </bindings>
                </site>
                <!-- 删除该节点
                <site name="Com.CN.Web" id="2">
                    <application path="/" applicationPool="Clr4IntegratedAppPool">
                        <virtualDirectory path="/" physicalPath="C:UsersAllenLiuTestSourceCodePMSDevelopCom.CN.Web" />
                    </application>
                    <bindings>
                        <binding protocol="https" bindingInformation="*:44308:localhost" />
                        <binding protocol="http" bindingInformation="*:56076:localhost" />
                    </bindings>
                </site>
                 -->
                <siteDefaults>
                    <!-- To enable logging, please change the below attribute "enabled" to "true" -->
                    <logFile logFormat="W3C" directory="%AppData%MicrosoftIISExpressLogs" enabled="false" />
                    <traceFailedRequestsLogging directory="%AppData%Microsoft" enabled="false" maxLogFileSizeKB="1024" />
                </siteDefaults>
                <applicationDefaults applicationPool="Clr4IntegratedAppPool" />
                <virtualDirectoryDefaults allowSubDirConfig="true" />
            </sites>    
    

      

  • 相关阅读:
    安装JDK,如何配置PATH,如何配置CLASSPATH
    存储过程笔记
    用BeanFactoryAware接口,用BEAN的名称来获取BEAN对象
    静态工厂实例代码
    setTimeout 和 setInterval 的区别
    Spring Autowire自动装配
    动态工厂模式代码实例
    JS处理回车事件
    不错的Spring学习笔记(转)
    单例模式要点
  • 原文地址:https://www.cnblogs.com/allenfly/p/13176680.html
Copyright © 2011-2022 走看看