Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ninject mvc3 could not load WebActivator.ApplicationShutdownMethodAttribute from assembly

I'm using ninject for mvc3 with an asp.net mvc 3 application. When I try to run the application, I get this error. I closed the cassini server and ran the vs-debugger again and the error still persisted. It was working before, it happened previously, but I have no idea how it started working again. I'm not sure if this is random or what.

What I know happened was that I hibernated the pc and woke it back up and tried to reload the website when I got that error. I haven't restarted my PC yet.

Error:

Could not load type 'WebActivator.ApplicationShutdownMethodAttribute' from assembly 'WebActivator, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.

I see this in visual studio:

Locating source for 'D:\Code\Bitbucket\WebActivator\WebActivator\PreApplicationStartCode.cs'. Checksum: MD5 {ca d6 fb 32 7f 34 6 22 5d 1f 1a 40 37 e8 da 47}
The file 'D:\Code\Bitbucket\WebActivator\WebActivator\PreApplicationStartCode.cs' does not exist.
Looking in script documents for 'D:\Code\Bitbucket\WebActivator\WebActivator\PreApplicationStartCode.cs'...
Looking in the projects for 'D:\Code\Bitbucket\WebActivator\WebActivator\PreApplicationStartCode.cs'.
The file was not found in a project.
Looking in directory 'C:\Program Files\Microsoft Visual Studio 10.0\VC\crt\src\'...
Looking in directory 'C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\src\mfc\'...
Looking in directory 'C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\src\atl\'...
Looking in directory 'C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\include\'...
The debug source files settings for the active solution indicate that the debugger will not ask the user to find the file: D:\Code\Bitbucket\WebActivator\WebActivator\PreApplicationStartCode.cs.
The debugger could not locate the source file 'D:\Code\Bitbucket\WebActivator\WebActivator\PreApplicationStartCode.cs'.
like image 783
Shawn Mclean Avatar asked Jan 20 '23 03:01

Shawn Mclean


1 Answers

You have deployed the wrong version of WebActivator. Version 1.4 is required

like image 146
Remo Gloor Avatar answered Jan 31 '23 07:01

Remo Gloor