webactivator

Error on type WebActivatorEx.ActivationManager threw an exception …Parameter count mismatch

大兔子大兔子 提交于 2020-02-03 09:11:10
问题 I am getting this error after I installed Microsoft.Owin.*. Target .Net Framework:4.5.2. Web Activator: 2.2.0 I have the same setup in another project and that seems to work fine. Please help me debug or fix this. Have I have done so far:- Updated all Nuget Packages Deleted obj folder contents Ran aspnet_compiler.exe -p C:\source\Application\MyAPI -v anything -errorstack . It did give the same error, but stopped after I added WebMatrix.data. Full Error Details :- Parameter count mismatch.

NuGet: Possibility of adding a line of code via Powershell?

允我心安 提交于 2020-01-05 01:09:29
问题 I have a few NuGet packages that I've put together, with one of them being a common project referenced by all the others. This common project inserts a configuration class into the App_Start folder, and a method on this class is then invoked by WebActivator. For one of the other packages I wish to add one more line of code to this method but I'm struggling to find a way to do this. I know that I could very simply add an additional class which contains just this one line of code but I'd prefer

NuGet: Possibility of adding a line of code via Powershell?

笑着哭i 提交于 2020-01-05 01:09:00
问题 I have a few NuGet packages that I've put together, with one of them being a common project referenced by all the others. This common project inserts a configuration class into the App_Start folder, and a method on this class is then invoked by WebActivator. For one of the other packages I wish to add one more line of code to this method but I'm struggling to find a way to do this. I know that I could very simply add an additional class which contains just this one line of code but I'd prefer

Ninject.MVC3, Nuget, WebActivator oh my

 ̄綄美尐妖づ 提交于 2019-12-31 09:46:02
问题 I want to setup Ninject to do a simple test, as well as demonstrate the ease-of-setup using Nuget. I want to resolve a sample service. public interface ITestService { string GetMessage(); } public class TestService : ITestService { public string GetMessage() { return "hello world"; } } I run the NuGet Install-Package NinjectMVC3 .... it nicely drops NinjectMVC3.cs into my App_Start folder, decorated with some WebActivator attributes to get it all loaded. Next I add my binding in the

The pre-application start initialization method Run on type WebActivator.ActivationManager threw an exception

半腔热情 提交于 2019-12-12 12:24:06
问题 I'm trying to run an ASP MVC 4 application on IIS. When I publish MVC 4 application from Basic template - without any dependencies apart from these made by the wizard - application works. But when I publish other application, that is using WebActivator and many other libs, I see this error: Could not load file or assembly 'System.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes' or one of its dependencies. The given assembly name or codebase was

What's the proper way to configure Ninject for an MVC3 application?

牧云@^-^@ 提交于 2019-12-12 10:43:43
问题 I've read several articles regarding the setup of Ninject for MVC3 projects. Some say that your Global.asax.cs should inherit from NinjectHttpApplication , others register modules when constructing the StandardKernel via Application_Start(). I personally used NuGet and it went a different way creating a AppStart_NinjectMVC3 class, and starting it up using [assembly: WebActivator.PreApplicationStartMethod(typeof(MyApp.AppStart_NinjectMVC3), "Start")] Are there any advantages/disadvantages to

Webactivator doesn't run on IIS 7

橙三吉。 提交于 2019-12-10 13:25:51
问题 I have several web applications that make use of packages using WebActivator. On my local machine with IIS 7.5 Express, everything works fine whether I test in Release or Debug configurations. However, on my production machine with IIS 7.5, WebActivator doesn't actually run, so all the modules fail to load and I have to add the code back into the Global.asax.cs file. I'm stumped as to where to even begin looking - Googled and searched StackOverflow but haven't ran into anyone having similar

WebActivator PreApplicationStartMethod not working

心已入冬 提交于 2019-12-08 01:36:44
问题 I'm making a new project following onin architecture. I have a separate project called "bootstrapper" that contain IOC and WebActivator.. My problem is that class that contain WebActivator not even loaded in debug ! May be i'm missing something ? [assembly: WebActivatorEx.PreApplicationStartMethod(typeof(IocConfig), "RegisterDependencies")] public class IocConfig { public static void RegisterDependencies() { //.......... } } 回答1: Your Onion.Bootstrapper project corresponds to the outermost

Define an initialization order of WebActivator.PreApplicationStartMethod classes

主宰稳场 提交于 2019-12-07 05:47:41
问题 I have several WebActivator.PreApplicationStartMethod decorated classes. One is for Ninject, another class for AwesomeMVC and a third one is for background task scheduler. The problem is that the scheduler class needs to take advantage of the dependecies, that are resolved by IoC container. My questions are: Can I have several WebActivator.PreApplicationStartMethod classes? Can I define order, in which they are initialized, so that IoC, being the most important, comes first? Can WebActivator

Error in downloading WebActivator with NuGet

喜你入骨 提交于 2019-12-07 05:26:52
问题 I just updated my NuGet Package Manager on my corporate machine. Ever since the update, I am unable to add any package. I tried to install WebActivator for instance and got the following error: PM> Install-Package WebActivator Install-Package : The ServicePointManager does not support proxies with the https scheme. At line:1 char:16 + Install-Package <<<< WebActivator + CategoryInfo : NotSpecified: (:) [Install-Package], NotSupportedException + FullyQualifiedErrorId :