• Status: Solved
  • Priority: High
  • Security: Public
  • Views: 63
  • Last Modified:

Oracle database not connecting on IIS7

I am using asp.net code on II7 and database is Oracle, When I run code through visual studio then database connects properly but when I set code on IIS7 on
windows server 2008 machine then It doesn't get connect, Its get loading and loading page and then get session time out, please help me.
0
Sudhanshum
Asked:
Sudhanshum
  • 2
1 Solution
 
Ryan ChongCommented:
When I run code through visual studio then database connects properly but when I set code on IIS7 on
windows server 2008 machine then It doesn't get connect, Its get loading and loading page and then get session time out

IIS will be used to host your website but it's the codes of your website to connect to database.

few things to check:

1. make sure your Oracle database service is running fine?
2. check the connectionstring setting in web config and make sure it's configured properly.
3. make sure your IIS is running fine > you can surf other static asp.net pages, for example?
4. try to write the asp.net errors into log for debugging. you can use log4net library for this.
0
 
slightwv (䄆 Netminder) Commented:
Make sure the web server can see the database server.  Typically you don't let web servers connect directly to a database server.  When you do, there should be a firewall between them.  The firewall is likely blocking the connection.
0
 
SudhanshumAuthor Commented:
I checked that firewall is blocked, I am surprised that its working with visual studio but not with IIS7.
0
 
slightwv (䄆 Netminder) Commented:
Your workstation likely has a different network path to the database server than a web server.  That and the Network Admins likely know a Developer needs access to the database server and has already opened that up through the Firewall.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now