Web Service - Create Excel Files

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi Everyone,

I want to build up a web services that uses the Excel Object in .NET (COM).
I typed down the code and everything compiles fine. But when I run it, a
debug message is given : "Access is denied" when I want to pass this line :
"m_objExcel = new Excel.Application();"

What's the cause of this exception? Can I do such a thing in a Web Service?

Thanks in advance
 
Yes, you can. It's a permission problem as it indicates... I think you
should just need to have write permission on the directory.
 
François Lépine said:
Hi Everyone,

I want to build up a web services that uses the Excel Object in .NET
(COM).
I typed down the code and everything compiles fine. But when I run it, a
debug message is given : "Access is denied" when I want to pass this line
:
"m_objExcel = new Excel.Application();"

What's the cause of this exception? Can I do such a thing in a Web
Service?

Thanks in advance

It can be done, it's hard to do and IMO it shouldn't be done, but read this
first:

http://support.microsoft.com/default.aspx?scid=kb;en-us;257757

you might change your mind.

Willy.
 
I put the permission to full access for the ASP.NET account (aspnet on local
machine) and I still have the rising of the same exception. Humm.. pretty
tough one huh? :-)

Thanks a lot to answer me.
 
Back
Top