PDA

View Full Version : [CLOSED] SVN update / missing Reference System.Web.Mvc



tMp
Oct 11, 2013, 3:00 PM
Hello

I just did an update from Ext.net 2.2.0.1 to SVN Ext.net 2.3 and after deploying the new website the webserver is complaining about a missing reference to "System.Web.Mvc".

I found a lot of help threads like these (http://forums.ext.net/showthread.php?21227-Could-not-load-file-or-assembly-System-Web-Mvc-Version-3-0-0-0). But I am am curious why did everything work on 2.2.0.1 and not on 2.3? According to the threads version 2.x already needs it...

I didn't change anything else, just complided the svn-solution (vs 2012) and copied them over the old ones.

Thank you for any hint.

PS: Did I compile them with MVC support or can I switch this off somehow?

Daniil
Oct 11, 2013, 3:30 PM
Hi @tMp,

Probably, you use a WebForm build of Ext.NET 2.2.0.1.

The MVC build requires MVC 3 to be installed on the machine.

Please clarify do you want a WebForm build without MVC at all?

If so, you could choose a respective build mode, for example, "WebForm NET4 Release". See it there are commonly the "Release/Debug" modes only.

michaeld
Oct 11, 2013, 10:15 PM
I've ran into this issue as well when I decided to build from the trunk. They have conditional requirements for MVC in the csproj to prevent this but you have to choose the the appropriate WebForms build in the Configuration Manager, like WebForm NET 3.5/4.0 Debug/Release.

I manually delete the MVC reference from the build myself each time I get a new version. I found it too risky to rely on VS not to attempt to include the reference. I couldn't risk breaking my production server over this subtle detail.

tMp
Oct 13, 2013, 11:09 AM
Thank you both very much. Compiled just the Webform Version and now everything works as desired!

Have a nice weekend!