473,405 Members | 2,210 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

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 1657
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.com

"Gidi" <sh*****@hotmail.com.dontspamwrote in message
news:57**********************************@microsof t.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.com

"Gidi" <sh*****@hotmail.com.dontspamwrote in message
news:57**********************************@microsof t.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
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...
7
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...
3
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...
2
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...
7
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...
5
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...
0
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....
39
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...
5
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.