Hello,
My Web application in VB2008 with IIS calls Excel (2003) to create an Excel
file xls. I use therefore Microsoft.Offic e.Interop.Excel , version 11.
This application does not use anonymous connections; it automaticaly uses
the Windows userid.
On my development PC, with local server, everything is OK.
On a test server with IIS and Excel, my program gets an error on the first
statement related to Excel :
Dim ApplicationExce l As New Excel.Applicati on
Error message: Retrieving the COM class factory for component with CLSID
{...} failed due to the following error : 80070005.
Explanations : ASP.NET is not authorized to access the requested resource.
Etc.
What access rights should I grant to what resources ?
Thank you for your help,
Gilbert 2 1884
On Sep 11, 5:23*pm, "Gilbert Tordeur" <gilbert.tord.. .@orange.fr>
wrote:
Hello,
My Web application in VB2008 with IIS calls Excel (2003) to create an Excel
file xls. I use therefore Microsoft.Offic e.Interop.Excel , version 11.
This application does not use anonymous connections; it automaticaly uses
the Windows userid.
On my development PC, with local server, everything is OK.
On a test server with IIS and Excel, my program gets an error on the first
statement related to Excel :
Dim ApplicationExce l As New Excel.Applicati on
Error message: Retrieving the COM class factory for component with CLSID
{...} failed due to the following error : 80070005.
Explanations : ASP.NET is not authorized to access the requested resource..
Etc.
What access rights should I grant to what resources ?
Thank you for your help,
Gilbert
Hi,
Two things:
1) You need to have exactly the same version of Excel installed on
your web server.
2) Try using ASP.NET Full Trust mode. Office interop DLLs are
unmanaged code.
My opinion is that you should avoid COM interop
( http://www.gemboxsoftware.com/GBSpre...tm#Automation),
especially on a web server.
Our GemBox.Spreadsh eet Free Excel component
( http://www.gemboxsoftware.com/GBSpreadsheetFree.htm) can be used
free
of charge to generate/import/export excel data as long as XLS/CSV/
XLSX
files are not large.
-- Zeljko
ZSvedic,
Thank you for your answer.
1) Yes I use the same version on both machines.
2) I have granted full access to C:\ and D:\ to the account ASPNET, and I
have also changed the DCOM configuration (cf. http://blog.crowe.co.nz/archive/2006/03/02/589.aspx), and now it works.
However I have probably given too many rights to ASP.NET ; do you know what
folders I have to give full access to ?
I will investigate the GemBox software.
Regards,
Gilbert
"ZSvedic" <ZS*****@gmail. coma écrit dans le message de news: f0************* *************** **...legroup s.com...
On Sep 11, 5:23 pm, "Gilbert Tordeur" <gilbert.tord.. .@orange.fr>
wrote:
Hello,
My Web application in VB2008 with IIS calls Excel (2003) to create an
Excel
file xls. I use therefore Microsoft.Offic e.Interop.Excel , version 11.
This application does not use anonymous connections; it automaticaly uses
the Windows userid.
On my development PC, with local server, everything is OK.
On a test server with IIS and Excel, my program gets an error on the first
statement related to Excel :
Dim ApplicationExce l As New Excel.Applicati on
Error message: Retrieving the COM class factory for component with CLSID
{...} failed due to the following error : 80070005.
Explanations : ASP.NET is not authorized to access the requested resource.
Etc.
What access rights should I grant to what resources ?
Thank you for your help,
Gilbert
Hi,
Two things:
1) You need to have exactly the same version of Excel installed on
your web server.
2) Try using ASP.NET Full Trust mode. Office interop DLLs are
unmanaged code.
My opinion is that you should avoid COM interop
( http://www.gemboxsoftware.com/GBSpre...tm#Automation),
especially on a web server.
Our GemBox.Spreadsh eet Free Excel component
( http://www.gemboxsoftware.com/GBSpreadsheetFree.htm) can be used
free
of charge to generate/import/export excel data as long as XLS/CSV/
XLSX
files are not large.
-- Zeljko This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: jinu |
last post by:
hello,
I need to run a vb.net application in different OSs like windows 2003,
windows 2000, windows 98 etc....
where only windows 2003 have built-in .net framework and to be installed in
others.
The problem is, client do not want to install excel in all the machines
where this application in intended to run BUT need to read an excel file for
data from all the machines.
I coded using OLEDB. but is it possible to read an excel file...
|
by: Bernd Muent |
last post by:
Hi together,
I am using the following code in Visual Basic to open Word or Excel
applications:
Word:
Dim w As Word.Application
w = CType(CreateObject("Word.application"), Word.Application)
w.Application.Documents.Open("test.doc")
With w.Application.Selection
|
by: Rich Wallace |
last post by:
Hi all,
I have a VB app that runs and manages individual XLS files within a single
COM object. Upon processing the final fie, I attempt to close out the EXCEL
object and release it using
System.Runtime.InteropServices.Marshal.ReleaseComObject.
I have a Try...Catch in my routine as seen below and when I receive the
error, my Catch is never called so my app sees the release as successful,
but when I look in Task Manager, the EXCEL.EXE...
|
by: Jason |
last post by:
I am having some trouble manipulating Excel files. Currently I am
trying to create and then close an Excel file/application with the following
code. It works fine, except it leaves an EXCEL application open, which I can
see in the Task Manager. I have tried oExcel.Dispose(), but this generates
an error. How can I correct this code so that the object is properly
disposed of? Thanks!
Public Sub CreateExcelFile(Optional ByVal sFileName As...
|
by: Doug Glancy |
last post by:
I got the following code from Francesco Balena's site, for disposing of Com
objects:
Sub SetNothing(Of T)(ByRef obj As T)
' Dispose of the object if possible
If obj IsNot Nothing AndAlso TypeOf obj Is IDisposable Then
DirectCast(obj, IDisposable).Dispose()
| |
by: snare88 |
last post by:
I have a question regarding a VB.NET 2003 application which was built
on a Windows XP machine with Office 2002 installed. The software does
some interfacing with Microsoft Excel. I now want to run this
application on a Windows 2000 machine with Office 2003 installed.
However, it is not functioning correctly. The application DOES work
on a Windows XP machine running Office 2003. I am referencing the
"Microsoft Excel 10.0 Object...
|
by: hitencontractor |
last post by:
I am working on .NET Version 2003 making an SDI application that calls MS Excel 2003.
I added a menu item called "MyApp Help" in the end of the menu bar to show Help-> About.
The application calls MS Excel, so the scenario is that I am supposed to see the Excel Menu bar,
FILE EDIT VIEW INSERT ... HELP.
I am able to see the menu bar, but in case of Help, I see the Help of Excel and help of my application, both as a submenu of help.
...
|
by: Gilbert Tordeur |
last post by:
Hello,
My Web application in VB2008 with IIS calls Excel (2003) to create an Excel
file xls. I use therefore Microsoft.Office.Interop.Excel, version 11.
This application does not use anonymous connections; it automaticaly uses
the Windows userid.
On my development PC, with local server, everything is OK.
On a test server with IIS and Excel, my program gets an error on the first
|
by: Gilbert Tordeur |
last post by:
Hello,
My Web application in VB2008 with IIS calls Excel (2003) to create an Excel
file xls. I use therefore Microsoft.Office.Interop.Excel, version 11.
This application does not use anonymous connections; it automaticaly uses
the Windows userid.
On my development PC, with local server, everything is OK.
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |