Request object problem?

  • Thread starter Thread starter agnes
  • Start date Start date
A

agnes

Hi Everyone,

This is my problem:
I've developed a reporting system. Some of the code is in
ASP and some in Dlls. It works.
Since I wanted to convert my ASP code to ASP.NET I've
installed Visual Studio .NET Enterprise Developer, and
the Microsoft .NET Framework version 1.1 offered by the
Windows Updates.
I was under impression that my Visual Studio 6 environment
as well as execution of my existing application will not
be affected.
Now I am trying to run my application(ASP, dlls) and the
strangest thing happens - my dll crashes.
It chokes on the "request.form" - in dll I'm using a
request object to get the value from the field on the form.
This is how I initalize my request object

Dim req As Request
Dim cnt As ObjectContext

Set cnt = GetObjectContext()
Set req = cnt("Request")

p = req.form("TextBoxValue") & ""

The dll does not produce any specific error. It just
crashes. When it comes back to my ASP code the ASP throws
the following error:
"Error Number: 507 Description: An exception occurred"

Response object, on the other hand, works fine. I
response.write from that dll all the time. Only request
chokes.
Also, this version works on all other computers and it
used to work on mine.
I've been going nuts surfing the web for an answer and
tried many things but did not resolve this.
I appreciate any help.

Thanks
Agnes
 
Are you still calling this .dll from a "Classic ASP" page (.asp) or are you
calling it from an ASP.NET page (.aspx)?

If you are calling it from an ASP.NET page, I could see the problem being
caused by the code that is trying to create an instance of the Request
object..

On a separate note, what you are doing in your .dll is most appropriate to
be in the page's code and not a .dll as it is dealing with the retrieval of
data from a front-end page.
 
Back
Top