ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

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 Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old August 24th, 2003, 08:14 AM
johnnyc313 johnnyc313 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 4 johnnyc313 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Testing ASP locally

Hi,

I'm quite new to ASP and I'm trying to test my sites locally.

When I type in the url...URL

I get an error saying I'm unauthorized to view the page?

can anyone help?

Thank's in advance,

Johnny C

Reply With Quote
  #2  
Old August 24th, 2003, 09:27 AM
unatratnag unatratnag is offline
Average Intelligence
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2003
Location: Ohio/Chicago
Posts: 678 unatratnag User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 22 sec
Reputation Power: 6
Send a message via AIM to unatratnag
Do you have anonymous browsing turned off? Does the iusr have access to this site? This page? Check the event viewer and IIS access logs, what's it spitting out? Is it only when you do local host and not the IP or Domain Name?

Reply With Quote
  #3  
Old August 24th, 2003, 09:44 AM
johnnyc313 johnnyc313 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 4 johnnyc313 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I've messed about with it a bit and now I get a listing of the folders contents when I type in the URL if I click on the index.asp I get this error:

Technical Information (for support personnel)

Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
/pcmeng/index.asp, line 13


Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705)

Page:
GET /pcmeng/index.asp

Reply With Quote
  #4  
Old August 24th, 2003, 09:53 AM
unatratnag unatratnag is offline
Average Intelligence
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2003
Location: Ohio/Chicago
Posts: 678 unatratnag User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 22 sec
Reputation Power: 6
Send a message via AIM to unatratnag
That means you've screwed up in your ODBC configuration

Index.asp is making a call to a DB and the ODBC config is incorrect, how did you set up the ODBC?

Reply With Quote
  #5  
Old August 24th, 2003, 09:58 AM
johnnyc313 johnnyc313 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 4 johnnyc313 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I used this tutorial: URL to set it up.

Any advice you can give me is greatly appreciated.

Johnny C

Reply With Quote
  #6  
Old August 24th, 2003, 10:03 AM
unatratnag unatratnag is offline
Average Intelligence
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2003
Location: Ohio/Chicago
Posts: 678 unatratnag User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 22 sec
Reputation Power: 6
Send a message via AIM to unatratnag
Did you create the data source name in the User DSN tab or system DSN tab? I had the same problem because I had created in the User DSN tab. When I created it in the System DSN tab it resolved the problem. That's because in the User DSN tab, you're only giving access to the user who created it. ASP's and CGI's run as IUSR_MACHINE, and the System DSN tab gives access to all users of the machine.

Other than that, I'll I can recommend is brute force it with other drivers and see if you just didn't select the right one... You can also create a connection string and figure it out that way.
http://forums.devshed.com/t75505/s.html

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > Testing ASP locally


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