473,396 Members | 1,834 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,396 software developers and data experts.

Cannot create Excel Object via executable called from ASP.Net

We have executable program that is used to create and send emails to
users. Working on getting it able to be called from a web page we're
having some problems. First of all if debugging the website from local
it returns the common JIT debugger failure, access denied after the
Process.Start() call. Access denied for machine\ASPNET. Haven't been
able to correct even by adding the user to Administrators but can get
around by changing machine.config-processmodel-username to system.

Once past that we can see where it is erroring with
System.Runtime.InteropServices.COMException. Server execution failed.

on this line
Dim oExcel As New Microsoft.Office.Interop.Excel.Application

I assume this is also a permissions issue but running via system gives
this error so not sure what is wrong.

Any ideas?

Thanks.

Aug 3 '06 #1
1 1492
1. Either use impersonation for your asp.net app or give the right to ASPNET
to execute Excel executable. By changing machine.config you have forced
every single ASP.Net app on your machine to run under that user context.

2. Try setting ASPCOMPAT attribute on your page. You may be runing into
threadong model issue.

"Keith McDonald" <kd********@hotmail.comwrote in message
news:11**********************@b28g2000cwb.googlegr oups.com...
We have executable program that is used to create and send emails to
users. Working on getting it able to be called from a web page we're
having some problems. First of all if debugging the website from local
it returns the common JIT debugger failure, access denied after the
Process.Start() call. Access denied for machine\ASPNET. Haven't been
able to correct even by adding the user to Administrators but can get
around by changing machine.config-processmodel-username to system.

Once past that we can see where it is erroring with
System.Runtime.InteropServices.COMException. Server execution failed.

on this line
Dim oExcel As New Microsoft.Office.Interop.Excel.Application

I assume this is also a permissions issue but running via system gives
this error so not sure what is wrong.

Any ideas?

Thanks.

Aug 3 '06 #2

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

Similar topics

8
by: Alex Ang | last post by:
I have written the following VBScript program. It is stored into a file "map_drive.vbs". It successfully mapped to a network drive \\server1\data. Dim WshNetwork Set WshNetwork =...
2
by: brazilnut | last post by:
Hi. Let me explain the setup. I am using Visual Studio .NET to develop a sort of add-in (COM class) for Excel called SQLAddin. It basically queries a SQL server and pulls in data. Now within my...
1
by: Benjamin | last post by:
I am making a Windows EXE (.NET Visual Basic Windows Application). I would like to make it possible to open Excel Worksheets from my EXE. This should work independent of Excel version on client...
3
by: Otie | last post by:
I found the following under the GetObject help notes and in the example for GetObject: "This example uses the GetObject function to get a reference to a specific Microsoft Excel worksheet...
1
by: PISINC | last post by:
I am having a problem creating an instance of the Acrobat application COM component ("AcroExch.App") with C#. The component "AcroExch.App" lives in the Acrobat executable, and you can't add...
1
by: Vlad | last post by:
I am trying to decide whether I should buy Visual Basic.NET Standard. I’d like to know the answer to the following questions to help me decide 1. Can I use Visual Basic.NET Standard to create a...
3
by: Administrator | last post by:
Hi, My web development server is a Windows 2000 SP4 system. Had created an aspx page with the following code which I had extracted from 1 of the Microsoft websites: Dim oExcel As Object Dim...
2
by: cendter | last post by:
Hi there, I am utterly confused - I have a form that starts an instance from excel and let's the user select a range. I then want to take this range as an array of doubles. I ran into trouble...
1
by: Scott M. | last post by:
Many methods return objects when they are called. With Excel these objects are placed in memory and must be destroyed via ReleaseComObject as you have done with your NAR method, but the line: ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
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,...
0
tracyyun
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...
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,...

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.