473,698 Members | 2,241 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP Website dataBase connection works on one pc and not on another

Hi,

I've created a ASP.NET application on my pc using visual studio and it works
fine.

when i moved it to my web server (another pc with IIS) and surf to my
website, the website comes up but for some reason doesn't connect to the
database.

from the visual studio i could connect to the same database as i'm trying now.

i don't get any erors...

what can be the problem?
Sep 19 '07 #1
2 1672
Gidi,

Is the database set up to use trusted connections? If so, what is the
user account that your ASP.NET application is running under?

What are the details of the exception you get?

My guess is that when you ran it under your local machine, you were
using the web host that VS.NET uses to debug ASP.NET pages, and that runs
under your local user account, so the pages worked.

But when you moved to IIS, it is running under the ASP_NET account,
which doesn't have access to your database.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Gidi" <sh*****@hotmai l.com.dontspamw rote in message
news:57******** *************** ***********@mic rosoft.com...
Hi,

I've created a ASP.NET application on my pc using visual studio and it
works
fine.

when i moved it to my web server (another pc with IIS) and surf to my
website, the website comes up but for some reason doesn't connect to the
database.

from the visual studio i could connect to the same database as i'm trying
now.

i don't get any erors...

what can be the problem?

Sep 19 '07 #2
Hi Nicholas,

Thanks.

my connection string contains both the user and password. so i think that it
uses them to access the database no?
"Nicholas Paldino [.NET/C# MVP]" wrote:
Gidi,

Is the database set up to use trusted connections? If so, what is the
user account that your ASP.NET application is running under?

What are the details of the exception you get?

My guess is that when you ran it under your local machine, you were
using the web host that VS.NET uses to debug ASP.NET pages, and that runs
under your local user account, so the pages worked.

But when you moved to IIS, it is running under the ASP_NET account,
which doesn't have access to your database.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Gidi" <sh*****@hotmai l.com.dontspamw rote in message
news:57******** *************** ***********@mic rosoft.com...
Hi,

I've created a ASP.NET application on my pc using visual studio and it
works
fine.

when i moved it to my web server (another pc with IIS) and surf to my
website, the website comes up but for some reason doesn't connect to the
database.

from the visual studio i could connect to the same database as i'm trying
now.

i don't get any erors...

what can be the problem?


Sep 19 '07 #3

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

Similar topics

3
3094
by: Maellic | last post by:
Hi, The website I am working on is built with ASP.NET and connects to a SQL Server 2000 database. The web server and database are on the same machine. I have recently tried to modify the timeout of the website from 20 mn to 60 mn. I changed the timeout setting in IIS. Now the website itself doesn't time out, however after 20 mn, when I try to access a page that needs to connect to the database, I get the following error message
7
4043
by: vamichael | last post by:
When I try to run the Website Administration Tool from my published application using http://localhost/myapp/webadmin.axd I am getting a "resource not found" error message. I can use the Admin tool from the IDE however. I noticed some people referring to a directory called c:\Inetpub\wwwroot\aspnet_webadmin\, which i do not have on my system.
3
10291
by: Martin B | last post by:
Hallo! I'm working with C# .NET 2.0, implementing Client/Server Applications which are connecting via Network to SQL-Server or Oracle Databases. To stay independent from the underlaying Database I use System.Data.Common.DBConnection and .DBCommand. How can I keep aware from connection losses (network not availeable, db-server not available...)? Are there any strategies to detect this broken connections, and how can I
2
1452
by: minckle | last post by:
hi, i am trying to get an enquiry form into a database, but i keep getting the following error: Microsoft JET Database Engine (0x80004005) Not a valid file name. The website and database are on different servers. i am using the following connection string:
7
1717
by: clintonG | last post by:
I'm puzzled and don't think this is possible but if an application that is running on websiteA generates a file can FTP be used from websiteA to transfer that file to websiteB which would be located on another server? -- <%= Clinton Gallagher NET csgallagher AT metromilwaukee.com URL http://www.metromilwaukee.com/clintongallagher/
5
2261
by: samadams_2006 | last post by:
I'm having a problem in accessing a Microsoft Access Database in a VB.NET Web Application. It's so straight forward, I thought I'd walk you through all the details here: 1) I have a .NET Web Application called "Lesson18b" under "C:\Inetpub\wwwroot\Lesson18b". 2) I have one Web Form on this Lesson called "Form18b.aspx" 3) In this same Folder under Inetpub I have the Microsoft NorthWinds
0
2917
by: D0c | last post by:
Hey, I would like to syncronize my local database with my website database. Scenarios are 1. New rows / row updates in the local database to be updated on the website database (local -net) 2. Updates on the website database to be updated on the local database (net -local) * Updates for both databases are possibly on different fields
39
5856
by: alex | last post by:
I've converted a latin1 database I have to utf8. The process has been: # mysqldump -u root -p --default-character-set=latin1 -c --insert-ignore --skip-set-charset mydb mydb.sql # iconv -f ISO-8859-1 -t UTF-8 mydb.sql mydb_utf8.sql mysqlCREATE DATABASE mydb_utf8 CHARACTER SET utf8 COLLATE utf8_general_ci;
5
3871
by: student2 | last post by:
Hi, I'm trying to help another student in our class to host an Access Database on line for a school project. 1) I tried so with ODBC- DSN (setting this up) 2) Read tutorials and guides on IIS (Inetpup...wwwroot) 3) Also on Data Access pages, Dreamweaver, Asp/Asp.net (all of which I'm new too) 4) Other methods.
0
9157
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9026
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8861
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6518
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4366
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3045
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2328
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.