IIS 7 Can't read data from ASP.Net application services tables - c#

I'm working on deploying a web application written in C# with ASP.Net Application services databases.
The application runs fine on the development machine.
Windows Server 2003 has been built to test the application.
The database has been scripted across using MS SQL Server GUI.
ASP.Net application services tables were created using an utility.
The connection strings are stored in the web.config and connectionStrings.config.
The application connects to the database successfully, but then it times out after 10 seconds.

I think we'll need more than this to figure out why the timeout is happening. How do you know that the application is successfully connecting to the database?
If that's all the information I had and I observed those symptoms, I'd likely try to run SQL Server Profiler against the SQL instance in question to see what activity against the database is timing out.

Connection string was hardcoded somewhere in the app...ahhh

Related

Database application using SQL Server 2008 or any dbms

I'm developing a database application using SQL Server 2008. Since I finished my project and I thought I should see it working on another PC or friend. There is a problem in the database server it wants to connect. I want my app connects to the SQL Server every time it runs on a PC of mine, or any other's without losing any data.
I'm using Microsoft SQL Server 2008 installed. I want to use my app other pc without installing Microsft SQL Server.
If you want to make your database 'portable' you have a few options:
Use a online database service, like Microsoft Azure. You can have one central database which you can use with an internet connection;
Save the database next to the application, something like 'embedded', you can use LocalDB for that. Make sure you copy the database file along with the application.
When you want to run your application on another pc, one way is updating connectionString of DB.

Read database from SQL Server - WP8 Application in C#

I have an database in my MS SQL Server and I want to create a WP8 App which can log in and can read over sql query or update the database.
In c# there is it easy to connect to a SQL Server, but in WP8 its more complicated. Can anybody help me? I want to connect to a database over a username and a password and I want to read and edit the database.
you can develop a web service talking to your database, deploy it to IIS on your Azure instance and then consume it from your Windows 8 application (by adding a web reference to your web service in Visual Studio)

Installing C# Windows Form Application with Database on another system

I have developed a winform application in C#.net and using SQL Server 2008.
My application inserts and updates values into database.
Is it possible to install the application on a another system which doesn't have sql server on it?
Imagine using sql azure. Cloud based sql server. The database is never on the same physically computer. It's all down to the connection string.
With an on premise database you need to make sure the database allows external connections, maybe opening up firewall etc. then make sure the connection string is set correctly on the application to talk to external database.
You can even configure to change the connection string as required pointing at different databases depending on the individual requirements.
Scott
Yes, you can. You can access the DB remotely by referring remote DB server in connection string.
It is possible, if you are looking to run the application on machine that is running on the same Domain as the SQL Server and has privileges to the SQL Server.

Developing a windows service to communicate between a SQL server database and web service

We have developed an iPhone application which communicates with SQL server database via asp.net hosted on a public server. We have completed all the development and we need to test this with live server data.
Now we understand that live server database is using dynamic ports and cannot be accessed from our asp.net script. Database administrator is against changing the dynamic ports as they are worried about the security threat. We tried asking them to change this by giving access to the server where we host the asp.net web service but they are not willing to do this.
The solution they are asking is to develop a windows service which would act as a middleware between their SQL server database and our web service. They are ready to open ports for running that windows service on their server. Our iphone app need to take values from database as well as insert values to the databse.
We need to know if this is feasible to develop a windows service and if yes, can someone can guide us how to develop this?
Their server is running windows 2003 and SQL server version is 2008
this are good reads on how to start creating a window service
http://msdn.microsoft.com/en-us/library/zt39148a(v=vs.80).aspx
http://tech.pro/tutorial/895/creating-a-simple-windows-service-in-csharp

Multiple sessions are created in oracle db by dotnet web application in visual studio 2008 in live server

I have webapplication in vs2008 and database oracle. Where my application make connection to fetch data from database, no session is maintained in oracle database.
but when i deployed my application in web server IIS 6.0 in prodcution. Every request , send by application to database to fetch data create session in oracle database.
Its create multiple sessions in database by application.
anyone help to resolve it and figure out root cause for that.
Thanks
Check if are closing and disposing your connection and command objects.
Also check your connection pool settings in config file. Is should be on by default. The number of sessions that are initially opened will depend on the pool size.

Categories

Resources