Click here to Skip to main content
15,912,837 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a web application which am trying to host using IIS but i am having truble accessing sql database although it is hosted successfully but i cannot log in at my login page... It is also not showing any error.
Posted

The trouble is at this point that it could be absolutely anything.

The most likely culprit is your connection string: if you have moved a working website from your development machine to production then the connection string is the first place to start.

I'd also try adding try...catch blocks round all your data access code, and logging or reporting with the browser exactly what happens if you get any exceptions - the chances are that the IIS setup is just to reload the default page in the event of an unhandled exception so unless you start by finding out where it goes wrong, you are going to be there for quite a while.

I'd probably also add some general logging code to "trace" the execution through you app, recording what you are about to do, and what effect it had so you can review it later and work out where it didn't do what you expect.

Sorry this is just generic advice, but without actual information - which you need to acquire - everybody is reduced to just guessing.
 
Share this answer
 
Comments
uditCsharp 28-Jan-14 6:15am    
Its a great advice. I am trying to figure out the problem by myself.
Have you reached login page atleast?
 
Share this answer
 
Comments
uditCsharp 28-Jan-14 6:10am    
yeah login page is displayed... but images are missing...only controls are visible.
OriginalGriff 28-Jan-14 6:44am    
Reason for my vote of one: This is not an answer. It is a question requesting more info, and does not warrant a "solution" because it does not in any way even try to solve the problem.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900