System.Web.Mvc assembly cannot be loaded on aspnet 3.5

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
4/12/2011 7:10:41 AM
Gravatar
Total Posts 8

System.Web.Mvc assembly cannot be loaded on aspnet 3.5

Hi,

I made I checkout on my tortoised solution in order to updated that to the newest version 2.3.6.4. I working with asp.net 3.5, and this is the error message I receive when I try to run the web site

'System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' assembly cannot be loaded.

Riga 871:  <compilation debug="true" defaultLanguage="C#">
Riga 872:   <assemblies>
Riga 873:    <add assembly="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"/>
Riga 874:    <!-- AJAX Extensions suport needed for WebPart drag and drop in non IE browsers -->
Riga 875:    <add assembly="Microsoft.Web.Preview, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>


File di origine: D:\MojoPortal\Web\web.config    Riga: 873

May please help me to solve this problem?

Thank you very much in advance!

Duccio

4/12/2011 8:41:47 AM
Gravatar
Total Posts 18439

Re: System.Web.Mvc assembly cannot be loaded on aspnet 3.5

The Web.config in the source code is pre-configured for  .NET 4. To use .NET 3.5 you need to replace the contents of the Web.config file with the contents from Web.net35.config

See also The .NET 4 Transition Plan.

Hope it helps,

Joe

4/13/2011 2:51:25 AM
Gravatar
Total Posts 8

Re: System.Web.Mvc assembly cannot be loaded on aspnet 3.5

Thak you very much, Joe

Everything is ok now, except for a problem that I encounter when I try to upload a file using a SHARED FILES module. These are the first rows of a long error message I obtain during the upload:

parameters count doesn't match DB definition

at SqlParameterHelper.InitializeArray() D:\MojoPortal\mp_access\mojoPortal.Data.MSSQL\SQLParameterHelper.cs(67)

at SqlParameterHelper.BeginDefineSqlParameters() D:\MojoPortal\mp_access\mojoPortal.Data.MSSQL\SQLParameterHelper.cs(55)

at SqlParameterHelper.BeginDefineSqlParameters() D:\MojoPortal\mp_access\mojoPortal.Data.MSSQL\SQLParameterHelper.cs(55)

at SqlParameterHelper.Initialize(String pConnectionInfo, String pCommandText, CommandType pCmdType, Int32 pParamCnt) D:\MojoPortal\mp_access\mojoPortal.Data.MSSQL\SQLParameterHelper.cs(86)

and may other rows... Sorry If can't paste the entire message but the text have been visualized on a window from which I can't copy anything.

Please let me know if you need to know anything else about that error!

Duccio

4/13/2011 5:56:50 AM
Gravatar
Total Posts 18439

Re: System.Web.Mvc assembly cannot be loaded on aspnet 3.5

Whenever you get the latest code you need to rebuild the entire solution and then launch the site and visit the /Setup/Default.aspx page to run any upgrade scripts. 

If you're using the debugger to run the site just keep clicking continue on errors and it should handle the error and redirect to the setup page.

Hope it helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.