473,424 Members | 1,992 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,424 software developers and data experts.

Microsoft.Office.Interop.Excel

Hi,
I have an ASP.NET application that creates reports in Excel. It works
fine in development but not on our production Windows 2003 server
running IIS 6.0 Excel does not show up. I had a DCOM access error
which was fixed by giving Network Service Local Launch and Activation
Permissions. The application runs now but Excel does open up. I don't
see it as a process on the server either. Office 2003 was recently
installed on the server for this application. Has anyone had a problem
like this?

Thanks,
Wendell

Jun 26 '07 #1
9 10977
<we***********@hotmail.comwrote in message
news:11**********************@k79g2000hse.googlegr oups.com...
Has anyone had a problem like this?
Server-side Office automation does not work, and Microsoft does not support
it:
http://support.microsoft.com/default...US;q257757#kb2

You'll need to come up with a different solution e.g.:
http://www.aspose.com/Products/Aspos...s/Default.aspx
--
http://www.markrae.net

Jun 26 '07 #2
Maybe is too late for this advise...

Office interop is not recommeded for ASP .net application:

http://support.microsoft.com/default...US;q257757#kb2

Too dangerous to have it on server side applicatons.

You could use XMLSS, or other lite approached.

Good luck
Braulio

/// ------------------------------
/// Braulio DÃ*ez
///
/// http://www.tipsdotnet.com
/// ------------------------------


"we***********@hotmail.com" wrote:
Hi,
I have an ASP.NET application that creates reports in Excel. It works
fine in development but not on our production Windows 2003 server
running IIS 6.0 Excel does not show up. I had a DCOM access error
which was fixed by giving Network Service Local Launch and Activation
Permissions. The application runs now but Excel does open up. I don't
see it as a process on the server either. Office 2003 was recently
installed on the server for this application. Has anyone had a problem
like this?

Thanks,
Wendell

Jun 27 '07 #3
On Jun 27, 7:10 am, Braulio Diez <braulio121NOS...@yahoo.eswrote:
Maybe is too late for this advise...

Office interop is not recommeded for ASP .net application:

http://support.microsoft.com/default...US;q257757#kb2

Too dangerous to have it on server side applicatons.

You could use XMLSS, or other lite approached.

Good luck
Braulio

/// ------------------------------
/// Braulio Díez
///
///http://www.tipsdotnet.com
/// ------------------------------

"wendell_lu...@hotmail.com" wrote:
Hi,
I have an ASP.NET application that creates reports in Excel. It works
fine in development but not on our production Windows 2003 server
running IIS 6.0 Excel does not show up. I had a DCOM access error
which was fixed by giving Network Service Local Launch and Activation
Permissions. The application runs now but Excel does open up. I don't
see it as a process on the server either. Office 2003 was recently
installed on the server for this application. Has anyone had a problem
like this?
Thanks,
Wendell- Hide quoted text -

- Show quoted text -
Thanks, for your quick replys. After reading the suggested articles,
it seems clear that we shall have to go to XML or a 3rd party tool
going forward. Unfortunately, it is too late to change directions for
this initial piece of the project. Do you have any idea why Excel is
not availible when running the application from the server?

Thanks,
Wendell

Jun 27 '07 #4
<we***********@hotmail.comwrote in message
news:11**********************@k29g2000hsd.googlegr oups.com...
After reading the suggested articles, it seems clear that we shall
have to go to XML or a 3rd party tool going forward.
Unfortunately, it is too late to change directions for this initial
piece of the project.
Moving from Office Automation to Aspose is simplicity itself - they have
deliberately made their object model resemble the Office object model as
closely as possible precisely for this reason...
Do you have any idea why Excel is not availible when
running the application from the server?
Excel, as with the rest of Office, was simply not designed to be run in this
way.

The main reason is to do with threading, but there are others...
--
http://www.markrae.net

Jun 27 '07 #5
I think somebody in a previoius thread has pointed the official Ms doc. about
how to configure Excel automation on ASP .net.

Mmmm... anyway take a look at this link, I think it give good tips:

http://www.eggheadcafe.com/articles/20021012.asp

Good luck
Braulio

/// ------------------------------
/// Braulio DÃ*ez
///
/// http://www.tipsdotnet.com
/// ------------------------------


"we***********@hotmail.com" wrote:
On Jun 27, 7:10 am, Braulio Diez <braulio121NOS...@yahoo.eswrote:
Maybe is too late for this advise...

Office interop is not recommeded for ASP .net application:

http://support.microsoft.com/default...US;q257757#kb2

Too dangerous to have it on server side applicatons.

You could use XMLSS, or other lite approached.

Good luck
Braulio

/// ------------------------------
/// Braulio Dmez
///
///http://www.tipsdotnet.com
/// ------------------------------

"wendell_lu...@hotmail.com" wrote:
Hi,
I have an ASP.NET application that creates reports in Excel. It works
fine in development but not on our production Windows 2003 server
running IIS 6.0 Excel does not show up. I had a DCOM access error
which was fixed by giving Network Service Local Launch and Activation
Permissions. The application runs now but Excel does open up. I don't
see it as a process on the server either. Office 2003 was recently
installed on the server for this application. Has anyone had a problem
like this?
Thanks,
Wendell- Hide quoted text -
- Show quoted text -

Thanks, for your quick replys. After reading the suggested articles,
it seems clear that we shall have to go to XML or a 3rd party tool
going forward. Unfortunately, it is too late to change directions for
this initial piece of the project. Do you have any idea why Excel is
not availible when running the application from the server?

Thanks,
Wendell

Jun 28 '07 #6
"Braulio Diez" <br**************@yahoo.eswrote in message
news:A4**********************************@microsof t.com...
I think somebody in a previoius thread has pointed the official Ms doc.
about
how to configure Excel automation on ASP .net.
Which also include, in bold, a warning that Microsoft will not support any
solution which tries to use server-side automation because it doesn't
work...
Mmmm... anyway take a look at this link, I think it give good tips:

http://www.eggheadcafe.com/articles/20021012.asp
On the contrary - it demonstrates server-side automation, so should be
ignored...
--
http://www.markrae.net

Jun 28 '07 #7
On Jun 28, 2:06 am, Braulio Diez <braulio121NOS...@yahoo.eswrote:
I think somebody in a previoius thread has pointed the official Ms doc. about
how to configure Excel automation on ASP .net.

Mmmm... anyway take a look at this link, I think it give good tips:

http://www.eggheadcafe.com/articles/20021012.asp

Good luck
Braulio

/// ------------------------------
/// Braulio Díez
///
///http://www.tipsdotnet.com
/// ------------------------------

"wendell_lu...@hotmail.com" wrote:
On Jun 27, 7:10 am, Braulio Diez <braulio121NOS...@yahoo.eswrote:
Maybe is too late for this advise...
Office interop is not recommeded for ASP .net application:
>http://support.microsoft.com/default...US;q257757#kb2
Too dangerous to have it on server side applicatons.
You could use XMLSS, or other lite approached.
Good luck
Braulio
/// ------------------------------
/// Braulio Dmez
///
///http://www.tipsdotnet.com
/// ------------------------------
"wendell_lu...@hotmail.com" wrote:
Hi,
I have an ASP.NET application that creates reports in Excel. It works
fine in development but not on our production Windows 2003 server
running IIS 6.0 Excel does not show up. I had a DCOM access error
which was fixed by giving Network Service Local Launch and Activation
Permissions. The application runs now but Excel does open up. I don't
see it as a process on the server either. Office 2003 was recently
installed on the server for this application. Has anyone had a problem
like this?
Thanks,
Wendell- Hide quoted text -
- Show quoted text -
Thanks, for your quick replys. After reading the suggested articles,
it seems clear that we shall have to go to XML or a 3rd party tool
going forward. Unfortunately, it is too late to change directions for
this initial piece of the project. Do you have any idea why Excel is
not availible when running the application from the server?
Thanks,
Wendell- Hide quoted text -

- Show quoted text -
Braulio, that is a good article. It sould get us over.
Thanks all for your help.
Wendell

Jun 28 '07 #8
<we***********@hotmail.comwrote in message
news:11*********************@k29g2000hsd.googlegro ups.com...
Braulio, that is a good article. It sould get us over.
Sigh...

The code in that article uses server-side automation.

THERE IS A VERY STRONG POSSIBILITY THAT IT WILL NOT WORK!!!!!
--
http://www.markrae.net

Jun 28 '07 #9
re:
!THERE IS A VERY STRONG POSSIBILITY THAT IT WILL NOT WORK!!!!!

Or worse, that it *will* work...screwing up the server in any of a zillion ways.

<g, d & r...>

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Mark Rae" <ma**@markNOSPAMrae.netwrote in message news:eK**************@TK2MSFTNGP02.phx.gbl...
<we***********@hotmail.comwrote in message news:11*********************@k29g2000hsd.googlegro ups.com...
>Braulio, that is a good article. It sould get us over.

Sigh...

The code in that article uses server-side automation.
THERE IS A VERY STRONG POSSIBILITY THAT IT WILL NOT WORK!!!!!

Jun 28 '07 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Julia | last post by:
Hi, I am trying to use the Microsoft.Office.Interop.Excel.dll but I dont know how. First, how do I install it? I have tried to run the register.bat but it doesnt work. How should I do this? ...
3
by: ©pEIO | last post by:
Example: Dim xlsExcel As Excel.Application Dim wkbExcel As Excel.Workbook Dim wksExcel As Excel.Worksheet xlsExcel = New Excel.Application wkbExcel = xlsExcel.Workbooks.Open("C:\Test.xls")...
5
by: C# newbie with big problems | last post by:
Ok, I've tried everything I could come up with but nothing is working. I am creating an application which needs to post information into an excel document. I have not yet had a chance to play with...
0
by: Cheryl | last post by:
I am new to C# and I am trying to convert this vba code to C#: Columns("A:A").Select Selection.TextToColumns Destination:=Range("A1"), DataType:=xlDelimited, _ TextQualifier:=xlDoubleQuote,...
0
by: pradeepkumarappagari | last post by:
by using 'Microsoft.Office.Interop.Excel.dll' can we set print settings of an excel file? if possible tell me what and all we can do by using 'Microsoft.Office.Interop.Excel.dll'.
0
by: insanomania911 | last post by:
I tried everything: - the refrerence to MS OFFICE 11.0 - Installed the PIA to the Office 2003 and made sure that the files are in the assembly folder When I add the reference I only get...
0
by: Saradhamba | last post by:
Hi, I have made use of the excel objects to export my data to excel. When i try debugging it throws error in the excel object being created. It throws "System.FileNotFound.Exception". Any help...
0
by: bfrank1972 | last post by:
I want to be able to get a list of all custom named fields in an Excel worksheet, but I am having trouble with this. In the code below, access to a field that I named "DEALCODE" works fine - I get...
1
by: romcab | last post by:
Hi guys, I'm trying to manipulate excel using a C#.net and my problem is that I cannot add the namespace Microsoft.Office.Interop.Excel. Does anyone know why? Do I need to download it...
10
KodeKrazy
by: KodeKrazy | last post by:
I'm trying to read an Excel worksheet and do a find/replace for all of the commas "," in any of the cells in the sheet and replace them with a dash "-" I can get as far as getting the workbook...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.