Configuration :: Cannot Open A Word Document From Web Server Machine

Mar 26, 2010

I wrote an web form application in C# to open Office Word 2007 documents from the application. This worked perfectly testing in my development environment. But after deploying my application to web server, the documents do not open and I get the following error retrieving the com class factory for component with clsid failed due to the following error: 80040154

It looks like it may be because Office Word 2007 is not installed on the web server box. Would installing it on the web server be the solution, or is this a bad idea. If it is not the solution, then would is an alternative way to do this.

View 2 Replies


Similar Messages:

How To Open Word Document 2007 And Save Format As .xps At Server Side

Nov 3, 2010

How to open word document 2007 and save formate as .xps at server side.

I want the user to open word docx at server side user will click the button to open document which will be execute at server side. I want to show to my client a xps formate of docx which will be converted at server side(from .docx to .xps).

My code is running on local correctly. but at iis5.1 it's not working & giving an exception :-

System.UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80070005.

ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.

To grant ASP.NET access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.

[Code]....

View 1 Replies

Web Forms :: Open Word Document In Word Program Not In Browser

Jan 11, 2011

I have a word document which opens in a web browser using ASP.NET 2.0 this is the code:

[Code]....

THIS WORKS, PROMPTING THE USER WITH "OPEN" "SAVE" "CANCEL" OR SOME USERS WITH "SAVE" "CANCEL" DEPENDING ON USER INTERNET SECURITY SETTING. BUT FOR SECURITY ISSUES, MY BOSS WANT THIS WORD DOCUMENT TO BE OPENED IN WORD PROGRAM. (MICROSOFT WORD 93,97 ETC) IS THIS POSSIBLE....? OFCOURSE SAVING THE FILE IS OKAY, JUST OPENING THE DOCUMENT SHOULD BE NOT BROWSER.

View 3 Replies

Web Forms :: Open Word Document In Iframe Without Open / Save Dialogue

Aug 28, 2010

In my application users upload their word document and user has been given an option to preivew the uploaded document. Inorder to preview the document i put the following code in my page_load event

div1.InnerHtml = "<iframe name='iframe4' src='DocumentUuploaded/report.doc ' target='iframe4' frameborder='no' height='500' scrolling='no' width='800'></iframe>";

The problem is it is asking Do you want to open or save this file. How can i get rid of this dialouge box

View 3 Replies

Open Word Document Without Save/Open Dialog Box?

Feb 11, 2011

I want to open word file in internal window without Dialog box.I use below code.Its is working fine on local machine but when i upload this code on ftp server its is not working and giving me error of Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80070005.

[code]....

View 5 Replies

WebMatrix :: Can Open A Word Document In Browser

Apr 2, 2011

I was playing with some files the other day and one of them was a word document. That then got me thinking whether it was possible to open thos files in my browser. Saves Opening/Saving everytime i click on a document.

View 1 Replies

Open, Edit And Save A Word Document?

May 30, 2010

I want to get a word document from data base by ASP.Net and show it on Internet Explorer, then I want to edit some text and replace this document with the original one, exactly same as Sharepoint. I couldn't find any tutorial or example for this situation.

View 1 Replies

Web Forms :: Open A Word Document Or PDF Stored On The LAN

Nov 22, 2010

I need to be able to click on a button and have it open a word document help file that is stored on the LAN (e.g. \serverfilepath.doc). The word doc can be opened in Word or in the browser, which ever is easier. What's the easiest way to do this?Opening a PDF is even easier, I'm open to that option as well. I'm running Visual Studio 2008 with VB codebehind.

View 3 Replies

How To Open A Word Document On Click Of Link Button

Jan 18, 2010

i have an link button in my gridview once user click that link button i need to open an a word document(the path where the document is stored in server would be like this c:/abc/doc/abc1.doc) so now i should all ow the user to download that document for viewing it.

View 2 Replies

Web Forms :: Open Word Document Located On Webserver?

Jan 20, 2010

I have an word document that's get opend by an web application and some handling is processed.

On my local iis serer this works but not on the real web server.

I installed word 2007 on the web server and set impersonation to true in the web config.

The code I use:

[Code]....

View 7 Replies

C# - Getting Error When Open Word Document File Which Is Generated Using .net?

Jul 17, 2010

I am using below code to generate word document using assp.net/c#.net, please tell me where i am missing it is generating word file and all contents are their.but problem is that when i open it it gives me error:"The Office Open XML file filename.doc cannot be opened because there are problems with the contents"
and after clicking ok i get my required file.remove this error.

in error details:The file is corrupt and cannot be opened after it again gets a error message:"word found unreadable content in myfile.do you want to recover the contents of this document? if you trust the source of ths document,click yes"

using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Office;

[code]...

View 1 Replies

Web Forms :: Open Word Document Stored As A Blob Into An Iframe?

Apr 14, 2010

I am pulling word documents that have been stored in our db as blobs and presenting them to the user. As you can see below, I am writing to the http stream via BinaryWrite. This is causing the Microsoft Word application to open in a separate window. My goal was to open the word document inside of the browser instead. Preferably inside of an iframe within the browser. Is there a way to target an iframe by some analog of the method below?

[Code]....

View 3 Replies

Data Controls :: Open Word Document Stored In Database And View In Browser?

Apr 19, 2014

how we can open word,pdf,txt document which is saved in sqlserver database in binary format.

View 1 Replies

Configuration :: Converting Word Document To HTML Page ?

Nov 27, 2010

I've a aspx page that convert a word document to a aspx page.

At my devemopment PC anything works fine but at Windows Server 2008 I'd a lot of trouble, starting with the error:

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

(Like this thread http://forums.asp.net/p/1423138/3163090.aspx#3163090?Interop+problem!)

But this solution doesn't work for me, the error was the same.So I found an other thread somewhere in the net that suggest to use <identity impersonate="true" userName="user" password="userpw"/> to solve this problem.

This works paticaly, I get no more access error and can create a new instance of the word application.But now I get an error in this line:

objApp.Documents.Open(ref wName,ref missing, ref readOnly, ref missing, ref missing, ref missing,ref missing, ref missing, ref missing, ref missing, ref missing,ref missing, ref missing, ref missing, ref missing, ref missing);

Microsoft.Office.Interop.Word.Document oDoc = objApp.ActiveDocument;

Exception: Command not available as no document is loaded

[Code].... why I can now create an instance but not open the document ...

View 1 Replies

Storing A Word Document In Sql Server?

Mar 23, 2010

How can I store a word document using an upload control in sql server? Also is there a better way to store a word document without using an upload control

View 7 Replies

SQL Server :: How To Store Word Document

Aug 10, 2010

How To Store Word Document in Sql Server

View 3 Replies

SQL Server :: How To Import Word Document

Dec 20, 2010

how do i import whatever is in a word document(including bullets and tables and images) into sql server

View 2 Replies

SQL Server :: How To Display The Word Document

Aug 10, 2010

how to display the word document which is binary document which is stored in database?

View 2 Replies

Web Forms :: Downloading A Word Document From Server With SSL?

Jul 9, 2010

We have an app that hits a database, pulls back the data and puts it into the correct labels, etc on a web page, then opens it as a word document. Testing locally and on our test servers, everything works, but not on production. On production, the window starts to open, the document is never actually generated (so you see an empty window opening), then the window quickly closes.

We're using a javascript function window.open to open the document. The user clicks a command button to view the data as a word document, and it should open and let the user save, print, etc. A direct link to the web page works, but not the javascript.

what headers we might need to add to make this work in our production environment? So far the only difference we can see in the environments is SSL.

View 1 Replies

Web Forms :: Save Word Document Retrieved From SQL Server?

Jan 4, 2011

Now I can upload image/Word document and store it in to our SQL database.

Also I can save image retrieved from our SQL database.

But I am having problem with retrieving Word document.

Right now I am doing this for word document:

[Code]....

This works, but IT ONLY shows in the browser. (I WANT TO SAVE THIS AS .DOC IN ONE OF OUR FOLDER)

For images (*.jpg *.gif) I can save it in our folder. Like this:

[Code]....

This saves as temp.jpg in our Temp folder.

I want to do exactly the same with word document.

But I cannot use Bitmap as image. It gives me error...

View 5 Replies

How To Save The Created Word Document On Database, Or On Server Folder

Feb 14, 2011

I am Generating a Word Document by using Following Code:

StringBuilder str1HTMLContent = new StringBuilder();
str1HTMLContent.Append("<html>".ToString());
str1HTMLContent.Append("<body>".ToString()); [code]....

The word file is Created and popup on windows .How can i save this created word Document on Database, or on server folder?

View 2 Replies

Web Forms :: How To Store And Retrieve Ms Word Document In Sql Server 2000

Jul 1, 2010

iam using asp.net with c# with back end as sql server 2000 i want to store and retreive ms word document 2003 or 2007 using asp.net with c#...

View 1 Replies

C# - How To Download Word Document Stored In Database As Content Data In Sql Server

Jan 4, 2010

How to download a word document which is stored in database, sql server as a content data through C#? This is my Code I'm using:

string doctype = dtResumeInfo.Rows[0]["ContentType"].ToString();
string docname = dtResumeInfo.Rows[0]["FileName"].ToString();
//[code]....

But, it is showing the following error:SubStatusCode 'Response.SubStatusCode' threw an exception of type 'System.PlatformNotSupportedException'
base {"This operation requires IIS integrated pipeline mode."} System.NotSupportedException {System.PlatformNotSupportedException}
Headers 'Response.Headers' threw an exception of type 'System.PlatformNotSupportedException'

My IIS version is 6.0 where I published. Donwloading word document can be done only in IIS 7. So, this is the cause of the error. Is there any other way to overcome this problem? Any other code will support lower version??

View 2 Replies

SQL Server :: Full Text Search In A Word Document - How To Highlight The String

Aug 17, 2010

I´m currently programming a web search application in ASP.Net and having problem with full text searching. My requirements are:

1. Save a byte array from SQL server to word document as a temp file in a server side?

2. How to highlight the string I am currently searching in the Word document and return to the user the sentence with the highlighted string (like on Bing or any other search engines)? Is it possible to fullfill this requirement with full-text search integrated in SQL Server 2008?

View 1 Replies

Msword - Convert Word 2007 Document To Word 2003 Programmatically ?

Apr 15, 2010

any component or library (preferably open source) that would allow me to convert Word 2007 documents to Word 2003 with ASP.NET?

View 3 Replies







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