Welcome to HostingForumz.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

intermittent asp error

 
   Web Hosting Problem Solving Community! (Home) -> IIS RSS
Related Topics:
Intermittent Display of Images Using IIS URL Rewriting - I have a .Net website (2.0 running on Windows 2003 server (IIS 6). Certain images on the page render only When they don't render, I get the "red x" and the of the image show the correct url. The webpage that these..

(repost) intermittent failure to Server.CreateObject("MSXM.. - hi, our web site is in (a process that will take years in all -- there is too much needed code to re-write with a small team, given other from ASP to ASP.NET. to help maintain sanity, we set up our..

CERTSRV - error 500 internal server error - Hello, dear all, I have a problem with IIS 6^ On domain server installed Windows Server 2003 R2 SP2. I installed Authority few months ago. After that I some web services) - and delete it. After that..

How i can solve the error "Error 1068: The dependency serv.. - When i try to start IIS 5 in my Windows XP sp2 have the error 1068: The service or group failed to i have try all service, reinstall IIS..) and goggled but not solving some one can help me?

'Error: Connection Error' when connecting to WSUS 3.0 via .. - Hi there, I get the above error message when I try to open the WSUS 3.0 console on the WSUS server (W2K3). It worked fine before. The problem occurred when I was testing on this server (stupid me, I know, I know). I added tsweb for testing..
Next:  problems with javascript (brian cryer script) and..  
Author Message
Viknes

External


Since: Jan 15, 2008
Posts: 1



(Msg. 1) Posted: Tue Jan 15, 2008 4:54 am
Post subject: intermittent asp error
Archived from groups: microsoft>public>inetserver>iis (more info?)

Dear all,

I've an asp page running on IIS6.0 with Win2003. I got this error returned
from the asp while doing file upload (see sample code attached below).

Error Details:
Error number: (-2147467259)
Error Description: 007~ASP 0101 Unexpected error The function returned |.
Error Source: Request Object

I assume that I've a proper value set for "AspMaxRequestEntityAllowed" and
"MaxClientRequestBuffer"


Any idea if any fix is required from the coding perspective? it seems to be
related by the asp: Request.BinaryRead method, from what i could find on the
internet.

The recommendation that I found is the following from
"http://support.softartisans.com/kbview_279.aspx", Service pack3 for windows
2000 may resolve the problem. Please download and apply the latest service
pack available from MS for windows but it related to a different product.

KIndly let us know if this is the case.

Thanks
Viknes

------------------------------------------------------------------------------------------------
Sample Code:

Private Function SaveUploadFile(ByVal strFilename As String)
On Error GoTo SaveUploadFileErr
Dim strUploadPath As String
Dim oFso As Scripting.FileSystemObject
Dim oStream As ADODB.Stream
Dim sFilePath As String
Dim FormSize, FormData

strUploadPath = "\HQS\"
Set oFso = New Scripting.FileSystemObject
If oFso.FolderExists(objServer.MapPath(strUploadPath)) = False Then
If MkDirs(objServer.MapPath(strUploadPath)) Then
WriteSuccess strUploadPath & " successfully created!"
Else
objResponse.Write "failed to create " & strUploadPath
objResponse.End
Set oFso = Nothing
Exit Function
End If
End If
Set oFso = Nothing

WriteSuccess strFilename & " ready to save..."
Set oStream = New ADODB.Stream
sFilePath = objServer.MapPath(strUploadPath & strFilename)
FormSize = objRequest.TotalBytes
FormData = objRequest.BinaryRead(FormSize)
With oStream
.Mode = adModeReadWrite
.Type = adTypeBinary
.Open
.Position = 0
.Write FormData
.SaveToFile sFilePath, adSaveCreateNotExist
End With
Set oStream = Nothing
Set oFso = New Scripting.FileSystemObject
If FileLen(sFilePath) <> FormSize Then
objResponse.Write "HOST PROCESSING FAILED"
objResponse.End
Set oFso = Nothing
Exit Function
Else
objResponse.Write "SUCCESSFULLY RETRIEVED"
End If
Set oFso = Nothing
WriteSuccess strFilename & " successfully saved..."
Exit Function
SaveUploadFileErr:

objResponse.Write "Err:" & Err.Number & "/Desc:" & Err.Description

Set oFso = Nothing
Set oStream = Nothing
End Function

----------------------------------------------------------------------------------------------

 >> Stay informed about: intermittent asp error 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting Problem Solving Community! (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]