Welcome to HostingForumz.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

Windows Server 2003 ASP Database Connection Problem

 
   Web Hosting Problem Solving Community! (Home) -> IIS RSS
Related Topics:
w3wp.exe Problem memory growing: asp.net 1.1 on Windows Se.. - Hello Everyone, I have a problem of this type: The iis pool process w3wp.exe on running a Asp.net 1.1 steadily increases memory until come over 1G (bringing the process to a situation of crash). 1) The asp.net 1.1 ran fine..

401.2 Denied by Server Configuration Errors w/ Windows 200.. - I have a 2003 ASP.NET intranet set to Windows in my In IIS (Windows 2003 Server) i've set only Security. My clients are using IE7. I get almost the same number of 401.2 error and i do status code 200..

ProxyPassReverse IIS 6.0 windows server 2003 How? - Hi Guys I am a newbi to IIS. Our customer is using IIS 6.0 on Windows server 2003 machine as the front end . However part of the java scripts needed to be by the clients are from different site. This may initiate on the client side..

Database Connection Problem? - Have a web (database front end) running on a member 2000 server. The backend to the database is on the domain server. Both same network. When accessing the I get the page we want, you then need to logon and give the password by..

.asp Pages in IIS6 windows 2003 server - I moved my companies Intranet from an old windows 2000 pro machine to a windows 2003 server. All pages display properly but not the one .asp page. the server is not a domain but is a member of the domain. I have .net loaded and also active..
Author Message
user3315

External


Since: Dec 14, 2004
Posts: 2



(Msg. 1) Posted: Thu Feb 09, 2006 6:55 am
Post subject: Windows Server 2003 ASP Database Connection Problem
Archived from groups: microsoft>public>inetserver>asp>general, others (more info?)

I am trying to set up an ASP site on a Windows 2003 server and am having
problems connecting to the database.

To isolate the problem I created a simple ASP test page which simply created
an ADO connection object, connected to the database and returned some
results.

When I ran the code as a VBS file it worked fine, but when I run it as an
ASP page (obviously with slight adjustments such as replacing MsgBox with
Response.Write etc) it just returns a "Page cannot be displayed" error.

Using SQL Server Profiler reveals that while the VBS file does connect to
the database, the ASP page does not.

The other strange/annoying thing is that I cannot get an error other than an
Error 500 "Page cannot be displayed" error when something goes wrong.

I would guess that the user security for the IIS user is somehow set to not
allow it to connect to the database (by the way - the database is on the
same server as the IIS server), but I don't know how to fix this problem.

Also note this is a new server, so I am assuming these are default settings.

One other point of interest.

If I run code to connect to the database it appears to work (it doesn't
error) - although SQL profiler reveals the connection was not actually made.
I only get the error if I try to process a record set, so calling a method
which fails (such as ADODB.Connect Open) doesn't generate an error, but
trying to reference an Uninstantiated object (such as a recordset) does give
the error.

Thanks for any help you can give.

 >> Stay informed about: Windows Server 2003 ASP Database Connection Problem 
Back to top
Login to vote
reb015011

External


Since: Mar 04, 2004
Posts: 28



(Msg. 2) Posted: Thu Feb 09, 2006 8:40 am
Post subject: Re: Windows Server 2003 ASP Database Connection Problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Robert Jones wrote:
> I am trying to set up an ASP site on a Windows 2003 server and am
> having problems connecting to the database.
>
Is it SQL 2000? If so, there is a connection problem that is fixed by
applying the SQL 2000 SP4 service pack.

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.

 >> Stay informed about: Windows Server 2003 ASP Database Connection Problem 
Back to top
Login to vote
Pete Wason

External


Since: Feb 16, 2006
Posts: 1



(Msg. 3) Posted: Thu Feb 16, 2006 8:38 am
Post subject: Re: Windows Server 2003 ASP Database Connection Problem [Login to view extended thread Info.]
Archived from groups: microsoft>public>inetserver>iis (more info?)

Hi, Robert -

Did you ever get your page to work correctly? If so, how?

This sounds a lot like the problems I'm having. I have two W2K3 servers, one a
fileserver and one a webserver. I have a virtual folder set up under Default
Web Site called 'weborders' which points to a shared directory on the
fileserver. An ASP page in weborders connects via ODBC to an Access mdb file in
another shared directory on the fileserver. I'm having all sorts of issues;
intermittantly the ASP page will work, other times it won't. Sometimes the
error is meaningful (sort of), other times it's just "cannot be displayed".
Sometimes it askes for authentication (and then fails), other times I can just
get to the directory listing of where the page resides without any auth, but
can't run the page. Of course Wink it always works if I browse it via IIS
Management. Since the index page in webroot that redirects to another site
works, I'm thinking the main culprit is not IIS. NTFS and/or AD permissions may
be involved.

And I just thought of something else: I defined the ODBC DSNs on the webserver
- I wonder if it would be better to define them on the fileserver, or maybe on
both machines..


Pete


Robert Jones wrote:
> I am trying to set up an ASP site on a Windows 2003 server and am having
> problems connecting to the database.
>
> To isolate the problem I created a simple ASP test page which simply created
> an ADO connection object, connected to the database and returned some
> results.
>
> When I ran the code as a VBS file it worked fine, but when I run it as an
> ASP page (obviously with slight adjustments such as replacing MsgBox with
> Response.Write etc) it just returns a "Page cannot be displayed" error.
>
> Using SQL Server Profiler reveals that while the VBS file does connect to
> the database, the ASP page does not.
>
> The other strange/annoying thing is that I cannot get an error other than an
> Error 500 "Page cannot be displayed" error when something goes wrong.
>
> I would guess that the user security for the IIS user is somehow set to not
> allow it to connect to the database (by the way - the database is on the
> same server as the IIS server), but I don't know how to fix this problem.
>
> Also note this is a new server, so I am assuming these are default settings.
>
> One other point of interest.
>
> If I run code to connect to the database it appears to work (it doesn't
> error) - although SQL profiler reveals the connection was not actually made.
> I only get the error if I try to process a record set, so calling a method
> which fails (such as ADODB.Connect Open) doesn't generate an error, but
> trying to reference an Uninstantiated object (such as a recordset) does give
> the error.
>
> Thanks for any help you can give.
>
>
>


--


------------------------------------------------------------------------
Pete Wason Hy Noom Publications codevark.DeleteThis@netscape.net 508.865.5414
 >> Stay informed about: Windows Server 2003 ASP Database Connection Problem 
Back to top
Login to vote
replytosury

External


Since: Mar 14, 2006
Posts: 1



(Msg. 4) Posted: Tue Mar 14, 2006 11:20 am
Post subject: Re: Windows Server 2003 ASP Database Connection Problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Pete Wason wrote:
> Hi, Robert -
>
> Did you ever get your page to work correctly? If so, how?
>
> This sounds a lot like the problems I'm having. I have two W2K3 servers, one a
> fileserver and one a webserver. I have a virtual folder set up under Default
> Web Site called 'weborders' which points to a shared directory on the
> fileserver. An ASP page in weborders connects via ODBC to an Access mdb file in
> another shared directory on the fileserver. I'm having all sorts of issues;
> intermittantly the ASP page will work, other times it won't. Sometimes the
> error is meaningful (sort of), other times it's just "cannot be displayed".
> Sometimes it askes for authentication (and then fails), other times I can just
> get to the directory listing of where the page resides without any auth, but
> can't run the page. Of course Wink it always works if I browse it via IIS
> Management. Since the index page in webroot that redirects to another site
> works, I'm thinking the main culprit is not IIS. NTFS and/or AD permissions may
> be involved.
>
> And I just thought of something else: I defined the ODBC DSNs on the webserver
> - I wonder if it would be better to define them on the fileserver, or maybe on
> both machines..
>
>
> Pete
>
>
> Robert Jones wrote:
> > I am trying to set up an ASP site on a Windows 2003 server and am having
> > problems connecting to the database.
> >
> > To isolate the problem I created a simple ASP test page which simply created
> > an ADO connection object, connected to the database and returned some
> > results.
> >
> > When I ran the code as a VBS file it worked fine, but when I run it as an
> > ASP page (obviously with slight adjustments such as replacing MsgBox with
> > Response.Write etc) it just returns a "Page cannot be displayed" error.
> >
> > Using SQL Server Profiler reveals that while the VBS file does connect to
> > the database, the ASP page does not.
> >
> > The other strange/annoying thing is that I cannot get an error other than an
> > Error 500 "Page cannot be displayed" error when something goes wrong.
> >
> > I would guess that the user security for the IIS user is somehow set to not
> > allow it to connect to the database (by the way - the database is on the
> > same server as the IIS server), but I don't know how to fix this problem.
> >
> > Also note this is a new server, so I am assuming these are default settings.
> >
> > One other point of interest.
> >
> > If I run code to connect to the database it appears to work (it doesn't
> > error) - although SQL profiler reveals the connection was not actually made.
> > I only get the error if I try to process a record set, so calling a method
> > which fails (such as ADODB.Connect Open) doesn't generate an error, but
> > trying to reference an Uninstantiated object (such as a recordset) does give
> > the error.
> >
> > Thanks for any help you can give.
> >
> >
> > Hi,

Can you please let me know if this problem is resolved if so what is
the resolution

thanks>
>
> --
>
>
> ------------------------------------------------------------------------
> Pete Wason Hy Noom Publications codevark DeleteThis @netscape.net 508.865.5414
 >> Stay informed about: Windows Server 2003 ASP Database Connection Problem 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting Problem Solving Community! (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]