2016-01-18 38 views
4

我得到這個錯誤在7.3一把umbraco編譯:嘗試加載應用程序發生owin錯誤在第一次運行安裝客戶現場一把umbraco第7位後

以下錯誤。 - OwinStartupAttribute.FriendlyName值 'UmbracoDefaultOwinStartup'與 組件'umbraco,版本= 1.0.5750.18164,Culture = neutral, PublicKeyToken = null'中的給定值''不匹配。 - 沒有發現包含啓動或 [AssemblyName] .Startup類的程序集。要禁用OWIN啓動發現,請在您的web.config文件中 中添加 appSetting owin:AutomaticAppStartup,其值爲「false」。要指定OWIN啓動程序集,類或 方法,請在web.config中將appSetting owin:AppStartup與完全合格的 啓動類或配置方法名稱相加。

任何想法?我甚至從bin文件夾中刪除owin.dll和解決方案的參考,也添加到web.config <add key="owin:AutomaticAppStartup" value="false" />,仍然會得到相同的錯誤?

感謝

+0

同樣在這裏。你有沒有設法找到答案@PeteTheGreek ...? – droidbot

回答

5

如果插入下面的web.config的appSettings,它應春生命 - > 7.4.1

<add key="owin:AutomaticAppStartup" value="true" /> 
<add key="owin:appStartup" value="UmbracoDefaultOwinStartup" /> 

我7.2.8升級後收到此錯誤。執行上述操作後,Umbraco聲稱它找不到System.Object。這通過將以下內容添加到組件部分來解決:

<add assembly="System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> 

此外;如果您收到任何依賴項不匹配(儘管最新的Umbraco NuGet使用3.0.1.0版本,但收到'umbraco'試圖使用Microsoft.Owin 2.1.0的消息),您可能需要將以下內容添加到assemblyBinding部分:

<dependentAssembly> 
    <assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" culture="neutral" /> 
    <bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0" /> 
</dependentAssembly> 
<dependentAssembly> 
    <assemblyIdentity name="Microsoft.Owin.Security.OAuth" publicKeyToken="31bf3856ad364e35" culture="neutral" /> 
    <bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0" /> 
</dependentAssembly> 
<dependentAssembly> 
    <assemblyIdentity name="Microsoft.Owin.Security" publicKeyToken="31bf3856ad364e35" culture="neutral" /> 
    <bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0" /> 
</dependentAssembly> 
<dependentAssembly> 
    <assemblyIdentity name="Microsoft.Owin.Security.Cookies" publicKeyToken="31bf3856ad364e35" culture="neutral" /> 
    <bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0" /> 
</dependentAssembly>