不知怎么,无法运行程序,下面是错误信息:
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 14:  <globalization fileEncoding="gb2312" requestEncoding="gb2312" responseEncoding="gb2312" />
Line 15:  <httpRuntime maxRequestLength="5655648" />
Line 16:  <authentication mode="Windows" /> 
Line 17:         <sessionState mode="InProc" cookieless="true" timeout="80"/>
Line 18:  <trace enabled="true"/>
 Source File: F:\NetRun\html\szznews\web.config    Line: 16 
请各位多多指教!

解决方案 »

  1.   

    This error can be caused by a virtual directory not being configured as an application in IIS.错误可能不是又有配置引起的,可能是你没在IIS中创建应用程序
      

  2.   

    我看这个问题处在你的*.csproj.vspscc
    的文件了,你好好看一下你的工程和你的服务器是否一致
    给你个提示
    这是我的*.csproj.vspscc
    ""
    {
    "FILE_VERSION" = "9237"
    "ENLISTMENT_CHOICE" = "COMPULSORY"
    "PROJECT_FILE_RELATIVE_PATH" = ""
    "NUMBER_OF_EXCLUDED_FILES" = "0"
    "ORIGINAL_PROJECT_FILE_PATH" = "http://localhost:102/Cn.Com.Use.LOIS1.Common.Web.csproj"
    "NUMBER_OF_NESTED_PROJECTS" = "0"
    "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER"
    }
      

  3.   

    看到IIS,我便自己再建个虚拟目录,浏览便可以了;而原来local目录下浏览无法浏览...
    算是搞定了!谢谢各位的指点!不过有时自己想很久都没法想到,实在很郁闷的.搞定了心情也好!