ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingASP Development

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 June 1st, 2009, 11:18 AM
scharfet scharfet is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2009
Location: Austria
Posts: 2 scharfet User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 11 sec
Reputation Power: 0
Question Newbie-problem: After changig webhoster: -->error '80004005'

Hello!

Part of the website is in asp. We had to change the Host. After uploading the files to the new webspace the asp-part didn't work any more although it worked on the old webserver. I hope y added enouth information to find the error.
The website is (URL address blocked: See forum rules)

THE ERROR: (clicking on: home->dach->referenzen)
on opening asp file "dach_referenzen.asp" apears this:
-------------------------------------------
Code:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

/dach_referenzen.asp, line 15

----------------------------------------


the first part of "dach_referenzen.asp":
---------------------------------
Code:
1 <%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
2 <!--#include file="Connections/uttenthaler.asp" -->
3 <%
4 Dim abf_referenzen__MMColParam
5 abf_referenzen__MMColParam = "Dach"
6 If (Request("MM_EmptyValue") <> "") Then
7 abf_referenzen__MMColParam = Request("MM_EmptyValue")
8 End If
9 %>
10 <%
11 Dim abf_referenzen
12 Dim abf_referenzen_numRows
13
14 Set abf_referenzen = Server.CreateObject("ADODB.Recordset")
15 abf_referenzen.ActiveConnection = MM_uttenthaler_STRING
16 abf_referenzen.Source = "SELECT * FROM tbl_referenzen WHERE Kathegorie 17 = '" + Replace(abf_referenzen__MMColParam, "'", "''") + "'"
18 abf_referenzen.CursorType = 0
19 abf_referenzen.CursorLocation = 2
20 abf_referenzen.LockType = 1
21 abf_referenzen.Open()

---------------------------------


file "Connections/uttenthaler.asp"
---------------------------------
Code:
1 <%
2 ' FileName="Connection_odbc_conn_dsn.htm"
3 ' Type="ADO"
4 ' DesigntimeType="ADO"
5 ' HTTP="false"
6 ' Catalog=""
7 ' Schema=""
8 Dim MM_uttenthaler_STRING
9 MM_uttenthaler_STRING = "dsn=w08244460_uttenthaler;"
10 %>
11

---------------------------------

I would be very geratful for any advice.
Thank you very much.

Hannes

Reply With Quote
  #2  
Old June 1st, 2009, 11:28 AM
sync_or_swim's Avatar
sync_or_swim sync_or_swim is offline
Moderator
Click here for more information.
 
Join Date: Mar 2006
Location: South Wales
Posts: 3,416 sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level) 
Time spent in forums: 2 Months 23 h 57 m 27 sec
Reputation Power: 1800
--> Moved to ASP Forum

Hi, and welcome to the forums. In your code you are referring to a DSN called w08244460_uttenthaler:
Code:
1 <%
2 ' FileName="Connection_odbc_conn_dsn.htm"
3 ' Type="ADO"
4 ' DesigntimeType="ADO"
5 ' HTTP="false"
6 ' Catalog=""
7 ' Schema=""
8 Dim MM_uttenthaler_STRING
9 MM_uttenthaler_STRING = "dsn=w08244460_uttenthaler;"
10 %>
11

It looks as if you do not have a DSN with this name on the new server. I always use a DSN-less connection to combat this, I suppose it is personal preference. Where is the database located and what type of database is it? SQLServer, Oracle, MySQL, Access? You can find the correct connection string at connection strings.com

Reply With Quote
  #3  
Old June 20th, 2009, 05:16 AM
scharfet scharfet is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2009
Location: Austria
Posts: 2 scharfet User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 11 sec
Reputation Power: 0
The database is with Access and located on the same server under /Dbase/uttenthaler81204.mdb. The DB has no passwordprotection.

Thank you for your hint to change the DNS-Connection to a DNS-less connetcion.

On your indicated website I found this: (I aded the proper dbase name and location)

Provider=Microsoft.Jet.OLEDB.4.0;Data Source=/DBASE/uttenthaler81204.mdb;User Id=admin;Password=;

And I wanted to ask where to place this code and which existing code I have to deleate?

For your help I wold be very greateful.

Hannes

Reply With Quote
  #4  
Old June 22nd, 2009, 05:07 AM
sync_or_swim's Avatar
sync_or_swim sync_or_swim is offline
Moderator
Click here for more information.
 
Join Date: Mar 2006
Location: South Wales
Posts: 3,416 sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 12nd Grade (Above 100000 Reputation Level) 
Time spent in forums: 2 Months 23 h 57 m 27 sec
Reputation Power: 1800
The connection string would need to replace your reference to your DSN. I believe that you can omit the password attribute if you are not specifying one, your code would then look like:
Code:
<%
Dim MM_uttenthaler_STRING
MM_uttenthaler_STRING = "PROVIDER=MICROSOFT.JET.OLEDB.4.0;DATA SOURCE=/DBASE/uttenthaler81204.mdb;User Id=admin;"
%>

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingASP Development > Newbie-problem: After changig webhoster: -->error '80004005'


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





 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

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





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