app. on server problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fishy
    New Member
    • Aug 2006
    • 2

    #1

    app. on server problem

    Hi all,
    I'vw 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\www root\qsc\webfor m1.aspx.cs" which this path located on my machine)

    Thanks,
    P.

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

    Exception:
    System.Runtime. InteropServices .COMException (0xE004002A): Exception from HRESULT: 0xE004002A. at OWC11.Spreadshe etClass.Export( String Filename, SheetExportActi onEnum Action, SheetExportForm at Format) at qsc.WebForm1.Bu tton2_Click(Obj ect sender, EventArgs e) in c:\inetpub\wwwr oot\qsc\webform 1.aspx.cs:line 1123
  • viral123
    New Member
    • Apr 2007
    • 11

    #2
    Originally posted by fishy
    Hi all,
    I'vw 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\www root\qsc\webfor m1.aspx.cs" which this path located on my machine)

    Thanks,
    P.

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

    Exception:
    System.Runtime. InteropServices .COMException (0xE004002A): Exception from HRESULT: 0xE004002A. at OWC11.Spreadshe etClass.Export( String Filename, SheetExportActi onEnum Action, SheetExportForm at Format) at qsc.WebForm1.Bu tton2_Click(Obj ect sender, EventArgs e) in c:\inetpub\wwwr oot\qsc\webform 1.aspx.cs:line 1123

    Hey I am getting the same problem. Did you Fix It? Please Let me know If yes.

    Thanks in Advance

    Comment

    Working...