peerlesslv
asked on
Trouble understanding the following error.
Hi
I'm trying to use SoftArtisans.FileUp to upload a text file to the server. I've used similar code for ASP, but am getting the following error using ASP.NET. I'm new to this and do not understand the error. Can someone shed some light?
The source error points to this line of code...
Line 22: objUpload.Form("file").Sav e()
The error I'm getting is
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Runtime.InteropServ ices.COMEx ception: The server threw an exception.
Stack Trace:
[COMException (0x80010105): The server threw an exception.]
Microsoft.VisualBasic.Comp ilerServic es.LateBin ding.LateG et(Object o, Type objType, String name, Object[] args, String[] paramnames, Boolean[] CopyBack) +895
ASP.process_aspx.Local_Pag e_Load() in C:\Inetpub\wwwroot\test.tr ends.fusio nmedia.com \process.a spx:22
ASP.process_aspx.Page_Load () in C:\Inetpub\wwwroot\test.tr ends.fusio nmedia.com \global\sc ripts\serv er\common. vbs:14
System.Web.Util.ArglessEve ntHandlerD elegatePro xy.Callbac k(Object sender, EventArgs e) +10
System.Web.UI.Control.OnLo ad(EventAr gs e) +67
System.Web.UI.Control.Load Recursive( ) +35
System.Web.UI.Page.Process RequestMai n() +731
I'm trying to use SoftArtisans.FileUp to upload a text file to the server. I've used similar code for ASP, but am getting the following error using ASP.NET. I'm new to this and do not understand the error. Can someone shed some light?
The source error points to this line of code...
Line 22: objUpload.Form("file").Sav
The error I'm getting is
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Runtime.InteropServ
Stack Trace:
[COMException (0x80010105): The server threw an exception.]
Microsoft.VisualBasic.Comp
ASP.process_aspx.Local_Pag
ASP.process_aspx.Page_Load
System.Web.Util.ArglessEve
System.Web.UI.Control.OnLo
System.Web.UI.Control.Load
System.Web.UI.Page.Process
this will help you determine what the problem is. if you need more help just post the results
why not just use regular asp.net upload?
Regards,
Aeros
Regards,
Aeros
ASKER
Interesting point AerosSaga. I read a little about asp.net upload and just might have to give that a try.
I've spent a little time on this current problem and feel like I just need to get to the bottom of it because its driving me nuts. trevorhartman, thanks for the try/catch block. here's what I got:
System.Runtime.InteropServ ices.COMEx ception (0x80010105): The server threw an exception. at Microsoft.VisualBasic.Comp ilerServic es.LateBin ding.LateG et(Object o, Type objType, String name, Object[] args, String[] paramnames, Boolean[] CopyBack) at ASP.process_aspx.Local_Pag e_Load() in C:\Inetpub\wwwroot\test.tr ends.fusio nmedia.com \process.a spx:line 24
Any sense?
I've spent a little time on this current problem and feel like I just need to get to the bottom of it because its driving me nuts. trevorhartman, thanks for the try/catch block. here's what I got:
System.Runtime.InteropServ
Any sense?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks AerosSaga.
Much better.
Much better.
Try
objUpload.Form("file").Sav
Catch e As Exception
Response.Write(e.ToString(
End Try