Site down: "Could not load file or assembly 'Microsoft.Web.Infrastructure' "

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

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.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
5/20/2011 10:29:45 AM
Gravatar
Total Posts 17

Site down: "Could not load file or assembly 'Microsoft.Web.Infrastructure' "

Hi to everybody,

I tried to update mojoportal to the current version on my ISP. I downloaded the version 2.3.6.5 for .net4 forgetting that my ISP has .net 3.5. When files were uploaded I went to /Set/default.aspx and I get an error that looking in the documentation, made me realize the mistake (something related to a configuration in web.config and machine.config). I dowloaded the version for .Net 3.5. but I got

Could not load file or assembly 'Microsoft.Web.Infrastructure' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.

I tryed to reload a backup version, and used an ISP tool to regenerate folder rights but nothing solved.

I have no idea of whato to do.

Server configuration:
.NET Framework version: 3.5.30729.01
Sistema Operativo: Microsoft Windows 2003
IIS: Microsoft-IIS/6.0
MDAC: 2.82.3959.0
 

Thanks in advance for the help.

 

5/20/2011 10:37:23 AM
Gravatar
Total Posts 18439

Re: Site down: "Could not load file or assembly 'Microsoft.Web.Infrastructure' "

Yes those files are only supported under .NET 4

So you need to delete the files it complains about from the /bin folder

ie delete the file Microsoft.Web.Infrastructure.dll

after you delete that the error will change to complain about a different file, there are probably like 5-8 files that it will complain about, just delete each one it complains about and then it should be fine.

Be careful not to delete the wrong files though, note carefully their names in the error message.

Hope that helps,

Joe

5/20/2011 11:48:27 AM
Gravatar
Total Posts 17

Re: Site down: "Could not load file or assembly 'Microsoft.Web.Infrastructure' "

Hi Joe,

thanks for the quickly help. I did as you suggested; setup told it hasn't write right on Data folder (it was resetted by ISP tool). I have provided write right and script worked with no errors, there was only one suspicious row:

System.Data.SqlClient.SqlException: Invalid object name 'MSSqlxxxxx.sysobjects'. in System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) in System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) in
...

Now I can navigate the site, but when I click the login link I get

Errore server nell'applicazione '/'.
Riferimento a un oggetto non impostato su un'istanza di oggetto.
(which can be translated in something like Reference to an object not set on an object instance)
...
[NullReferenceException: Riferimento a un oggetto non impostato su un'istanza di oggetto.]
   mojoPortal.Web.UI.Pages.LoginPage.Page_Load(Object sender, EventArgs e) +295
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   mojoPortal.Web.mojoBasePage.OnLoad(EventArgs e) +13
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

Thanks again

5/20/2011 11:56:50 AM
Gravatar
Total Posts 18439

Re: Site down: "Could not load file or assembly 'Microsoft.Web.Infrastructure' "

a null reference exception usually means something is missing.

Possibly not all the files made it during upload. I would upload the  /Controls folder and the /Secure folder again watching carefully for file transfer errors.

You should also review the important skin changes, and review the release notes for each version between 2.3.5.8 and 2.3.6.5

Hope that helps,

Joe

5/20/2011 12:36:00 PM
Gravatar
Total Posts 17

Re: Site down: "Could not load file or assembly 'Microsoft.Web.Infrastructure' "

Hi Joe,

uploaded those two folders and everything seem work Ok.

 

I have done the upgrade to make a sub site for preview for a customer. If the customer accept, you will participate to the revenue. Mojoportal is great and support is even better, you deserve to participate.

Bye

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