青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

統計

  • 隨筆 - 50
  • 文章 - 42
  • 評論 - 147
  • 引用 - 0

留言簿(6)

隨筆分類

文章分類

Link

搜索

  •  

積分與排名

  • 積分 - 167089
  • 排名 - 159

最新評論

閱讀排行榜

評論排行榜

asp.net網站部署錯誤及解決方法
error:
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
solution:
However, this error occurs primarily out of 2 scenarios.

1. When you create an new web application using visual studio.net, it automatically creates the virtual directory and configures it as an application. However, if you manually create the virtual directory and it is not configured as an application, then you will not be able to browse the application and may get the above error. The debug information you get as mentioned above, is applicable to this scenario.

To resolve it, Right Click on the virtual directory - select properties and then click on
"Create" next to the "Application" Label and the textbox. It will automatically create the "application" using the virtual directory's name. Now the application can be accessed.


2. When you have sub-directories in your application, you can have web.config file for the sub-directory. However, there are certain properties which cannot be set in the web.config of the sub-directory such as authentication, session state (you may see that the error message shows the line number where the authentication or sessionstate is declared in the web.config of the sub-directory). The reason is, these settings cannot be overridden at the sub-directory level unless the sub-directory is also configured as an application (as mentioned in the above point).

Mostly we have the practice of adding web.config in the sub-directory if we want to protect access to the sub-directory files (say, the directory is admin and we wish to protect the admin pages from unathorized users).

But actually, this can be achieved in the web.config at the application's root level itself, by specifing the location path tags and authorization, as follows:-


<location path="Admin">
<system.web>
<authorization>
<allow roles="administrators" />
<deny users="*" />
</authorization>
</system.web>
</location>


However, if you wish to have a web.config at the sub-directory level and protect the sub-directory, you can just specify the Authorization mode as follows:-


<configuration>
<system.web>
<authorization>
<allow roles="administrators" />
<deny users="*" />
</authorization>
</system.web>
</configuration>

Thus you can protect the sub-directory from unauthorized access.

error:
The current identity (NT AUTHORITY\NETWORK SERVICE) does not have write access to 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files'.
Could not load file or assembly 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified.

<!-- 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>

solution:
"Could not load file or assembly " indicate that the Framework version is not right, you need to install the right version of framework, and set the ASP.NET selection in IIS website property,select right version , note that you still select asp.net2.0 after you install the .net framework3.5 or 3.0


 

posted on 2009-01-15 21:44 pear_li 閱讀(1044) 評論(0)  編輯 收藏 引用 所屬分類: asp.net


只有注冊用戶登錄后才能發表評論。
網站導航: 博客園   IT新聞   BlogJava   博問   Chat2DB   管理


青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            免费人成精品欧美精品| 欧美福利电影网| 玖玖玖国产精品| 亚洲视频免费观看| 欧美日韩在线播放| 久久综合图片| 欧美电影免费观看| 麻豆av福利av久久av| 欧美**字幕| 欧美午夜不卡视频| 国产欧美精品在线播放| 好看的av在线不卡观看| 国产精品美女www爽爽爽| 亚洲国产第一页| 中文av一区二区| 亚洲午夜一区| 免费观看不卡av| 亚洲欧美日韩在线观看a三区| 久久看片网站| 欧美日韩国产bt| 国内成+人亚洲+欧美+综合在线| 国产精品手机在线| 99视频精品在线| 午夜精品久久久久久| 欧美在线日韩在线| 最新国产精品拍自在线播放| 欧美v国产在线一区二区三区| 性亚洲最疯狂xxxx高清| 美女被久久久| 国产精品99久久久久久白浆小说| 久久久亚洲午夜电影| 国产精品影片在线观看| 美脚丝袜一区二区三区在线观看 | 亚洲欧美一区二区原创| 亚洲国产毛片完整版| 亚洲精品久久久久久久久| 亚洲日本中文字幕区| 久久精品成人一区二区三区| 欧美精品成人在线| 亚洲精品资源| 99国产精品| 欧美日本在线一区| 亚洲素人在线| 中日韩美女免费视频网站在线观看| 久久久久网站| 一区福利视频| 久久国产精品99久久久久久老狼| 亚洲欧美中文另类| 国产精品综合久久久| 亚洲一区二区伦理| 欧美一级日韩一级| 亚洲精品国产精品国自产观看浪潮| 欧美激情aⅴ一区二区三区| 欧美视频在线一区| 日韩视频不卡| 中文一区二区在线观看| 欧美激情麻豆| 亚洲一区二区三区高清不卡| 午夜日本精品| 亚洲欧洲在线一区| 亚洲天堂av高清| 国产亚洲精品成人av久久ww| 欧美影视一区| 久久久久久亚洲精品不卡4k岛国| 影音先锋一区| 亚洲欧美国产制服动漫| 亚洲三级免费| 久久国产精品免费一区| 欧美一区二区视频免费观看| 亚洲国内高清视频| 亚洲尤物在线| 先锋影音久久| 国产女人18毛片水18精品| 久久久久国产精品一区三寸| 国产精品人成在线观看免费 | 亚洲电影毛片| 国产精品久久久久久久久借妻| 免费观看一级特黄欧美大片| 欧美日韩国产va另类| 亚洲视频福利| 欧美私人啪啪vps| 亚洲第一黄网| 亚洲国产精品美女| 欧美va日韩va| 亚洲欧美精品中文字幕在线| 一区二区三区四区五区精品视频| 欧美18av| 在线亚洲自拍| 亚洲一品av免费观看| 国产精品国产三级国产aⅴ9色| 亚洲第一久久影院| 亚洲欧美日韩一区二区三区在线| 欧美激情黄色片| 亚洲激情另类| 亚洲欧美欧美一区二区三区| 国产伪娘ts一区| 你懂的成人av| 老鸭窝亚洲一区二区三区| 在线视频中文亚洲| 最新国产成人在线观看| 欧美亚洲免费在线| 亚洲精品乱码久久久久久日本蜜臀| 欧美性大战久久久久久久| 亚洲免费婷婷| 午夜视频在线观看一区| 亚洲欧洲日韩在线| 亚洲欧美韩国| 国产精品一区=区| 欧美在线观看视频一区二区| 久久精品免费观看| 亚洲免费观看高清完整版在线观看熊| 中国av一区| 亚洲国产精品福利| 亚洲欧美一区二区激情| 亚洲少妇最新在线视频| 久久免费少妇高潮久久精品99| 一区二区欧美在线| 欧美在线视频免费| 亚洲欧美日韩一区在线| 欧美日韩极品在线观看一区| 香蕉久久夜色精品| 另类天堂视频在线观看| 欧美一级网站| 国产视频精品免费播放| 亚洲午夜在线| 亚洲欧美日韩国产综合精品二区| 欧美激情第10页| 麻豆精品视频在线观看视频| 国产日韩综合| 久久国产精品久久精品国产| 亚洲精品少妇| 欧美香蕉视频| 一区二区三区欧美在线| 亚洲欧美日韩精品久久| 国产综合欧美| 欧美xx视频| 亚洲另类春色国产| 亚洲综合首页| 国产精品美女一区二区| 一区二区不卡在线视频 午夜欧美不卡'| 亚洲国产精品一区| 欧美欧美在线| 久久国产精品电影| 欧美成年人视频网站| 亚洲午夜日本在线观看| 国产日韩精品入口| 老色批av在线精品| 亚洲午夜电影网| 欧美国产一区视频在线观看| 亚洲毛片视频| 国产在线播放一区二区三区| 亚洲影院免费观看| 欧美人牲a欧美精品| 美女久久一区| 亚洲宅男天堂在线观看无病毒| 国产精品劲爆视频| 久久综合电影| 欧美一区二区精品| 亚洲国产第一| 亚洲欧美中文日韩在线| 亚洲日本精品国产第一区| 国产精品中文在线| 欧美精品一区二区高清在线观看| 一区二区欧美国产| 久久久久久久久久久久久久一区| 中文精品在线| 在线视频欧美日韩精品| 国内精品视频一区| 国产欧美日韩在线视频| 欧美人与性动交a欧美精品| 久久美女性网| 男女激情视频一区| 久久嫩草精品久久久精品一| 亚洲在线视频免费观看| 宅男精品视频| 亚洲私拍自拍| 亚洲免费在线精品一区| 日韩一级大片| 一区二区三区免费看| 亚洲男女毛片无遮挡| 亚洲国产另类久久久精品极度| 久久久久99| 亚洲第一主播视频| 91久久在线视频| 亚洲日本久久| 99日韩精品| 99riav久久精品riav| 中国av一区| 欧美一区二区在线免费播放| 亚洲午夜成aⅴ人片| 久久久欧美精品sm网站| 欧美人成网站| 欧美三级电影一区| 国产亚洲欧美日韩在线一区| 国产亚洲激情在线| 91久久精品一区| 亚洲日本欧美天堂| 亚洲免费影视第一页| 欧美激情成人在线| 亚洲精品久久久久中文字幕欢迎你|