Category .NET 4.0

No assembly found containing an OwinStartupAttribute

After successfully compiled the web application, we are getting below error message: The following errors occurred while attempting to load the app. – No assembly found containing an OwinStartupAttribute. – No assembly found containing a Startup or [AssemblyName].Startup class. To disable OWIN startup discovery, add the appSetting owin:AutomaticAppStartup with a value of “false” in your […]

Class File In App_Code Folder Not Working – ASP.NET MVC

Today, we have started to migrate the website (ASP.NET 2.0 Website) to ASP.NET MVC. As per the standard practice, we have created a class and put it inside of the App_Code folder in ASP.NET MVC 4.0. However, we cannot access it from controller. After getting some research, App_Code folder is a special ASP.NET run-time folder […]

Could not load file or assembly ‘Owin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f0ebd12fd5e55cc5’ or one of its dependencies. The system cannot find the file specified.

There is two possibilities: Possibility 1: You haven’t added the Owin.dll reference to the project. You can add the reference and recompile project. Possibility 2: You have a latest version of the dll (2.1.0 or higher), You can add below code to your web.config file. I’m using 3.0.1.0 so I have updated newVersion=”3.0.1.0″ <dependentAssembly> <assemblyIdentity name=”Microsoft.Owin” publicKeyToken=”31bf3856ad364e35″ […]