|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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?
|
|
#3
|
|||
|
|||
|
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 |
|
#4
|
|||
|
|||
|
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? |
|
#5
|
|||
|
|||
|
I used this tutorial: URL to set it up.
Any advice you can give me is greatly appreciated. Johnny C |
|
#6
|
|||
|
|||
|
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 |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Testing ASP locally |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|