473,402 Members | 2,061 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

Problems running ASP pages after server rebuild

Hello,

Have MS 2003 server with IIS 6.0 installed. ASP.net is also
installed.

Had to re-install the server after initial configuration by someone who left
the company and now I cannot get the ASP pages to load.

The files all existed in a NON-INETPUB folder and accessed a SQL database to
pull information.

I get a 500 error when trying to access http://localhost.

I set the home directory to the default web site to point to my folder
contain my default.asp page, but it does not work.

I get error like this:

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

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

/connections/dbConnect.asp, line 5

Also, don't know why, but I do not get an ASP.net tab in the properties
window???

On another server, that TAB is there and show a path to a web.config file???

Any assistance would be great,

Thanks!

MP

Aug 22 '06 #1
5 1963
Is the application using a DSN that isn't setup as a system DSN perhaps? Do
you have a developer there who can look at the code?

Ray at work

"Mrpush" <Mr****@discussions.microsoft.comwrote in message
news:E7**********************************@microsof t.com...
Hello,

Have MS 2003 server with IIS 6.0 installed. ASP.net is also
installed.

Had to re-install the server after initial configuration by someone who
left
the company and now I cannot get the ASP pages to load.

The files all existed in a NON-INETPUB folder and accessed a SQL database
to
pull information.

I get a 500 error when trying to access http://localhost.

I set the home directory to the default web site to point to my folder
contain my default.asp page, but it does not work.

I get error like this:

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

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

/connections/dbConnect.asp, line 5

Also, don't know why, but I do not get an ASP.net tab in the properties
window???

On another server, that TAB is there and show a path to a web.config
file???

Any assistance would be great,

Thanks!

MP

Aug 23 '06 #2
Ray,

There is no programmer here anymore, but I am able to review code, if I know
where to look. Where is the DSN info or code held? How to review or edit it?

I'm guessing there is just path or login info that is no longer correct and
needs tweaked.

I'll have a go if I know where to look.

Thanks,

MP

"Ray Costanzo [MVP]" wrote:
Is the application using a DSN that isn't setup as a system DSN perhaps? Do
you have a developer there who can look at the code?

Ray at work

"Mrpush" <Mr****@discussions.microsoft.comwrote in message
news:E7**********************************@microsof t.com...
Hello,

Have MS 2003 server with IIS 6.0 installed. ASP.net is also
installed.

Had to re-install the server after initial configuration by someone who
left
the company and now I cannot get the ASP pages to load.

The files all existed in a NON-INETPUB folder and accessed a SQL database
to
pull information.

I get a 500 error when trying to access http://localhost.

I set the home directory to the default web site to point to my folder
contain my default.asp page, but it does not work.

I get error like this:

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

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

/connections/dbConnect.asp, line 5

Also, don't know why, but I do not get an ASP.net tab in the properties
window???

On another server, that TAB is there and show a path to a web.config
file???

Any assistance would be great,

Thanks!

MP


Aug 23 '06 #3
If the code is using a DSN to connect to the database server, you'll see a
line that looks something like this:

"DSN=myDsn;Uid=username;Pwd=;" (http://www.connectionstrings.com/)

There needs to be a corresponding entry in the ODBC Administrator
(%windir%\system32\odbccp32.cpl) as a SYSTEM DSN.

Your best bet may be to have a programmer if you have custom programming in
your company.

Ray at work

"Mrpush" <Mr****@discussions.microsoft.comwrote in message
news:25**********************************@microsof t.com...
Ray,

There is no programmer here anymore, but I am able to review code, if I
know
where to look. Where is the DSN info or code held? How to review or edit
it?

I'm guessing there is just path or login info that is no longer correct
and
needs tweaked.

I'll have a go if I know where to look.

Thanks,

MP

"Ray Costanzo [MVP]" wrote:
>Is the application using a DSN that isn't setup as a system DSN perhaps?
Do
you have a developer there who can look at the code?

Ray at work
Aug 23 '06 #4
Ray,

In IIS I have created a website called "Inventory" the set the HOME
DIRECTORY Path to my Inventory folder on my C: drive that contain the
DEFAULT.ASP and other pages, graphics, etc that worked fine prior to
re-building this server.

I then created a VIRTUAL DIRECTORY named "INVENTORY" under this web site and
set its LOCAL PATH to the same folder as above.

Next, I just setup the ODBC DSN. I set one USER and one SYSTEM DSN that
point to my SQL INVENTORY database that is alive and running on my SQL box.
Test run successfully. I used NT AUTHENTICATION in both DSN's, and set on
to (local) and one to the server name (ZSQL).

I gave full permissions to EVERYONE for all folders and files involved.

I get 500 errors when trying to access http://localhost

I can acccess http://loclhost/default.html when I stick a dumb default.html
in the directory.

I get HTTP 500 when I try to access http://loclhost/default.asp

Not sure why the ASP page will not work.

Begining of Default.asp looks like this:

<%@ language="vbscript" %>
<!-- #include virtual="connections/invdb.asp"-->
<%
dim ddrs, ddUs, ddKey, prKey, ddmenu, osMenu, stMenu, op
Set ddrs = CreateObject ("ADODB.Recordset")
ddSQL = "SELECT distinct Location FROM VwNetEquip "
ddrs.Open ddSQL, Conn

Set ddUs = CreateObject ("ADODB.Recordset")
uSSQL = "SELECT distinct UserName FROM Vwhardware "
ddUs.Open UsSQL, Conn

Begining of " connections/invdb.asp"look lik this:

<%
DIM Conn
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.ConnectionString = "DSN=inventory"
Conn.Open
%>
Any ideas where I'm goin wrong?

Thanks much,

MP



"Ray Costanzo [MVP]" wrote:
Is the application using a DSN that isn't setup as a system DSN perhaps? Do
you have a developer there who can look at the code?

Ray at work

"Mrpush" <Mr****@discussions.microsoft.comwrote in message
news:E7**********************************@microsof t.com...
Hello,

Have MS 2003 server with IIS 6.0 installed. ASP.net is also
installed.

Had to re-install the server after initial configuration by someone who
left
the company and now I cannot get the ASP pages to load.

The files all existed in a NON-INETPUB folder and accessed a SQL database
to
pull information.

I get a 500 error when trying to access http://localhost.

I set the home directory to the default web site to point to my folder
contain my default.asp page, but it does not work.

I get error like this:

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

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

/connections/dbConnect.asp, line 5

Also, don't know why, but I do not get an ASP.net tab in the properties
window???

On another server, that TAB is there and show a path to a web.config
file???

Any assistance would be great,

Thanks!

MP


Aug 23 '06 #5
Ray,

I get this:

Microsoft OLE DB Provider for ODBC Drivers error '80040e4d'

[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user
'ZSQL\IUSR_ZSQL'.

/connections/dbConnect.asp, line 5
when I try to access the asp page via
http://servername/foldername/default.asp in my browser.

I do not have USER NAME & PASSWORD lines in my code for DSN entries.

Is there some way to grant all user access and skip adding this info in the
code of my ASP pages so I can see it it works?

Thanks much,

MP
"Ray Costanzo [MVP]" wrote:
If the code is using a DSN to connect to the database server, you'll see a
line that looks something like this:

"DSN=myDsn;Uid=username;Pwd=;" (http://www.connectionstrings.com/)

There needs to be a corresponding entry in the ODBC Administrator
(%windir%\system32\odbccp32.cpl) as a SYSTEM DSN.

Your best bet may be to have a programmer if you have custom programming in
your company.

Ray at work

"Mrpush" <Mr****@discussions.microsoft.comwrote in message
news:25**********************************@microsof t.com...
Ray,

There is no programmer here anymore, but I am able to review code, if I
know
where to look. Where is the DSN info or code held? How to review or edit
it?

I'm guessing there is just path or login info that is no longer correct
and
needs tweaked.

I'll have a go if I know where to look.

Thanks,

MP

"Ray Costanzo [MVP]" wrote:
Is the application using a DSN that isn't setup as a system DSN perhaps?
Do
you have a developer there who can look at the code?

Ray at work

Aug 23 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Matt | last post by:
Hello I am trying to rebuild indexes on our DB, but I am running into an error I am not able to solve. Server: Msg 1105, Level 17, State 2, Line 1 Could not allocate space for object 'ft' in...
6
by: George McLean | last post by:
Hello, I am trying to isolate some performance issues. The database is DB2 v8.1 running on a Win2000 server with 4 processors and 1gb of RAM. The application is a GIS application that uses...
3
by: Rhino | last post by:
I've spent the last couple of hours trying to figure out how to debug a Java stored procedure and am just going in circles. The last straw came when I got "Cannot open input stream for default"...
3
by: Scott | last post by:
Hello, we are having problems displaying non-aspx files (images, style sheets) since we have upgraded to the 1.1 framework when using a cookieless session (sessionID in the url). Check out...
0
by: ZMan | last post by:
Scenario: This is about debugging server side scripts that make calls to middle-tier business DLLs. The server side scripts are legacy ASP 3.0 pages, and the DLLs are managed DLLs...
16
by: JCauble | last post by:
We have a large Asp.net application that is currently crashing our production servers. What we are seeing is the aspnet_wp eat up a bunch of memory and then stop unexpectedly. Does not recycle. ...
2
by: Suzanne | last post by:
Hi all, I'm reposting this message as I'm experiencing this problem more and more frequently : I really hope someone out there can help me as I've been tearing my hair out on this one for a...
8
by: Spam Trap | last post by:
I am getting strange resizing problems when using an inherited form. Controls are moving themselves seemingly randomly, but reproducibly. "frmBase" is my base class (a windows form), and...
16
by: pamelafluente | last post by:
I am still working with no success on that client/server problem. I need your help. I will submit simplified versions of my problem so we can see clearly what is going on. My model: A client...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.