Can't instantiate Excel app object in ASP.net app (permissions iss

Can't instantiate Excel app object in ASP.net app (permissions iss

Post by UGV0ZXIgQn » Fri, 17 Feb 2006 05:45:26


Ron,
Have you set the aspCompat="true" in your @Page declaration? This is
required to do COM Interop in an ASP.NET page. What is the exact exception
you are getting?
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.yqcomputer.com/
UnBlog:
http://www.yqcomputer.com/
 
 
 

Can't instantiate Excel app object in ASP.net app (permissions iss

Post by Willy Deno » Fri, 17 Feb 2006 05:50:11

Peter,

This attribute is for in-proc native COM servers only, here the server is an
out-proc server application, so this is not applicable and not the OP's
issue euither.

Willy.



| Ron,
| Have you set the aspCompat="true" in your @Page declaration? This is
| required to do COM Interop in an ASP.NET page. What is the exact exception
| you are getting?
| Peter
|
| --
| Co-founder, Eggheadcafe.com developer portal:
| http://www.yqcomputer.com/
| UnBlog:
| http://www.yqcomputer.com/
|
|
|
|

|
| > The following line in my ASP.NET 2.0 app will not execute because of a
| > permissions issue.
| >
| > Excel.Application objApplication = new Excel.Application();
| >
| > How/where do I make the setting to allow this?
| >
| >
| >
| > Thanks,
| >
| > Ron
| >
| >
| >

 
 
 

Can't instantiate Excel app object in ASP.net app (permissions iss

Post by TWljaGFlbC » Fri, 17 Feb 2006 06:09:28

http://www.yqcomputer.com/
MS does not recommend server side automation of office.
And for writing to Excel the following link:
http://www.yqcomputer.com/




--
WBR,
Michael Nemtsev :: blog: http://www.yqcomputer.com/

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche