473,326 Members | 2,255 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

007~ASP 0101~Unexpected error~The function returned |

Using SaFileUp to upload a file through HTTPS. The same installation of
FileUp only errors in this application. The file is then parsed in real
time in a VB6 dll. The Response Object is obtained through COM+ and
messages are written directly from VB6 to the browser.

Error occurs when a file is uploaded that is about 1 MB in size (9500
records or so), and occurs when we call the SaFileUp.IsEmpty method, which
SaFileup says is the first time that ASP Request.Binary stuff happens.
Smaller file sizes work just fine.

Does anybody know why??

Here's the code:

Dim lRet As Long
Dim oFileUp As Object
'Dim sTempDirectory As String
Dim sFileData As String
Dim rsTemp As ADODB.Recordset
Dim sPos As String
Dim sFileName As String
Dim sFilePath As String
Dim lFhdl As Long
Dim byArray() As Byte

Const PROC_NAME As String = "RetrieveFile"

On Error GoTo ErrorHandler

m_oErr.AddProcedureName PROC_NAME

'sTempDirectory = GetTemporaryDirectory
'sFileName = GetTemporaryFileName(sTempDirectory)
sPos = "Creating SAFileup"
m_oStatus.OutputStatusMessage seReceivingFile, GetErrorMessage(m_oDB,
seReceivingFile)
Set oFileUp = m_oCTX.CreateInstance("SoftArtisans.FileUp")

sPos = "Getting ProgressID"
oFileUp.progressID = m_lProgressID

sPos = "Checking empty fileup"
If oFileUp.IsEmpty Then <--Error Occurs Here
....
Jul 19 '05 #1
2 7267
http://www.aspfaq.com/2383

"Robert May" <ra******@dontspamhotmail.com> wrote in message
news:ez**************@TK2MSFTNGP11.phx.gbl...
Using SaFileUp to upload a file through HTTPS. The same installation of
FileUp only errors in this application. The file is then parsed in real
time in a VB6 dll. The Response Object is obtained through COM+ and
messages are written directly from VB6 to the browser.

Error occurs when a file is uploaded that is about 1 MB in size (9500
records or so), and occurs when we call the SaFileUp.IsEmpty method, which
SaFileup says is the first time that ASP Request.Binary stuff happens.
Smaller file sizes work just fine.

Does anybody know why??

Here's the code:

Dim lRet As Long
Dim oFileUp As Object
'Dim sTempDirectory As String
Dim sFileData As String
Dim rsTemp As ADODB.Recordset
Dim sPos As String
Dim sFileName As String
Dim sFilePath As String
Dim lFhdl As Long
Dim byArray() As Byte

Const PROC_NAME As String = "RetrieveFile"

On Error GoTo ErrorHandler

m_oErr.AddProcedureName PROC_NAME

'sTempDirectory = GetTemporaryDirectory
'sFileName = GetTemporaryFileName(sTempDirectory)
sPos = "Creating SAFileup"
m_oStatus.OutputStatusMessage seReceivingFile, GetErrorMessage(m_oDB,
seReceivingFile)
Set oFileUp = m_oCTX.CreateInstance("SoftArtisans.FileUp")

sPos = "Getting ProgressID"
oFileUp.progressID = m_lProgressID

sPos = "Checking empty fileup"
If oFileUp.IsEmpty Then <--Error Occurs Here
...

Jul 19 '05 #2
Hmm--we've uploaded files larger than 54 MB before using SaFileUp. This is
just a 1 MB file . . . Also, this only seems to happen on our production
servers, it works fine in test and development.

Robert
"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message
news:uH**************@TK2MSFTNGP12.phx.gbl...
http://www.aspfaq.com/2383

"Robert May" <ra******@dontspamhotmail.com> wrote in message
news:ez**************@TK2MSFTNGP11.phx.gbl...
Using SaFileUp to upload a file through HTTPS. The same installation of
FileUp only errors in this application. The file is then parsed in real
time in a VB6 dll. The Response Object is obtained through COM+ and
messages are written directly from VB6 to the browser.

Error occurs when a file is uploaded that is about 1 MB in size (9500
records or so), and occurs when we call the SaFileUp.IsEmpty method, which SaFileup says is the first time that ASP Request.Binary stuff happens.
Smaller file sizes work just fine.

Does anybody know why??

Here's the code:

Dim lRet As Long
Dim oFileUp As Object
'Dim sTempDirectory As String
Dim sFileData As String
Dim rsTemp As ADODB.Recordset
Dim sPos As String
Dim sFileName As String
Dim sFilePath As String
Dim lFhdl As Long
Dim byArray() As Byte

Const PROC_NAME As String = "RetrieveFile"

On Error GoTo ErrorHandler

m_oErr.AddProcedureName PROC_NAME

'sTempDirectory = GetTemporaryDirectory
'sFileName = GetTemporaryFileName(sTempDirectory)
sPos = "Creating SAFileup"
m_oStatus.OutputStatusMessage seReceivingFile, GetErrorMessage(m_oDB, seReceivingFile)
Set oFileUp = m_oCTX.CreateInstance("SoftArtisans.FileUp")

sPos = "Getting ProgressID"
oFileUp.progressID = m_lProgressID

sPos = "Checking empty fileup"
If oFileUp.IsEmpty Then <--Error Occurs Here
...


Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Rohan Hattangdi | last post by:
I get the following error message from an ASP page that we have: METHOD: POST ERROR DESCRIPTION: 007~ASP 0100~Out of memory~Unable to allocate required memory. ERROR NUMBER: -2147024882 ERROR...
11
by: Jon Glazer | last post by:
Has anyone seen an error like this before? If so, what could it be? I don't use any stored procedures. (SQL2000 and ASP). 007~ASP 0101~Unexpected error~The function returned |.
4
by: Joe | last post by:
Hello, I have created a login page using dotnet. I am using requiredFieldValidator and noticed that the code works fine in IE but not in Netscape, Opera, Mozilla, Firefox, etc. For example...
4
by: Joe | last post by:
Hi, I have MS Access database with a small table that has four columns ID (Primary Key), page, userid and password. The page column holds the name of the page which has the login form. The...
0
by: Riksta | last post by:
Dear all, I have an asp routine based on www.freeaspupload.net My server is server 2003 running iis 6.0 I have increased the metabase AspMaxRequestEntityAllowed to 2GB (2000000000 bytes) and...
5
by: fennychieck | last post by:
dear all, i've a problem here. everytime a user click on "approve" button, they'll always get database error. and when i check the error log, there are several fields that have missing...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.