Dear Experts,
In my web application, I am having a button to open a file located in the
server. When I click on the button to view the file, I received the following
error message:
----------------------------------------------------------
Exception from HRESULT: 0xC004800A
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. InteropServices .COMException: Exception
from HRESULT: 0xC004800A
Source Error:
Line 18: objStream.Type = 1 ' adTypeBinary
Line 19: ' The following should be the absolute URL to the file on
the server.....
Line 20:
objStream.Open( "URL=http://Teklang1/ITRS_Testing/ITRS/Attachments/" &
Trim(txtAttachm ent.Text), 1, -1)
Line 21: 'objStream.Open ("//Teklang1/ITRS_Testing/ITRS/Attachments/"
& Trim(txtAttachm ent.Text))
Line 22:
Source File: D:\ITRS_Testing \ITRS\EnquiryRe sult.aspx Line: 20
Stack Trace:
[COMException (0xc004800a): Exception from HRESULT: 0xC004800A]
Microsoft.Visua lBasic.Compiler Services.LateBi nding.InternalL ateCall(Object o,
Type objType, String name, Object[] args, String[] paramnames, Boolean[]
CopyBack, Boolean IgnoreReturn) +776
Microsoft.Visua lBasic.Compiler Services.NewLat eBinding.LateCa ll(Object
Instance, Type Type, String MemberName, Object[] Arguments, String[]
ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack, Boolean
IgnoreReturn) +365640
ASP.itrs_enquir yresult_aspx.Vi ewDoc(Object Source, EventArgs E) in
D:\ITRS_Testing \ITRS\EnquiryRe sult.aspx:20
System.Web.UI.W ebControls.Butt on.OnClick(Even tArgs e) +105
System.Web.UI.W ebControls.Butt on.RaisePostBac kEvent(String eventArgument)
+107
System.Web.UI.W ebControls.Butt on.System.Web.U I.IPostBackEven tHandler.RaiseP ostBackEvent(St ring eventArgument) +7
System.Web.UI.P age.RaisePostBa ckEvent(IPostBa ckEventHandler
sourceControl, String eventArgument) +11
System.Web.UI.P age.RaisePostBa ckEvent(NameVal ueCollection postData) +33
System.Web.UI.P age.ProcessRequ estMain(Boolean
includeStagesBe foreAsyncPoint, Boolean includeStagesAf terAsyncPoint) +5102
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.507 27.42; ASP.NET
Version:2.0.507 27.42
-----------------------------------------------------------------
The webserver is running on Windows 2000 sp4 and with .NET Framework 1.1,
1.1 sp1 and 2.0 being installed. This server is also running as Active
Directory. I have manually created a user named ASPNET and assigned full
control to the folder that contains my files.
May I know what is the possible solution to this problem? Please advise.
Thanks.
In my web application, I am having a button to open a file located in the
server. When I click on the button to view the file, I received the following
error message:
----------------------------------------------------------
Exception from HRESULT: 0xC004800A
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. InteropServices .COMException: Exception
from HRESULT: 0xC004800A
Source Error:
Line 18: objStream.Type = 1 ' adTypeBinary
Line 19: ' The following should be the absolute URL to the file on
the server.....
Line 20:
objStream.Open( "URL=http://Teklang1/ITRS_Testing/ITRS/Attachments/" &
Trim(txtAttachm ent.Text), 1, -1)
Line 21: 'objStream.Open ("//Teklang1/ITRS_Testing/ITRS/Attachments/"
& Trim(txtAttachm ent.Text))
Line 22:
Source File: D:\ITRS_Testing \ITRS\EnquiryRe sult.aspx Line: 20
Stack Trace:
[COMException (0xc004800a): Exception from HRESULT: 0xC004800A]
Microsoft.Visua lBasic.Compiler Services.LateBi nding.InternalL ateCall(Object o,
Type objType, String name, Object[] args, String[] paramnames, Boolean[]
CopyBack, Boolean IgnoreReturn) +776
Microsoft.Visua lBasic.Compiler Services.NewLat eBinding.LateCa ll(Object
Instance, Type Type, String MemberName, Object[] Arguments, String[]
ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack, Boolean
IgnoreReturn) +365640
ASP.itrs_enquir yresult_aspx.Vi ewDoc(Object Source, EventArgs E) in
D:\ITRS_Testing \ITRS\EnquiryRe sult.aspx:20
System.Web.UI.W ebControls.Butt on.OnClick(Even tArgs e) +105
System.Web.UI.W ebControls.Butt on.RaisePostBac kEvent(String eventArgument)
+107
System.Web.UI.W ebControls.Butt on.System.Web.U I.IPostBackEven tHandler.RaiseP ostBackEvent(St ring eventArgument) +7
System.Web.UI.P age.RaisePostBa ckEvent(IPostBa ckEventHandler
sourceControl, String eventArgument) +11
System.Web.UI.P age.RaisePostBa ckEvent(NameVal ueCollection postData) +33
System.Web.UI.P age.ProcessRequ estMain(Boolean
includeStagesBe foreAsyncPoint, Boolean includeStagesAf terAsyncPoint) +5102
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.507 27.42; ASP.NET
Version:2.0.507 27.42
-----------------------------------------------------------------
The webserver is running on Windows 2000 sp4 and with .NET Framework 1.1,
1.1 sp1 and 2.0 being installed. This server is also running as Active
Directory. I have manually created a user named ASPNET and assigned full
control to the folder that contains my files.
May I know what is the possible solution to this problem? Please advise.
Thanks.
Comment