Archived Forum Post

Index of archived forum posts

Question:

Error in UploadRvc

Oct 27 '14 at 09:58

Hello,

I am trying to create an upload object and an internal error is be thrown. Please advise.

Thanks,

Erik

Server object error 'ASP 0193 : 80020009'
OnStartPage Failed
/html/engines/class/uploadfile.asp, line 717

An error occurred in the OnStartPage method of an external object.

Accepted Answer

Here's the 32-bit build:

http://www.chilkatsoft.com/download/preRelease/UploadRcv_win32.zip


Answer

I've never seen this before. I suspect it's caused by something external, and I'd have no idea what. I would Google "OnStartPage" in combination with the error message ("Server object error ASP 0193 : 80020009".

The Chilkat.UploadRcv is frozen and will never change from this point onward. The OnStartPage is boilerplate code (I think generated by VC++) and looks like this:

STDMETHODIMP CUploadRcv::OnStartPage (IUnknown* pUnk)  
{
    if(!pUnk)
        return E_POINTER;

CComPtr<iscriptingcontext> spContext;
    HRESULT hr;

// Get the IScriptingContext Interface
    hr = pUnk->QueryInterface(IID_IScriptingContext, (void **)&spContext);
    if(FAILED(hr))
        return hr;

// Get Request Object Pointer
    hr = spContext->get_Request(&m_piRequest);
    if(FAILED(hr))
    {
        spContext.Release();
        return hr;
    }

// Get Response Object Pointer
    hr = spContext->get_Response(&m_piResponse);
    if(FAILED(hr))
    {
        m_piRequest.Release();
        return hr;
    }

// Get Server Object Pointer
    hr = spContext->get_Server(&m_piServer);
    if(FAILED(hr))
    {
        m_piRequest.Release();
        m_piResponse.Release();
        return hr;
    }

// Get Session Object Pointer
    hr = spContext->get_Session(&m_piSession);
    if(FAILED(hr))
    {
        m_piRequest.Release();
        m_piResponse.Release();
        m_piServer.Release();
        return hr;
    }

// Get Application Object Pointer
    hr = spContext->get_Application(&m_piApplication);
    if(FAILED(hr))
    {
        m_piRequest.Release();
        m_piResponse.Release();
        m_piServer.Release();
        m_piSession.Release();
        return hr;
    }

m_bOnStartPageCalled = TRUE;

return S_OK;
}

Here's one Google result that looks possibly related: http://tridion.stackexchange.com/questions/1272/dynamic-linking-on-classic-asp-pages-not-working


Answer

Erik, I'll make an exception for you.. :) Chilkat is in the midst of the v9.5.0.44 release. I'll drop a note here as soon as I update the UploadRcv object, and will provide a download link.


Answer

Assuming you need a 64-bit DLL, try this new build:

http://www.chilkatsoft.com/download/preRelease/UploadRcv_x64.zip