![](/img/trans.png)
[英]Error on type WebActivatorEx.ActivationManager threw an exception …Parameter count mismatch
安裝Microsoft.Owin后,我收到此錯誤。*。 目標.Net框架:4.5.2。 Web Activator:2.2.0我在另一個項目中有相同的設置,似乎工作正常。 請幫我調試或解決這個問題。 我到目前為止做了什么: - 更新了所有Nuget包 刪除了obj ...
[英]Error on type WebActivatorEx.ActivationManager threw an exception …Parameter count mismatch
安裝Microsoft.Owin后,我收到此錯誤。*。 目標.Net框架:4.5.2。 Web Activator:2.2.0我在另一個項目中有相同的設置,似乎工作正常。 請幫我調試或解決這個問題。 我到目前為止做了什么: - 更新了所有Nuget包 刪除了obj ...
[英]WebActivatorEx global attribute breaking CI build
我正在嘗試使用Visual Studio Team Services CI構建,並且正在遇到正在進行WebActivator調用的Ninject類的問題。 這段代碼正在我的NinjectWebCommon.cs中執行: 這可以使用Visual Studio在本地構建/運行良好。 ...
[英]Is there a WebActivatorEx equivalent for Windows Services?
我希望能夠利用一個C#程序集,該程序集可以很容易地以解耦的方式進行初始化,以便在啟動時設置一些(AutoMapper)配置。 WebActivator允許我執行此操作。 但是我也希望能夠在Windows Service Host環境中利用該程序集,而我也希望將其完全分離。 我可以使用與 ...
[英]WebActivatorEx causing ArgumentException on Application Start
在安裝WebActivatorEx nuget包后嘗試訪問頁面時,我不斷收到以下ArgumentException。 如果我刪除WebActivatorEx包,一切都會再次運行,但我需要WebActivatorEx才能使用DI。 我在網上找不到任何建議可能是什么問題。 我嘗試使用 ...
[英]Why does Azure CloudConfigurationManager.GetSetting return null
我有一個雲服務Web角色項目,該項目在模擬器中本地運行,但是在部署時不會運行。 給出的錯誤如下: 您可以在github上的堆棧跟蹤中看到相關行的代碼。 https://github.com/michael-lang/candor-common/ 導致CloudTablePr ...
[英]WebActivator PreApplicationStartMethod not working
我正在按照 onin 架構制作一個新項目。 我有一個名為“bootstrapper”的單獨項目,其中包含 IOC 和 WebActivator。我的問題是包含 WebActivator 的類甚至沒有在調試中加載! 可能是我錯過了什么? ...
[英]How to register an area using app_start or webactivator?
我想避免打電話 AreaRegistration.RegisterAllAreas() 在我的global.asax中,因為我試圖將所有啟動邏輯移動到App_Start文件夾中的各個類中。 但是,我沒有成功地讓它發揮作用。 第一個選項嘗試使用這樣的代碼: PreAppli ...
[英]Replace WebActivator PreApplicationStartMethod with OwinStartupAttribute?
我在我當前的項目中使用WebActivator.PreApplicationStartMethod ,但似乎OwinStartupAttribute可以做同樣的工作? 這是OwinStartupAttribute的正確使用嗎? ...
[英]ASP.NET MVC 4 Website won't start - Could not load type 'System.Reflection.AssemblyMetadataAttribute'
我將ASP.NET MVC 4 Web應用程序部署到Windows Server 2003(IIS 6)。 但它不會開始。 最初,我為.NET 4.5開發了該項目,但是當我發現Windows Server 2003不支持.NET 4.5時,不得不為.NET4重建它。這意味着刪除了所有第三 ...
[英]Install-Package : Unable to find package 'WebActivator'
我有Visual Studio 2012 Express for Web。 我的步驟 - 創建一個新的ASP .NET MVC 4應用程序 - 選擇基本模板-go到Package Manager Console -try來安裝WebActivator 我得到以下錯誤 我如何解 ...
[英]WebActivator - access to the Server object / current directory
我有一個WebActivator引導程序,需要訪問Server屬性。 具體來說,它需要知道Server.MapPath("~")是什么。 有沒有辦法做到這一點? ...
[英]WebActivator error when converting Breeze js code to vb.net
在將一些微風API從C#代碼轉換為VB.NET之后,當我運行帶有消息的項目時, WebActivator會Server Error in '/' Aplication WebActivator引發Server Error in '/' Aplication : 類型DevCentral ...
[英]How do I get the website root outside of a request?
在請求內部,我可以使用Server.MapPath()來訪問網站根目錄。 如何在不訪問Server情況下訪問該功能或以其他方式獲取網站根目錄? 我正在嘗試在WebActivator.PreApplicationStartMethod為ninject構建綁定。 我們嘗試使用Directo ...
[英]asp.net MVC 4 with StructureMap
我正在將ASP.NET MVC3項目轉換為MVC4。 我試圖找到使用StructureMap和MVC4的最佳方法。 我找到了一些可行的解決方案,但尚未嘗試過。 第一種解決方案非常簡單輕便 。 第二個( Structuremap.MVC4 )依賴於WebActivator進行啟動。 ...
[英]assembly: WebActivator.PreApplicationStartMethod Not working
基本上我的代碼如下所示: 好吧,我不是這段代碼的作者,但是它實現為每次啟動項目時都運行,並且它使用Web Activator屬性來執行此操作。 在我的機器上,這確實是一種奇怪的方式。 如果我在上面放置一個斷點,那么它根本不會達到斷點,這意味着它在應用程序啟動之前就沒有達到此代碼。 ...
[英]Start WebActivator from unit test
我正在嘗試編寫集成測試。 因此,我需要在單元測試的啟動前初始化階段中執行WebActivator的啟動方法。 我試過了 但這總是會給我錯誤信息: 像這樣的堆棧跟蹤 我知道單元測試應該與模擬一起使用,但是我確實需要那些集成測試。 ...
[英]Ninject 3.0 (NuGet) with ASP .NET WebForms not calling WebActivator
我創建了一個全新的WebForm網站(VS2010),並從NuGet添加了Ninject.Web(3.0)...它在App_Start上創建了NinjectWeb和NinjectWebCommon ...它的編譯效果很好,但從未執行代碼... 我是否想做一些事情來使WebActivator ...
[英]Using WebActivator in VB.NET project
為了使Elmah.MVC包在VB.NET項目中工作,我創建ASP.NET MVC3 VB.NET應用程序添加了WebActivator Nuget包(v.1.5.1),在App_Start文件夾中插入簡單代碼,如 該項目建設很好,但我從未打過Elmah.Mvc.Bootstrap.Ini ...
[英]Capturing ASP.NET MVC Errors and WebActivator
我想知道是否可以在不修改web.config或global.asax文件的情況下捕獲未處理的錯誤。 理想情況下,我將使用WebActivator軟件包並具有以下內容: [assembly: WebActivator.PostApplicationStartMethod(typeof(My ...
[英]After deploying to AppHarbor I get The type or namespace name 'WebActivator' could not be found
我將我的第一個應用程序上傳到AppHarbor,我收到以下錯誤: “無法找到類型或命名空間名稱'WebActivator'(您是否缺少using指令或程序集引用?)” 該解決方案正在使用MSBuild在開發環境和其他構建服務器上正確構建。 我在AppHarbour支持頁面上找不 ...