login about faq

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.
  • uploadfile.asp, line 717: Set oUp = Server.CreateObject("Chilkat.UploadRcv")
  • ChilkatUpload.dll: v9.4.1 7/10/2013
  • ChilkatUpload.dll: v9.4.1.0 sp1 8/15/2013

asked Sep 30 '14 at 19:52

emartinson's gravatar image

emartinson
148162030

edited Sep 30 '14 at 20:02


link

answered Oct 13 '14 at 09:37

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

Thanks chilkat

(Oct 13 '14 at 15:51) emartinson

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

link

answered Sep 30 '14 at 22:19

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

PS> The above boilerplate code has existed for almost a decade...

(Sep 30 '14 at 22:19) chilkat ♦♦

I followed the comments on the link and reinstalled IIS. That did not help. I followed another comment that said the error was due to session state. Indeed the commenter is correct. In IIS config, I enabled Session State and I was able to create the object. Most of the boiler plate code above has to do with the session. I know that you do not want to create a new version for this old component but can I ask you to make an exception?

(Oct 01 '14 at 16:39) emartinson

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.

link

answered Oct 02 '14 at 19:28

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

Awesome, thanks!

(Oct 03 '14 at 18:29) emartinson

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

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

link

answered Oct 10 '14 at 10:40

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

Thanks so much! I also need to the 32bit version, sorry. I have to run the code on both 32bit and 64bit servers until the migration is complete.

(Oct 10 '14 at 13:05) emartinson
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×96
×7

Asked: Sep 30 '14 at 19:52

Seen: 1,409 times

Last updated: Oct 27 '14 at 09:58

powered by OSQA