<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.iis.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:cs="http://blogs.iis.net/"><channel><title>Search results matching tags 'ASP Classic' and 'asp help'</title><link>http://forums.iis.net/search/SearchResults.aspx?o=DateDescending&amp;tag=ASP+Classic,asp+help&amp;orTags=0</link><description>Search results matching tags 'ASP Classic' and 'asp help'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Cannot connect to mysql db 5.1</title><link>http://forums.iis.net/p/1162711/1925060.aspx#1925060</link><pubDate>Tue, 17 Nov 2009 15:40:06 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1925060</guid><dc:creator>Perryvanz</dc:creator><cs:applicationKey>iis7_-_classic_asp-41</cs:applicationKey><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Im using IIS 7.5&amp;nbsp;with Windows server 2008 r2. I want to open my database, so&amp;nbsp;I used the next&amp;nbsp;connectstring for opening the db: &lt;br /&gt;&lt;br /&gt;connect_string = &amp;quot;Driver={MySQL ODBC 5.1 Driver};&amp;nbsp;Server=localhost; UID=username; PWD=pwd; Database=db&amp;quot;&lt;br /&gt;set dbConn = server.createObject(&amp;quot;ADODB.connection&amp;quot;)&lt;br /&gt;dbConn.open(connect_string)&lt;br /&gt;&lt;br /&gt;I&amp;#39;m getting this error....&lt;/p&gt;
&lt;p&gt;Microsoft OLE DB Provider for ODBC Drivers&lt;font size="3" face="Times New Roman"&gt; &lt;/font&gt;&lt;font size="2" face="Arial"&gt;error &amp;#39;80004005&amp;#39;&lt;/font&gt;&lt;font size="3" face="Times New Roman"&gt; &lt;/font&gt;
&lt;p&gt;&lt;font size="2" face="Arial"&gt;[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified&lt;/font&gt; &lt;br /&gt;&lt;br /&gt;What do I have to do to connect to my db?&lt;/p&gt;
&lt;p&gt;Perry&lt;/p&gt;</description></item><item><title>Re: Can smone help me with &amp;quot;CDO.Message.1 error '80040220' &amp;quot; error ?</title><link>http://forums.iis.net/p/1154828/1923409.aspx#1923409</link><pubDate>Wed, 04 Nov 2009 21:12:37 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1923409</guid><dc:creator>debugmm</dc:creator><cs:applicationKey>classic_asp--1</cs:applicationKey><description>&lt;p&gt;&amp;nbsp;Hi,&lt;/p&gt;&lt;p&gt;Try the following code: -&lt;/p&gt;&lt;pre&gt;&amp;lt;!--&lt;br /&gt;METADATA&lt;br /&gt;TYPE=&amp;quot;typelib&amp;quot;&lt;br /&gt;UUID=&amp;quot;CD000000-8B95-11D1-82DB-00C04FB1625D&amp;quot;&lt;br /&gt;NAME=&amp;quot;CDO for Windows 2000 Library&amp;quot;&lt;br /&gt;--&amp;gt;&lt;br /&gt;&amp;lt;%&lt;br /&gt;Set cdoConfig = CreateObject(&amp;quot;CDO.Configuration&amp;quot;)&lt;br /&gt;&amp;nbsp;&lt;br /&gt;With cdoConfig.Fields&lt;br /&gt;.Item(cdoSendUsingMethod) = cdoSendUsingPort&lt;br /&gt;.Item(cdoSMTPServer) = &amp;quot;localhost&amp;quot;&lt;br /&gt;.Update&lt;br /&gt;End With&lt;br /&gt;&amp;nbsp;&lt;br /&gt;Set cdoMessage = CreateObject(&amp;quot;CDO.Message&amp;quot;)&lt;br /&gt;&amp;nbsp;&lt;br /&gt;With cdoMessage&lt;br /&gt;Set .Configuration = cdoConfig&lt;br /&gt;.From = &amp;quot;from@domain.com&amp;quot;&lt;br /&gt;.To = &amp;quot;to@domain.com&amp;quot;&lt;br /&gt;.Subject = &amp;quot;Sample CDO Message&amp;quot;&lt;br /&gt;.TextBody = &amp;quot;This is a test for CDO.message&amp;quot;&lt;br /&gt;.Send&lt;br /&gt;End With&lt;br /&gt;&amp;nbsp;&lt;br /&gt;Set cdoMessage = Nothing&lt;br /&gt;Set cdoConfig = Nothing&lt;br /&gt;%&amp;gt;&lt;/pre&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;http://prabhat.me/2009/11/04/send-e-mail-using-cdo/ &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Blank Page No Errors</title><link>http://forums.iis.net/p/1160954/1917184.aspx#1917184</link><pubDate>Wed, 16 Sep 2009 14:59:19 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1917184</guid><dc:creator>goofy_tyran</dc:creator><cs:applicationKey>iis7_-_classic_asp-41</cs:applicationKey><description>&lt;p&gt;Hi guys,&lt;/p&gt;
&lt;p&gt;I have a website which I&amp;#39;ve brought over to IIS7 from Windows IIS6, which ran great there.&lt;/p&gt;
&lt;p&gt;Now its on IIS7 some of my Classic ASP pages wont run and simply stop dead outputting to the browser just a blank page. The only thing in the blank page source code are the usual &amp;lt;html&amp;gt; tags etc. There are no error codes at all.&lt;/p&gt;
&lt;p&gt;If I break the code (by adding a &amp;#39;end if&amp;#39; in to the code where it sholdnt be) I get the relevant errors.&lt;/p&gt;
&lt;p&gt;This happens to only a handful of pages. The only&amp;nbsp;common thing I can see between the pages is that they use the &amp;#39;Server.CreateObject&amp;#39; call to either create an instance of Jmail or FileSystemObject.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m really stumped with this one and any help would be would be greatfully received.&lt;/p&gt;
&lt;p&gt;Thanks in advance!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>ASP pages bogged down with too much server side code</title><link>http://forums.iis.net/p/1155725/1895540.aspx#1895540</link><pubDate>Tue, 03 Mar 2009 19:29:56 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1895540</guid><dc:creator>shawn.bordeaux</dc:creator><cs:applicationKey>classic_asp--1</cs:applicationKey><description>&lt;p&gt;I have a few web applications that I have created using ASP classic. My problem is that some of the pages require running multple recordsets so the data can be used to run another recordset which stores the data which is ultimatley being accessed. In other words something like this;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&amp;lt;%&lt;/p&gt;
&lt;p&gt;Set Rs = Server.CreateObject(&amp;quot;ADODB.Recordset&amp;quot;)&amp;nbsp;&lt;br /&gt;SQL_Select1 = &amp;quot;SELECT&amp;nbsp;idnumber from users WHERE idnumber IS NOT NULL&amp;quot;&lt;br /&gt;if not rs.eof Then&lt;br /&gt;do while not rs.eof&lt;br /&gt;Set R2 = Server.CreateObject(&amp;quot;ADODB.Recordset&amp;quot;)&lt;br /&gt;&amp;nbsp;&amp;nbsp; SQL_Select2 = &amp;quot;SELECT&amp;nbsp;reques_id from current_user_entries WHERE idnumber=&amp;#39;&amp;amp;Rs(&amp;quot;idnumber&amp;quot;)&amp;quot;&lt;br /&gt;if not rs2.eof Then&lt;br /&gt;do while not rs2.eof&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set Rs3 = Server.CreateObject(&amp;quot;ADODB.Recordset&amp;quot;)&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SQL_Seect3 = &amp;quot;SELECT * from catalog_merchandise WHERE productid=&amp;#39;&amp;amp;Rs2(&amp;quot;requeted_id&amp;quot;) &amp;quot;&lt;br /&gt;if not rs3.eof Then&lt;br /&gt;do while not rs3.eof&lt;br /&gt;&amp;#39; process stuff here including INSERT into table...&lt;br /&gt;rs3.movenext&lt;br /&gt;rs3.loop&lt;br /&gt;&amp;nbsp; End If&lt;br /&gt;rs2.movenext&lt;br /&gt;rs2.loop&lt;br /&gt;&amp;nbsp; End If&lt;br /&gt;rs.movenext&lt;br /&gt;loop&lt;br /&gt;&amp;nbsp; End If&lt;/p&gt;
&lt;p&gt;%&amp;gt;&lt;/p&gt;
&lt;p&gt;Well anyways this is not really my code but just an example. I also run A LOT of IF Statements to check the data and assign appropriate variables. Some of my pages are nearly 1000 lines of asp code doing this.&lt;/p&gt;
&lt;p&gt;On top of that, all the records I am loading I then have to&amp;nbsp;insert them&amp;nbsp;into another table and the load times are extremley long. Any advice or tips of things I can do to speed up the server load time? Can any code likes this be done on client side?&lt;br /&gt;I can upload or copy and paste some of my real code so if anyone here is up to the task of looking it over and giving me some advise on more efficient ways of writing these pages I would greatly appreciate it. Keep in mind I am fairly new at this. I have created quite a few web apps in ASP without any real structured training. Just on things I&amp;#39;ve picked up on the way.&lt;/p&gt;
&lt;p&gt;Thank you in advance!&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Shawn&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Multiple session cookies problem</title><link>http://forums.iis.net/p/1155657/1895227.aspx#1895227</link><pubDate>Fri, 27 Feb 2009 23:13:51 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1895227</guid><dc:creator>neitakk</dc:creator><cs:applicationKey>classic_asp--1</cs:applicationKey><description>Hi. I&amp;#39;m gonna try to explain the problem in short terms:


On a shared Windows server which my host provide me, I&amp;#39;m getting multiple session cookies stored in the browser. This regards all browser types.


&lt;ul class="anf_list"&gt;
&lt;li&gt;A clean ASP file with no code other then &amp;quot;response.write(&amp;quot;Hello&amp;quot;)
&lt;/li&gt;&lt;li&gt;Updating the page in e.g. 5 minutes intervals
&lt;/li&gt;&lt;li&gt;Every new session seems to make a new session cookie with a new ID
&lt;/li&gt;&lt;li&gt;Eventually the cookie storage is full
&lt;/li&gt;&lt;/ul&gt;


Why this is a problem? After the storage get&amp;#39;s filled up, there is impossible to write custom cookies like for a login. This makes big problems for my users who never close the browser.


The only way to get rid of the cookies is by manually deleting them or restarting the browser.


How is it possible to avoid this problem?</description></item><item><title>ASP HTML MAIL Get ! inserted in various places</title><link>http://forums.iis.net/p/1155608/1894904.aspx#1894904</link><pubDate>Thu, 26 Feb 2009 01:25:42 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1894904</guid><dc:creator>tdmhighway</dc:creator><cs:applicationKey>classic_asp--1</cs:applicationKey><description>&lt;p&gt;I have written some ASP code to use HTML as the e-mail body.&amp;nbsp; In the received e-mails I get &amp;quot;!&amp;quot; inserted in various places.&amp;nbsp; This does not occur on the presented ASP page.&amp;nbsp; Anyone have any ideas?&lt;/p&gt;</description></item><item><title>Error only on my PC - ADODB.Stream error '800a0bbc'  Write to file failed.</title><link>http://forums.iis.net/p/1155420/1894090.aspx#1894090</link><pubDate>Thu, 19 Feb 2009 18:59:14 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1894090</guid><dc:creator>shawn.bordeaux</dc:creator><cs:applicationKey>classic_asp--1</cs:applicationKey><description>&lt;p&gt;This is the strangest thing... I have a group of asp files that allow a user to upload a file to our server. I normally process an upload file every other week. Well I went to process the file this morning and I recieved this error code;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;ADODB.Stream error &amp;#39;800a0bbc&amp;#39;&amp;nbsp; Write to file failed.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;At first I thought the folder on the IIS server had it&amp;#39;s write access changed, so i checked. And it is all fine. So then just on a hunch I tried loading files from another PC here at work and sure enough the files uploaded fine with no error. So for somereason the error only happens when I try to upload the file from my PC to the Server.&lt;/p&gt;
&lt;p&gt;Okay so then I went outside of all logic and tried 3 different browsers on my pc, I.E.8 Beta, Firefox and&amp;nbsp;Google Chrome, ALL WITH THE SAME ERROR.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am at a total loss at this point. I am out of creative ideas. I thought maybe my&amp;nbsp;virtual local ISS&amp;nbsp;maybe the issue or my VPN connection to the server I have running&amp;nbsp;however they all worked upto 2 weeks ago. I turned off my VPN and still recieved the same error.&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;will be willing to try anything&amp;nbsp;anyone here can suggest. Thank you!!&lt;/p&gt;
&lt;p&gt;System Details&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Server Details&lt;br /&gt;Windows 2000 Server&lt;br /&gt;SQL Server&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Shawn Bordeaux&amp;nbsp;&lt;/p&gt;
&lt;p&gt;***UPDATE*****&lt;/p&gt;
&lt;p&gt;By the way the file that is causing the error is;&lt;/p&gt;
&lt;p&gt;../includes/functions/clsField.asp&lt;font size="2" face="Arial"&gt;, line 171&lt;/font&gt; &lt;/p&gt;
&lt;p&gt;That line in that file is;&lt;br /&gt;Call lobjStream.SaveToFile(pstrFileName, adSaveCreateOverWrite)&lt;/p&gt;
&lt;p&gt;The clsField.asp page is called from the clsUpload.asp page which is included into my upload_process page. It is accessing that command once it tries to save the binary file to the server and that line in the upload_process.asp page is;&lt;br /&gt;&lt;br /&gt;objUpload(&amp;quot;File1&amp;quot;).SaveAs strPath&lt;/p&gt;
&lt;p&gt;File1 is the name for the file selected from the form input.&amp;nbsp;The strPath variable is defined above that line as;&lt;br /&gt;strPath = Server.MapPath(&amp;quot;../../hours/files&amp;quot;) &amp;amp; &amp;quot;\&amp;quot; &amp;amp; strFileName&lt;/p&gt;
&lt;p&gt;and strFileName is defined by the file name selected from the form. And like I said it works fine on other PC&amp;#39;s....&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>