Microsoft IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsSystem AdministrationMicrosoft IIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old May 9th, 2006, 02:21 PM
MADLaker MADLaker is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2006
Posts: 4 MADLaker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 11 m 26 sec
Reputation Power: 0
IIS 5.0 to 6.0 migration / ASP DB Errors

Hello,

I currently have an ASP 2.0 Site running on Windows 2000 with IIS 5.0.

I need to transfer this site to a Windows Server 2003 box running IIS 6.0.

Here's what I've tried so far.

I copied the physical directory of the site on the IIS 5.0 box and transfered the directory to the same physical path on the IIS 6.0 box. From the IIS 6.0 box I then published a new virtual directory using the same name as the old one. I then restarted IIS and everything worked great accept the ASP Pages.

This was the error I got:

Code:
Database Results Error
[Microsoft][ODBC Microsoft Access Driver] '(unknown)' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.
One or more form fields were empty. You should provide default values for all form fields that are used in the query.


After doing a few Google Searches it was suggested that I insure that the IUSR_Servername account have read/write permissions on the following items:

-c:\windows\temp
-the registry key HKEY_LOCAL_MACHINE\SOFTWARE\ODBC
-The directory containing the Access Databases.

None had this permission so I went ahead and assigned them. I then restarted IIS.

I got the same error.

I then decided to have the web site developer re-publish the website to the new sever location like he was publishing a new website.

After doing some it successfully made the ODBC connections and published the site to the new server under the same directory.

Unfortunately I still had the same error.

The only thing I have yet to try it reboot the server because possibly the registry change has yet to take effect.

If anyone has any ideas or maybe the locations of some revealing log files that would be terrific.

Thanks.

Also,

I should mentioned I didn't design this webpage or the databases and I normally don't administrer IIS or ASP servers, so if I forgot to include any critical information regarding my enviroment please let me know.

Reply With Quote
  #2  
Old May 9th, 2006, 05:32 PM
Doug G Doug G is offline
Grumpier Old Moderator
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Sep 2003
Posts: 10,143 Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 23 h 19 m 36 sec
Reputation Power: 181
First, are you sure the db driver you're trying to use exists on the 2003 server? Support for access db's is less on 2003, and I'm not sure if the access odbc drivers exist on 2003.

However, your error message implies the drivers are there but the path to the .mdb isn't recognized. In addition to your other permission settings, did you check that the IUSR_ account has permissions to the folder and .mdb file itself?
__________________
======
Doug G
======
I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain

Reply With Quote
  #3  
Old May 9th, 2006, 05:49 PM
MADLaker MADLaker is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2006
Posts: 4 MADLaker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 11 m 26 sec
Reputation Power: 0
Hi Doug,

Thanks for your reply.

I'm still new to this but here's what I did to check the Access Driver versions. I went under Admin Tools \ ODBC Manager \ Drivers

The 2000 box has Microsoft Access Driver 4.00.6306.00
The 2003 box has Microsoft Access Driver 4.00.6205.00

So it looks like 2003 has an older Access Driver. Do you think it's worth trying to update the 2003 box to the same driver version that 2000 has?

Or do you think I should wait and reboot to give the registry a chance to refresh itself after I applied ISUR_Servername write permissions to the ODBC Registry key?

Also, I made sure that IUSR has write permissions on both the access db folder and the actual dbs contained with in.

Thanks again for any suggestions.

Reply With Quote
  #4  
Old May 9th, 2006, 07:16 PM
Doug G Doug G is offline
Grumpier Old Moderator
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Sep 2003
Posts: 10,143 Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 23 h 19 m 36 sec
Reputation Power: 181
I looked at your error message again. The problem seems to be that you are not giving any path to the database file in your connection string. What is your connection string?

If you're using a DSN make sure you've created an identical DSN for the connection on the new server.

I wouldn't do anything about the drivers versions, I was thinking about major version discrepancies. I doubt the minor build difference is an issue.

Reply With Quote
  #5  
Old May 9th, 2006, 08:01 PM
MADLaker MADLaker is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2006
Posts: 4 MADLaker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 11 m 26 sec
Reputation Power: 0
Thanks for continuing to look at this. I'm sorry but like I said I'm new at this and do not normally design ASP webpages from Frontpage for manage IIS Wev Servers.

Where could I check the connection string path? Is that set in the ASP files themselves? Or is that an IIS setting ?

Also DSN I understand is Data Source Name. However I do not know where you would set this information. Is this DSN location configured in each individual ASP file? Or is there some sort of master ASP Client Config file I should be looking at?

I deeply appreciate the help you've given thus far. The lightbulb in my head is starting to show signs of flicker. We're almost there.

Please let me know if you need me to post an example of the ASP code.

Thanks.

Oh wait!

I just found a file called global.asa.

Allow me to post a sample of what I think is the DSN information it and maybe you could tell me what you think by looking at it?

Code:
<SCRIPT LANGUAGE=VBScript RUNAT=Server>

Sub Application_OnStart
	'==FrontPage Generated - startspan==
	Dim FrontPage_UrlVars(24)
	'--Project Data Connection
		Application("Sample_ConnectionString") = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=URL=fpdb/fpnwind.mdb"
		FrontPage_UrlVars(0) = "Sample_ConnectionString"
		Application("Sample_ConnectionTimeout") = 15
		Application("Sample_CommandTimeout") = 30
		Application("Sample_CursorLocation") = 3
		Application("Sample_RuntimeUserName") = ""
		Application("Sample_RuntimePassword") = ""
	'--Project Data Connection
		Application

Reply With Quote
  #6  
Old May 10th, 2006, 05:08 PM
MADLaker MADLaker is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2006
Posts: 4 MADLaker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 11 m 26 sec
Reputation Power: 0
Hey I actually got this one figured out after searching Google for a few hours. Since you helped me out and kept me working on the problem, the least I can do is post the solution.

So in my last post I posted a DBQ from the Global.asa file. That turned out to be my issue.

To resolve the issue;

For every

Code:
DBQ=URL=fpdb/name_of_database.mdb


I changed it to the local path

Code:
DBQ=C:\inetpub\wwwroot\ccweb\fpdb\name_of_database  .mdb


I then restarted IIS and everything's working like a charm.

Thanks again for all your help!

Reply With Quote
  #7  
Old May 10th, 2006, 06:55 PM
Doug G Doug G is offline
Grumpier Old Moderator
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Sep 2003
Posts: 10,143 Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 23 h 19 m 36 sec
Reputation Power: 181
I'm happy to hear you got it worked out. Thanks for posting your solution.
Comments on this post
MADLaker agrees!

Reply With Quote
Reply

Viewing: ASP Free ForumsSystem AdministrationMicrosoft IIS > IIS 5.0 to 6.0 migration / ASP DB Errors


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT