Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Could not load file or assembly 'Mcrosoft.Web.Preview' or one of its dependencies

Posted on 2007-08-10
3
Medium Priority
?
3,207 Views
Last Modified: 2012-05-05
All of a sudden I started getting these compilation errors:

Error      1      Could not load file or assembly 'Microsoft.Web.Preview, Version=1.1.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
      
Error      11      C:\Web Development\RuppMarine\WebSite3.5\Products.aspx: ASP.NET runtime error: Could not load file or assembly 'Microsoft.Web.Preview' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))      C:\Web Development\RuppMarine\WebSite3.5\Products.aspx      1      

Error      12      C:\Web Development\RuppMarine\WebSite3.5\RuppSubNav.master: ASP.NET runtime error: Could not load file or assembly 'Microsoft.Web.Preview' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))      C:\Web Development\RuppMarine\WebSite3.5\RuppSubNav.master      


Anyone ever run into this?
0
Comment
Question by:alivemedia
  • 2
3 Comments
 
LVL 14

Accepted Solution

by:
NBSO_ISS earned 2000 total points
ID: 19670240
Try taking the .dll from here...
c:\Program Files\Microsoft ASP.NET

Move it to the BIN folder of your web
Remove the reference from the project and re-add the reference to the .dll in the BIN folder.
0
 
LVL 2

Author Comment

by:alivemedia
ID: 19675721
Not sure what happened but this VS Solution was completely borked.

i just created a new one and imported all of my files and it wokred out.
0
 
LVL 14

Expert Comment

by:NBSO_ISS
ID: 19747724
I had the same thing happen to a web project.  I had to install the .dlls in the GAC to get it to work.

Glad it worked out for you.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s a strangely common occurrence that when you send someone their login details for a system, they can’t get in. This article will help you understand why it happens, and what you can do about it.
Simulator games are perfect for generating sample realistic data streams, especially for learning data analysis. It is even useful for demoing offerings such as Azure stream analytics, PowerBI etc.
This video teaches users how to migrate an existing Wordpress website to a new domain.
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.
Suggested Courses

572 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question