Access Denied

  • Thread starter Thread starter Tim Marsden
  • Start date Start date
T

Tim Marsden

Hi,

I have a vb.net dll which uses some excel functionality.
I use :

Dim XL As Excel.Application
XL = New Excel.Application.

When I call the appropriate class from a windows form app, all is OK.
When I call it from a Web Form I get a message on the "new" statement saying
"Access is Denied"

Am I missing something

Regards
Tim
 
You need to grant access to the aspnet account in component services:

in componenet services, under the machine, under DCOM Config, select
Microsoft Excel Application
right click, properties
under the security tab
Customize launch permissions
click edit
add the asp.net account

Your next post will be about Exel eating 25 MB of memory and not releasing
it after every file is generated....happy trails <g> (if you have problems
with that, send me an email privatly and I'll look up the fix I did at my
office on a past project I designed and post it in the forums under a new
thread)

--
Eric Marvets
Principal Consultant

the bang project

<shameless self promotion>

Email (e-mail address removed) for Information on Our Architecture and
Mentoring Services

</shameless self promotion>
 
Many Thanks Eric

Security fixed.

I will now check the memory usage and see whats happens

Regards
Tim
 
Back
Top