Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Quick test for ActiveX?

Reply
Thread Tools

Quick test for ActiveX?

 
 
Neil Gould
Guest
Posts: n/a
 
      09-19-2009
Bob Barrows wrote:
> Neil Gould wrote:
>>>> Here is another repro using clsupload. Exactly what do I have to
>>>> disable in my browser to make this stop working?
>>>>
>>>> <%@ Language=VBScript %>
>>>> <!--#INCLUDE FILE="clsupload.asp"-->
>>>>

>> In comparing this variant with the one currently in use (that creates
>> a BLOB object), one functional difference aside from the ActiveX
>> issue is that the ASP processing code in this one doesn't work if
>> separated from the form. For example, having a form action =
>> "someASPfile" that uses the above ASP code and includes clsupload.asp
>> results in the process failing due to the "object" being closed.
>>

> This does not sound good either. I have several pages working that
> use this approach (a file-processing page that handles requests from
> several form pages). Could you show me exactly what I have to do in
> this ASP code to reproduce your symptoms? Here it is again (I'm
> leaving out the form because it should not be relevant):
>
> <%@ Language=VBScript %>
> <!--#INCLUDE FILE="clsupload.asp"-->
> <%
> set o = new clsUpload
> if o.Exists("cmdSubmit") then
>
> 'get client file name without path
> sFileSplit = split(o.FileNameOf("txtFile"), "\")
> sFile = sFileSplit(Ubound(sFileSplit))
>
> o.FileInputName = "txtFile"
> o.FileFullPath = Server.MapPath(".") & "\" & sFile
>
> o.save
>
> if o.Error = "" then
> response.write "Success. File save Thank You for the file."
> else
> response.write "Failed due to the following error: " & o.Error
> end if
>
> end if
> set o = nothing
> %>
>

All that was necessary was to use the above code in a separate ASP file
called by the form.

If it works for you, perhaps the problem lies on the ISP's side of things.
I'm still sticking with using IIS 6, since there are so many odd reports of
issues regarding classic ASP and IIS 7.

--
Neil


 
Reply With Quote
 
 
 
 
Bob Barrows
Guest
Posts: n/a
 
      09-20-2009
Neil Gould wrote:
> Bob Barrows wrote:
>> Neil Gould wrote:
>>>>> Here is another repro using clsupload. Exactly what do I have to
>>>>> disable in my browser to make this stop working?
>>>>>
>>>>> <%@ Language=VBScript %>
>>>>> <!--#INCLUDE FILE="clsupload.asp"-->
>>>>>
>>> In comparing this variant with the one currently in use (that
>>> creates
>>> a BLOB object), one functional difference aside from the ActiveX
>>> issue is that the ASP processing code in this one doesn't work if
>>> separated from the form. For example, having a form action =
>>> "someASPfile" that uses the above ASP code and includes
>>> clsupload.asp results in the process failing due to the "object"
>>> being closed.
>>>

>> This does not sound good either. I have several pages working that
>> use this approach (a file-processing page that handles requests from
>> several form pages). Could you show me exactly what I have to do in
>> this ASP code to reproduce your symptoms? Here it is again (I'm
>> leaving out the form because it should not be relevant):
>>
>> <%@ Language=VBScript %>
>> <!--#INCLUDE FILE="clsupload.asp"-->
>> <%
>> set o = new clsUpload
>> if o.Exists("cmdSubmit") then
>>
>> 'get client file name without path
>> sFileSplit = split(o.FileNameOf("txtFile"), "\")
>> sFile = sFileSplit(Ubound(sFileSplit))
>>
>> o.FileInputName = "txtFile"
>> o.FileFullPath = Server.MapPath(".") & "\" & sFile
>>
>> o.save
>>
>> if o.Error = "" then
>> response.write "Success. File save Thank You for the file."
>> else
>> response.write "Failed due to the following error: " & o.Error
>> end if
>>
>> end if
>> set o = nothing
>> %>
>>

> All that was necessary was to use the above code in a separate ASP
> file called by the form.
>
> If it works for you, perhaps the problem lies on the ISP's side of
> things. I'm still sticking with using IIS 6, since there are so many
> odd reports of issues regarding classic ASP and IIS 7


As expected, separating the html form from the asp processing page had no
effect, so there is something else going on. Perhaps you have a parent-paths
issue? Is your html form in a separate folder from the asp page?

--
Microsoft MVP - ASP/ASP.NET - 2004-2007
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


 
Reply With Quote
 
 
 
 
Neil Gould
Guest
Posts: n/a
 
      09-20-2009
Bob Barrows wrote:
> Neil Gould wrote:
>> Bob Barrows wrote:
>>> Neil Gould wrote:
>>>>>> Here is another repro using clsupload. Exactly what do I have to
>>>>>> disable in my browser to make this stop working?
>>>>>>
>>>>>> <%@ Language=VBScript %>
>>>>>> <!--#INCLUDE FILE="clsupload.asp"-->
>>>>>>
>>>> In comparing this variant with the one currently in use (that
>>>> creates
>>>> a BLOB object), one functional difference aside from the ActiveX
>>>> issue is that the ASP processing code in this one doesn't work if
>>>> separated from the form. For example, having a form action =
>>>> "someASPfile" that uses the above ASP code and includes
>>>> clsupload.asp results in the process failing due to the "object"
>>>> being closed.
>>>>
>>> This does not sound good either. I have several pages working that
>>> use this approach (a file-processing page that handles requests from
>>> several form pages). Could you show me exactly what I have to do in
>>> this ASP code to reproduce your symptoms? Here it is again (I'm
>>> leaving out the form because it should not be relevant):
>>>
>>> <%@ Language=VBScript %>
>>> <!--#INCLUDE FILE="clsupload.asp"-->
>>> <%
>>> set o = new clsUpload
>>> if o.Exists("cmdSubmit") then
>>>
>>> 'get client file name without path
>>> sFileSplit = split(o.FileNameOf("txtFile"), "\")
>>> sFile = sFileSplit(Ubound(sFileSplit))
>>>
>>> o.FileInputName = "txtFile"
>>> o.FileFullPath = Server.MapPath(".") & "\" & sFile
>>>
>>> o.save
>>>
>>> if o.Error = "" then
>>> response.write "Success. File save Thank You for the file."
>>> else
>>> response.write "Failed due to the following error: " & o.Error
>>> end if
>>>
>>> end if
>>> set o = nothing
>>> %>
>>>

>> All that was necessary was to use the above code in a separate ASP
>> file called by the form.
>>
>> If it works for you, perhaps the problem lies on the ISP's side of
>> things. I'm still sticking with using IIS 6, since there are so many
>> odd reports of issues regarding classic ASP and IIS 7

>
> As expected, separating the html form from the asp processing page
> had no effect, so there is something else going on. Perhaps you have
> a parent-paths issue? Is your html form in a separate folder from the
> asp page?
>

Both HTML and ASP files were in the same directory, and I tried a number of
variants with the same result. The _only_ thing that worked on the ISP is
having the ASP code as part of the HTML form, and that makes no sense to me,
either, since no other functions are dependent on that arrangement. I'm not
even sure what the "object" was, other than the HTML form itself.

At least I have a non-ActiveX, browser-independent set of replacement files
running until this quirk can be sorted out, and it is encouraging to know
that it works somewhere in the world under some configuration or other.

Thanks again for your help.

--
Best,

Neil






 
Reply With Quote
 
Neil Gould
Guest
Posts: n/a
 
      09-20-2009
Neil Gould wrote:
> Bob Barrows wrote:
>> Neil Gould wrote:
>>> Bob Barrows wrote:
>>>> Neil Gould wrote:
>>>>>>> Here is another repro using clsupload. Exactly what do I have to
>>>>>>> disable in my browser to make this stop working?
>>>>>>>
>>>>>>> <%@ Language=VBScript %>
>>>>>>> <!--#INCLUDE FILE="clsupload.asp"-->
>>>>>>>
>>>>> In comparing this variant with the one currently in use (that
>>>>> creates
>>>>> a BLOB object), one functional difference aside from the ActiveX
>>>>> issue is that the ASP processing code in this one doesn't work if
>>>>> separated from the form. For example, having a form action =
>>>>> "someASPfile" that uses the above ASP code and includes
>>>>> clsupload.asp results in the process failing due to the "object"
>>>>> being closed.
>>>>>
>>>> This does not sound good either. I have several pages working that
>>>> use this approach (a file-processing page that handles requests
>>>> from several form pages). Could you show me exactly what I have to
>>>> do in this ASP code to reproduce your symptoms? Here it is again
>>>> (I'm leaving out the form because it should not be relevant):
>>>>
>>>> <%@ Language=VBScript %>
>>>> <!--#INCLUDE FILE="clsupload.asp"-->
>>>> <%
>>>> set o = new clsUpload
>>>> if o.Exists("cmdSubmit") then
>>>>
>>>> 'get client file name without path
>>>> sFileSplit = split(o.FileNameOf("txtFile"), "\")
>>>> sFile = sFileSplit(Ubound(sFileSplit))
>>>>
>>>> o.FileInputName = "txtFile"
>>>> o.FileFullPath = Server.MapPath(".") & "\" & sFile
>>>>
>>>> o.save
>>>>
>>>> if o.Error = "" then
>>>> response.write "Success. File save Thank You for the file."
>>>> else
>>>> response.write "Failed due to the following error: " & o.Error
>>>> end if
>>>>
>>>> end if
>>>> set o = nothing
>>>> %>
>>>>
>>> All that was necessary was to use the above code in a separate ASP
>>> file called by the form.
>>>
>>> If it works for you, perhaps the problem lies on the ISP's side of
>>> things. I'm still sticking with using IIS 6, since there are so
>>> many odd reports of issues regarding classic ASP and IIS 7

>>
>> As expected, separating the html form from the asp processing page
>> had no effect, so there is something else going on. Perhaps you have
>> a parent-paths issue? Is your html form in a separate folder from the
>> asp page?
>>


Bingo!

Thanks to your encouragement, I went back and tried another approach to
separating the HTML form from the ASP page, and managed to get it working.
At this point, I'm not sure what I was doing wrong before to get the error.
The good news is that I don't have to do much more than extract the code
from the page and "genericize" it a bit.

Thanks again, Bob!

Neil



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding quick-release to a non-quick-release tripod head ste7esmith@hotmail.com Digital Photography 4 11-20-2006 03:19 PM
Quick Question Quick Answer JKop C++ 11 05-24-2004 09:46 PM
Quick Restore for a Compaq not so quick! Croos Bustamunky Computer Support 2 05-15-2004 04:17 AM
PanasonicBQ390 "quick" charger - How quick? Ol' Bab Digital Photography 1 01-17-2004 06:54 AM
test test test test test test test Computer Support 2 07-02-2003 06:02 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57