1
將ASP.net 4.0網站轉換爲4.5,但一些文件仍然保持爲4.0,它們是否正確?將ASP.net 4.0網站轉換爲4.5,但一些文件仍然保持爲4.0是否正確?
二手視覺工作室2012
這裏我的config.xml。你看到什麼不正確的? System.web,system.design,system.windows.fomrs還是4.0?
當發佈我禁用調試爲false。推力水平又是什麼?我應該刪除它嗎?
<?xml version="1.0"?>
<configuration>
<configSections>
<sectionGroup name="system.web">
<section name="sanitizer" requirePermission="false"
type="AjaxControlToolkit.Sanitizer.ProviderSanitizerSection, AjaxControlToolkit" />
</sectionGroup>
</configSections>
<appSettings/>
<connectionStrings/>
<system.web>
<sessionState mode="StateServer" stateConnectionString="tcpip=127.0.0.1:42424" cookieless="false" timeout="60"/>
<compilation debug="true" targetFramework="4.5">
<assemblies>
<add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</assemblies>
</compilation>
<trust level="Full" />
<sanitizer defaultProvider="HtmlAgilityPackSanitizerProvider">
<providers>
<add name="HtmlAgilityPackSanitizerProvider" type="AjaxControlToolkit.Sanitizer.HtmlAgilityPackSanitizerProvider"></add>
</providers>
</sanitizer>
<authentication mode="Windows"/>
<customErrors mode="Off"/>
<pages validateRequest="true" viewStateEncryptionMode="Never" enableViewStateMac="true" enableSessionState="true" controlRenderingCompatibilityVersion="4.0" clientIDMode="AutoID"/>
<httpModules/>
</system.web>
<system.webServer>
<modules runAllManagedModulesForAllRequests="false"/>
<staticContent>
<clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="30.00:00:00"/>
</staticContent>
</system.webServer>
<system.web.extensions>
<scripting>
<scriptResourceHandler enableCompression="true" enableCaching="true"/>
</scripting>
</system.web.extensions>
</configuration>
謝謝。你看到什麼似乎不正確的錯誤等? – MonsterMMORPG 2013-02-27 12:18:04
- 如果您有任何自定義路由或處理程序,您可能必須將runAllManagedModulesForAllRequests切換爲「true」,並且對System.Windows.Forms的引用對於網站來說似乎完全不合適(除非您使用該hacky webbrowser控件創建頁面圖像代碼) – 2013-02-27 17:11:57
我正在撰寫安全問題圖片。儘管簡單的。所以它一定是包括D的原因: – MonsterMMORPG 2013-02-27 17:18:57