VS 2008 Could Not Load File Or Assembly 'Microsoft.Office.Interop.Word / How To Fix This Error

Dec 10, 2010

I am having an issue that I do not quite understand. I had an ASP project that I built using

Code:

<add assembly="Microsoft.Office.Interop.Word, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C"/>

while I still had Office 2007 still on my development PC. I recently upgraded to Office 2010 and even though the web.config file still remains with the above assembly reference, when I publish it and run it now i keep getting the following error ...

Quote:

Could not load file or assembly 'Microsoft.Office.Interop.Word, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified.

I also have installed the PIA for Version=14.0.0.0 on the server but I still get the same result.

View 12 Replies


Similar Messages:

Using Microsoft.Office.Interop.Word To Convert Uploaded Word Documents Into Previewable Html Files?

Feb 3, 2010

I'm hoping this is an easy one...I'm using Microsoft.Office.Interop.Word to convert uploaded word documents into previewable html files. I haven't implemented it fully, but I've played around with it enough that I think I have a plan that will work... My question revolves around

[Code]....

I'm not in love with the idea of opening word and closing it everytime there's an upload (which I hope is a lot of the time) I'd like to make this a shared object that loads at application start. I have 2 questions
that go along with this. 1. I imagine that winword could lock up and that would be a problem, right? 2. to save a document I use wordapp.ActiveDocument, this could have an issue as a shared object, right? I think I'm talking myself right out of this...

View 1 Replies

C# - Why Does Web Application Timeout Using Microsoft.Office.Interop.Word

Feb 21, 2011

I have been using using Microsoft.Office.Interop.Word in my webserver (yes, i know it is not recommended). When I ran it on my machine, it runs fine, but when running on the server I get a timeout on the following line:Documents.Open //when trying to open the file.Is there something I'm missing? Is there a better way to edit a Word document within web servers/websites? (I can't create a new one using string builder or outputting into file; I need to edit an existing one that sits on the server.)

View 1 Replies

Error "DataTable Is An Ambiguous Reference Between System.Data.DataTable And Microsoft.Office.Interop.Word.DataTable"

Jan 20, 2011

'DataTable' is an ambiguous reference between 'System.Data.DataTable' and 'Microsoft.Office.Interop.Word.DataTable'

View 3 Replies

How To Use Microsoft.Office.Interop.Excel Without Installing Microsoft Office

Dec 9, 2010

My server administrator does not allow me to install Microsoft Office in the server.

I have developed a website which converts XML files to Excel and it is using Microsoft.Office.Interop.Excel.

Is there any way I can run this application without installing Microsoft Office in the server?

View 7 Replies

C# - Microsoft Office Interop Excel 12.0 Not Working In IIS 7?

Feb 25, 2010

I am creating a pivot table excel sheet in my ASP .NET web application using Microsoft Office Interop Excel 12.0 components. It is creating the excel file correctly, when i run it from my Visual Studio 2008 in Debug/Release mode.

But when i deploy the solution in IIS 7, first i got some permission issues, which i resolved by giving permission in the DCOMCNFG file. Now i am getting the following error, when trying to open the Excel file:

[code]....

These are the code which i used to open and close the excel application object

[code]....

View 1 Replies

C# - Why Not Running Microsoft.Office.Interop.Outlook

Sep 6, 2010

I wrote some code about sending mail, Task, Appoinment etc. For example you can add someone to your outlook contact list over asp.net page. Every thing is ok on my local machine. But if I publish my application to a server I can not add noone on my outlook.

View 2 Replies

Merge Word Documents (Office Interop & .NET) - Keep Formatting

Mar 25, 2010

I'm having some difficulty merging multiple word documents together using Microsoft Office Interop Assemblies (Office 2007) and ASP.NET 3.5. I'm able to merge the documents, but some of my formatting is missing (namely the fonts and images). My current merge code is shown below.

private void CombineDocuments() {
object wdPageBreak = 7;
object wdStory = 6;
object oMissing = System.Reflection.Missing.Value;
object oFalse = false;
object oTrue = true;
string fileDirectory = @"C:documents";
Microsoft.Office.Interop.Word.Application WordApp = new Microsoft.Office.Interop.Word.Application();
Microsoft.Office.Interop.Word.Document wDoc = WordApp.Documents.Add(ref oMissing, ref oMissing, ref oMissing, ref oMissing);
string[] wordFiles = Directory.GetFiles(fileDirectory, "*.doc");
for (int i = 0; i < wordFiles.Length; i++) {
string file = wordFiles[i];
wDoc.Application.Selection.Range.InsertFile(file, ref oMissing, ref oMissing, ref oMissing, ref oFalse);
wDoc.Application.Selection.Range.InsertBreak(ref wdPageBreak);
wDoc.Application.Selection.EndKey(ref wdStory, ref oMissing);
}
string combineDocName = Path.Combine(fileDirectory, "Merged Document.doc");
if (File.Exists(combineDocName))
File.Delete(combineDocName);
object combineDocNameObj = combineDocName;
wDoc.SaveAs(ref combineDocNameObj, ref m_WordDocumentType, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing);
}

I don't care necessarily how this is accomplished. It could output via PDF if it had to. I just want the formatting to carry over.

View 1 Replies

C# - Error: Could Not Load File Or Assembly 'Microsoft.ReportViewer.WebForms, Version=9.0.0.0

Jul 8, 2010

I am getting this error that is related to ReportsViewer. I need to eliminate all references to this library. So where do I need to start deleting the references?

Description: An error occurred during the processing of a configuration file required to service this request. review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Could not load file or assembly 'Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

<add assembly="Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

View 1 Replies

Iis - Could Not Load File Or Assembly Microsoft.Practices.EnterpriseLibrary.Common Error / How To Fix It

Nov 1, 2010

IIS: 5.1(local and IIS 7.0 online)

I am getting the error at localhost. I haven't checked online yet.

The whole thing was working at ASP.NET 3.5 and now when i upgraded to ASP.NET 4.0 I get the following error.

The Stack Trace is

VisualStudio 2010, the error is

This is not happening everytime.

The first runs always show this error.

View 1 Replies

Configuration :: Error Message: Could Not Load File Or Assembly 'Microsoft.AnalysisServices, Version=9.0.242.0'

Jan 30, 2011

<add assembly="Microsoft.AnalysisServices, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91"/>

this error message appeared after i transfered the web application into another server and run it

the error row is as follow:

<add assembly="Microsoft.AnalysisServices, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91"/>

View 1 Replies

Databases :: How To Create Matrix Report Using Microsoft.Office.Interop.Excel.dll

Jan 27, 2010

I wanto to create matrix report dynamically using Microsoft.Office.Interop.Excel.dll so that i can create pivot table and Report from this, how i can create these kind of repots where in user will drag and drop the details and it will create reports.

View 2 Replies

Web Forms :: How To Open Microsoft Office Word File From A Button Click In Aspx Page Using C#

May 11, 2010

i have an aspx page with one button on it the name of the page is Default.aspx

i have a physical microsoft office word file in the c drive

what i want to do is that when i press a button i open a microsoft office word located on the c drive then i add some text to it using c# code

then i want to open the file (that i edited and located in memory) in mircosoft office word to see the text that i have added

everything works fine but when i press the button i get a prompt that says do you want to open the file or save it .

questions:

so how can i directly open the file (located in memory) in microsoft office word without this prompt

also if i choose open from the prompt the file opens in the read only mode and the title of the file in the microsoft word become the name of the aspx page which is Default.aspx

so what is going wrong here

[Code]....

View 2 Replies

Controls :: Read And Import MS Word Document To Database Using Microsoft Interop Word Library

Feb 25, 2016

I have QuestionTable.

ID Question Answer1 Answer2 Answer3 Answer4

But I want import from MS Word into table. I have question like this:

Question:   @1.The capital of India.

 Answer:$A) Dushanbe;$B) Moscow;$C) Delhi;$D) Kabul;

@2.The capital of Tajikistan.

$A) Dushanbe;$B) Moscow;$C) Delhi;$D) Kabul;

@3.The capital of Afganistan.

$A) Dushanbe;$B) Moscow;$C) Delhi;$D) Kabul;

Output result:

ID Question Answer1 Answer2 Answer3 Answer4

1 1.The capital of India. A) Dushanbe; B) Moscow; C) Delhi; D) Kabul;

View 1 Replies

Visual Studio :: Runtime Error: Could Not Load File Or Assembly 'Microsoft.ReportViewer.WebForms, Version'

Apr 13, 2010

I just migrated myDocuments folder to a new laptop (windows 7, 64 bit). The visual studio project WAS working on my desktop computer (windows XP pro).

Runtime error is:

ASP.NET runtime error: Could not load file or assembly 'Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f

It references the config file, so I am looking to see if I need to add something in there or what?

View 1 Replies

VS 2008 Ajax Error - Could Not Load File Or Assembly / Parameter Is Incorrect

Nov 6, 2011

I have ajax control toolkit in bin folder ,i have win 7 inmy system but still i m getting this error ..

Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))

View 1 Replies

Creating Excel File Using Office.Interop?

Nov 10, 2010

In my asp.net page, I am creating excel file using Office.Interop and saving. The application works correctly in my local. When I am deploying in Win 2003 server I am getting below Error. I don't have excel installed in server.

Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005

View 12 Replies

Could Not Load File Or Assembly 'Microsoft.Expression.Encoder.Api2.dll'

Dec 18, 2010

I face some problems while I host my web application(which is a PowerBuilder V12.0 .Net Web Appliaction Developed By PB V12.0 Classic or Migrated from Old PB Versions as the project files are Converted to ASP.Net *.aspx files) in IIS V6.0 on Windows Server 2003and After Installation of .Net Framework Version 4.0 to match the web application which requires .Net Framework 2.0+

The Error Message I get is as follows:-

Could not load file or assembly 'Microsoft.Expression.Encoder.Api2.dll' or one of its dependencies. The specified module could not be found.

Description:

An unhandled exception occurred during the execution of the current web request. review the stack trace for more information about the error and where it originated in the code.

Exception Details:

System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Expression.Encoder.Api2.dll' or one of its dependencies. The specified module could not be found.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[Code]....

View 1 Replies

Configuration :: Could Not Load File Or Assembly 'Microsoft.Licensing.Permutation

Apr 22, 2010

I am working on project in VS 2008 (ASP.Net, C#).

When I view a page in browser it throws following error.

Could not load file or assembly 'Microsoft.Licensing.Permutation_f50a9_2.0(1907)' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))

Description:

An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Licensing.Permutation_f50a9_2.0(1907)' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))

Source Error:

[Code]....

View 1 Replies

Web Forms :: Could Not Load File Or Assembly 'Microsoft.Web.UI.WebControls' Or One Of Its Dependencies?

May 25, 2010

im facing the below issue can anyone tell me how to resolve itCould not load file or assembly 'Microsoft.Web.UI.WebControls' or one of its dependencies. The system cannot find the file specified.

View 5 Replies

SQL Server :: Load File Or Assembly 'Microsoft.SqlServer.SqlClrProvider?

Oct 30, 2010

Hi,
I am trying to developing a project which is getting mssql version, creating tables,views and insert default datas to database.
I have to develeope it working in MSSQL 2005-2008.
Now my project uses using Microsoft.SqlServer.Management.Smo; using Microsoft.SqlServer.Management.Common;
name spaces from MSSQL dlls.it works fine in serves which has MSSQL2008.Bu d-today i tried it in a server which has MSSQL2005 nad it failed.

Error;

Could not load file or assembly 'Microsoft.SqlServer.SqlClrProvider, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified.
So.Where can i find this namespace and and i need to add this namespace dll to my project.
Else i need another way to do these process working in 2005 nad 2008.

View 4 Replies

AJAX :: Could Not Load File Or Assembly 'Microsoft.Scripting.ExtensionAttribute, Version=2.0.0.0'

Sep 2, 2010

I keep getting this strange error (below) on my local machine on the first time the page loads,

Then if I reload it - it loads correctly...

What is really strange is that it does not happen on the server (same settings)

I'm using AJAXControlToolkit.dll version 4.1.40412.2

and this script manager (if not I get the Common.Common.js error)

[Code]....

View 6 Replies

Web Applications - Deployment Fails - Could Not Load File Or Assembly 'Microsoft.mshtml'?

Sep 22, 2010

I have developed a Web application in VS2008. It works perfectly on my development PC. When I publish and upload to the shared Windows hosting service (which supports ASP.NET 3.5), it fails (even when accessing it from my development PC). The error message is: Could not load file or assembly 'Microsoft.mshtml, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.I have read many forum posts on the subject, and have tried the recommended solutions:

Set the reference to Copy Local - VS2008 does not allow Copy Local for ASP.NET references, just for WinForms references.Copy mshtml.dll into the installation directory - I have tried 3 different versions of the file, both in the root directory and /bin/, under both the names "mshtml.dll" and "Microsoft.mshtml.dll". None work.install the Interoperability Assemblies from Visual Studio onto the server by running "vs_piaredist.exe" - I don't have admin access to the server and the hosting company won't do it.

View 2 Replies

Could Not Load File Or Assembly 'Microsoft.Exchange.WebServices, Version=14.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

Mar 2, 2011

I'm working on a project that accesses the Exchange Server. Before I replaced the project to a server, everything went fine. But now I'm getting this error.

View 2 Replies

VS 2008 Unable To Load File Or Assembly 'RequiredFieldValidatorForCheckBoxLists' Or One Of It

Nov 14, 2010

i m Creating a Validation Control for CheckBoxLists ,and i follow this link

i convert C# class to vb.net ,and put validator to checkbox list

here is the code for check box list

[code]

i m Creating a Validation Control for CheckBoxLists ,and i follow this link
http://aspnet.4guysfromrolla.com/web...040302-1.shtml

i convert C# class to vb.net ,and put validator to checkbox list ,here is the code for check box list
Code:
<asp:CheckBoxList ID="hotel_requirement_Types" RepeatColumns=3 RepeatDirection=Horizontal runat="server">
[code]....
i have class


Code:
Imports System.Web.UI
Imports System
[code]....

Description: An error occurred during the parsing of a resource required to service this request.Parser Error Message:

Could not load file or assembly 'RequiredFieldValidatorForCheckBoxLists' or one of its dependencies. The system cannot find the file specified.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved