Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

asp.net application exception

Status
Not open for further replies.

clyde11

Programmer
Feb 6, 2006
25
GB
Hi all,
I've written an asp.net web application that works just fine on my personal machine but when i moved it to the server folder there is this exception i'm getting while using export method of an OWC11 object.

there are 2 things i don't really understand,
1. why do i get this exception on the server and not on my personal machine ?
2. in the Exception details, the error pointing the page located on my machine
(when the application running on the server..) i don't know why the server points to the page located on my machine. (notice that it direct me to "c:\inetpub\ which this path located on my machine)

Thanks,
P.

code caused the error: (the export method)
OWC11.SpreadsheetClass xlsheet = new OWC11.SpreadsheetClass();
string path = Server.MapPath(".")+"\\"+ "query.xls";
xlsheet.Export( path, o1, o2);

Exception:
System.Runtime.InteropServices.COMException (0xE004002A): Exception from HRESULT: 0xE004002A. at OWC11.SpreadsheetClass.Export(String Filename, SheetExportActionEnum Action, SheetExportFormat Format) at qsc.WebForm1.Button2_Click(Object sender, EventArgs e) in c:\inetpub\ 1123
 
It could be a permissions problem. Have you checked any of the DCOM settings?


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
thanks, it is a permission issue,
the web master gave the server directory writing permissions and it was solved.....but still, can't really understand why the exception trace was pointing to my personal machine folder and not to the serever's folder..

Thanks,
P
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top