Could not load file or assembly 'Microsoft.Web.Preview'

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.
10/14/2008 3:14:17 PM
Gravatar
Total Posts 26

Re: Could not load file or assembly 'Microsoft.Web.Preview'

I'm at least running again after creating a new database.  My upload speed to the host is dismal, so I have to upload a zip and ask the admin to unzip it there.  He's not here now.

Some detail:

If I use the 'Edit' link I can edit my home page.  I used to get an error after clicking Update, but the text did eventually render as updated.  I use the Pencil icon at the top right, in the title banner, I get the "Could not load file or assembly 'mojoPortal.Web' or one of its dependencies." errors.  If I click any of the four top right icons I get this error, no longer the original error.  If I click the gears icon to edit the settings for the content, next to the feature title, I get the same error.

10/14/2008 3:20:49 PM
Gravatar
Total Posts 18439

Re: Could not load file or assembly 'Microsoft.Web.Preview'

What is the structure of your url? Is it a root site or in a subfolder? If a sub folder then that folder must be marked as an application in IIS.

10/14/2008 3:22:18 PM
Gravatar
Total Posts 18439

Re: Could not load file or assembly 'Microsoft.Web.Preview'

I would look in the log under Admini Menu > System log. I would clear it first since it probably has a lot of errors from during the install. So clear it, then do whatver causes the error then look in the log for more detail.

10/14/2008 3:34:15 PM
Gravatar
Total Posts 26

Re: Could not load file or assembly 'Microsoft.Web.Preview'

I'll have to wait until I can talk to my host, but thanks for all your help.

10/16/2008 12:04:18 PM
Gravatar
Total Posts 26

Re: Could not load file or assembly 'Microsoft.Web.Preview'

Solved this one.  Your beers will be bought as soon as I can borrow a credit card.

The problem was that I had previously had a site called Admin under my root, and although I had totally overwritten it with the mojo admin folder, I had neglected to remove it as a virtual folder.  Every time a mojo admin function navigated there, it was looking for it's own bin folder.  Removed the virtual folder and all is well.

4/23/2010 12:03:10 PM
Gravatar
Total Posts 35

Re: Could not load file or assembly 'Microsoft.Web.Preview'

I know this is old, but I've run into this several times, so I thought I'd add my 2 cents.

 

I just copied the Microsoft.Web.Preview.dll from the _libs folder to the \bin of the Web folder.  I think this should get copied during one of the Post-Build events, but for some reason it does not.

5/6/2010 8:12:09 PM
Gravatar
Total Posts 3

Re: Could not load file or assembly 'Microsoft.Web.Preview'

 

Solved this one. Your beers will be bought as soon as I can borrow a credit card.

The problem was that I had previously had a site called Admin under my root, and although I had totally overwritten it with the mojo admin folder, I had neglected to remove it as a virtual folder. Every time a mojo admin function navigated there, it was looking for it's own bin folder. Removed the virtual folder and all is well.

THANK YOU SO MUCH!!! This had been driving me batsh*t crazy!!!  Thank you more than you'll know even thought this is old!

9/21/2010 7:56:27 AM
Gravatar
Total Posts 130

Re: Could not load file or assembly 'Microsoft.Web.Preview'

Hi Joe,

I just grabbed your latest source code (2.3.5.3) to upgrade my sites.  When I attempted to Deploy (to my IIS 7 localhost) I got the same exception the other folks did above, except that I hadn't done anything with the Admin directory so it didn't seem like a fix for me.  I tried removing the dll which didn't solve the issue, and ended up copying the dll from my older installation ( 2.3.5.1) into the new install bin directory and it worked.  I just wanted to let you know this has happened and see if you have any idea what the issue might be or if you think it could be problematic that I've taken the other dll file.

Best wishes,

Beth

9/21/2010 8:29:05 AM
Gravatar
Total Posts 18439

Re: Could not load file or assembly 'Microsoft.Web.Preview'

The mojoPortal.Web project has a reference to the dll form the _libs folder and when you build it should pull the dependency from the _libs folder into the /bin, but every now and then there can be environment issues where it doesn't happen due to permissions or something and then you can fix it by manually copying the file from _libs folder if needed.

When I pull changes and apply updates and rebuild it works fine for me, but I have seen this kind of thing for various dlls once or twice in the past. I remember at one time this was happening for me with the log4net.dll way back when.

That file (Microsoft.Web.Preview.dll) has been the same version for a very long time so any copy from any recent version should be identical.

Best,

Joe

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