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 1:05:21 PM
Gravatar
Total Posts 26

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

My installation on a Plesk host went quite well, but when I sign in as admin, and try to configure the site (gear icon), I get the exception:

Could not load file or assembly 'Microsoft.Web.Preview, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

This file is present in the bin folder, so I assume it's a version problem.  Any suggestions?

10/14/2008 1:08:25 PM
Gravatar
Total Posts 18439

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

It might be a medium trust issue. In medium trust it might be required to only run that file from the GAC (Global Assembly Cache) on the server. I would try deleting the one from the bin folder and hope it is installed in the GAC.

Hope it helps,

Joe

10/14/2008 1:20:06 PM
Gravatar
Total Posts 26

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

After deleting the dll, I know get the following:

[code=SERVER_RESPONSE_RESET] The server response could not be read because of an error. Contact your system administrator.

I might have deleted something else by accident, so check the whole bin folder.

I notice the version of the installed dll is 1.0.61231.0.  Could this mean anything?

 

BTW, I really owe you a few beers already.

10/14/2008 1:30:57 PM
Gravatar
Total Posts 18439

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

You could try putting the dll back and see if setting the version in Web.config to match it fixes it. Its declared in the assemblies section of Web.config. You could also try just commenting that out. As far as I know the only thing that uses that preview dll is the MyPage feature. The preview dll allows the webpart drag and drop to work in Firefox and Safari.

It looks like I may have updated the dll but not the declaration in Web.config

Hope it helps,

Joe

10/14/2008 1:37:40 PM
Gravatar
Total Posts 18439

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

No, I just tested it the version in Web.config was correct despite what the file version says.

10/14/2008 1:43:12 PM
Gravatar
Total Posts 26

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

Well, I changed the version in config, and now I get a whole new error:

Could not load file or assembly 'mojoPortal.Web'

This seems to be related to the <httpModules> section:

<add name="GCheckoutBasicAuthenticationModule" type="mojoPortal.Web.GCheckoutBasicAuthenticationModule, mojoPortal.Web" />

 

 

10/14/2008 1:52:30 PM
Gravatar
Total Posts 18439

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

Restore the previous version in Web.config. The advice to chage it was wrong.

10/14/2008 2:06:40 PM
Gravatar
Total Posts 18439

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

Next thing I would try is just commenting out that reference to the preview dll from web.config

 

 

 

 

 

10/14/2008 2:17:52 PM
Gravatar
Total Posts 26

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

OK, now I'm really stuffed.  I copied a web.config with a broken connection string, so mojo ran some configuration scripts when I fixed the connection string.  Now I can't sign in with my admin details, nor retrieve password, nor sign in with the defaults.  I'm going to try and recreate the database and start fresh.

10/14/2008 2:20:14 PM
Gravatar
Total Posts 18439

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

I'm in the process of uploading new files for the new 2.2.7.6 release, so if you are starting over you might as well get the new version.

Best,

Joe

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.

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