473,378 Members | 1,368 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,378 software developers and data experts.

Problem deploying ASP.Net 2.0 application

On an ASP.Net 2.0 Web project, I created a deployment setup
using the deployment wizard in Visual Studio 2005.

I use SQL 2005 Express as a database server.

The development version of my project -- it is a large one --
works fine inside Visual Studio. But when I try to deploy it
on localhost outside VS, I receive an error message at the
point where a connection should be made to the database
server. Apparently, the deployment wizard has altered my
connection string.

The connection string I use on the development version
has

[computer name]\sqlexpress

for the provider.

On the development version, the login works fine. I fetch the
connection string from Web.config.

On the deployed version, an error message says that the
login failed for

[computer name]\aspnet

which is not the same name that appears in the connection
string.

Anyone know what's happening? I suppose a setting in the Web.config
file needs to be altered for deployment.

Jim

Nov 13 '06 #1
4 1269
deploy does not change web.config. you are confusing the sqlserver spec and
the login. the login is failing on the server. the default asp.netaccunt
does not have network permissions. be sure you are not using impersonation
and set the app identity in the app pool to an account with access to the
sqlserver.

-- bruce (sqlwork.com)

"JimCinLA" <ji******@pacbell.netwrote in message
news:11**********************@k70g2000cwa.googlegr oups.com...
On an ASP.Net 2.0 Web project, I created a deployment setup
using the deployment wizard in Visual Studio 2005.

I use SQL 2005 Express as a database server.

The development version of my project -- it is a large one --
works fine inside Visual Studio. But when I try to deploy it
on localhost outside VS, I receive an error message at the
point where a connection should be made to the database
server. Apparently, the deployment wizard has altered my
connection string.

The connection string I use on the development version
has

[computer name]\sqlexpress

for the provider.

On the development version, the login works fine. I fetch the
connection string from Web.config.

On the deployed version, an error message says that the
login failed for

[computer name]\aspnet

which is not the same name that appears in the connection
string.

Anyone know what's happening? I suppose a setting in the Web.config
file needs to be altered for deployment.

Jim

Nov 13 '06 #2

bruce barker (sqlwork.com) wrote:
deploy does not change web.config. you are confusing the sqlserver spec and
the login. the login is failing on the server. the default asp.netaccunt
does not have network permissions. be sure you are not using impersonation
and set the app identity in the app pool to an account with access to the
sqlserver.

-- bruce (sqlwork.com)

"JimCinLA" <ji******@pacbell.netwrote in message
news:11**********************@k70g2000cwa.googlegr oups.com...
On an ASP.Net 2.0 Web project, I created a deployment setup
using the deployment wizard in Visual Studio 2005.

I use SQL 2005 Express as a database server.

The development version of my project -- it is a large one --
works fine inside Visual Studio. But when I try to deploy it
on localhost outside VS, I receive an error message at the
point where a connection should be made to the database
server. Apparently, the deployment wizard has altered my
connection string.

The connection string I use on the development version
has

[computer name]\sqlexpress

for the provider.

On the development version, the login works fine. I fetch the
connection string from Web.config.

On the deployed version, an error message says that the
login failed for

[computer name]\aspnet

which is not the same name that appears in the connection
string.

Anyone know what's happening? I suppose a setting in the Web.config
file needs to be altered for deployment.

Jim
you need to set up a user called servername\ASPNET and give
it read and write priviledges on the data_app folder.

wawens

Nov 14 '06 #3

heinz wrote:
bruce barker (sqlwork.com) wrote:
deploy does not change web.config. you are confusing the sqlserver spec and
the login. the login is failing on the server. the default asp.netaccunt
does not have network permissions. be sure you are not using impersonation
and set the app identity in the app pool to an account with access to the
sqlserver.

-- bruce (sqlwork.com)

"JimCinLA" <ji******@pacbell.netwrote in message
news:11**********************@k70g2000cwa.googlegr oups.com...
On an ASP.Net 2.0 Web project, I created a deployment setup
using the deployment wizard in Visual Studio 2005.
>
I use SQL 2005 Express as a database server.
>
The development version of my project -- it is a large one --
works fine inside Visual Studio. But when I try to deploy it
on localhost outside VS, I receive an error message at the
point where a connection should be made to the database
server. Apparently, the deployment wizard has altered my
connection string.
>
The connection string I use on the development version
has
>
[computer name]\sqlexpress
>
for the provider.
>
On the development version, the login works fine. I fetch the
connection string from Web.config.
>
On the deployed version, an error message says that the
login failed for
>
[computer name]\aspnet
>
which is not the same name that appears in the connection
string.
>
Anyone know what's happening? I suppose a setting in the Web.config
file needs to be altered for deployment.
>
Jim
>

you need to set up a user called servername\ASPNET and give
it read and write priviledges on the data_app folder.
Did that in ASP.NET Web Site Admin tool. App_Data has [computer
name]\aspnet
as a user. But I still have the problem.

Nov 14 '06 #4
Probably done this but just in case (I've seen a contractor
struggling for days with this)
The web.config runs from the virtual root directory. In
other words, if you simply pasted your directory into the
root directory, then the web.config in the root is called
and will mess yours up.
Simply make your folder a virtual root in IIS.

i know its obvious but you never know....

Nov 15 '06 #5

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

Similar topics

3
by: Bob Z | last post by:
Hello All, I have a problem I just can't figure out. I am using Oracle's jdeveloper and deploying to a stand-alone linux oc4j server. I have a j2ee/struts application that runs fine from the...
0
by: horseface | last post by:
Hi everybody. I am trying to test out the Java Blueprints Pet Store application. I followed the installing instructions, and everything goes smoothly until I reach the deploying part. The...
13
by: Tom Bean | last post by:
I developed a C# application to automate input to elements of a web page displayed in an AxWebBrowser control. The app calls GetEnumerator() on the HTMLDocument's HTMLElementCollection (i.e....
10
by: Gerben van Loon | last post by:
Hi there, hope someone can help me on this: I'm planning to deploy several ASP.NET projects to a production server. Normally I used the "Project / Copy project" option in VS.NET, but to this...
0
by: sbambati | last post by:
Hi All This is to clarify the problem that we are facing while deploying the .Net Components in Windows XP. We have compiled our VB.Net components in Visual Studio .Net 2002 (Framework 1.0)...
0
by: Kleanthis | last post by:
I have a problem, when deploying multilingual applications using cab files on Compact Framework 2.0. It seems that something is going wrong with compact framework 2.0 Below I have a description...
1
by: dfererer | last post by:
Dear all, I want to install and run ClickOnce Deploying application under a Windows Service,I have make the service starting the application successfully(user API...
6
by: Ryan | last post by:
Is there any way to save a VB 2005 created application as an .MSI install file? The only method I see is to publish as a .EXE. Curious because I want to push out an application with Group Policy....
0
by: Shane Brodie | last post by:
Greetings: I have an extremely frustrating issue. I have an application created within VS 2005 using VB.Net and deployed to a network share using ClickOnce deployment. I was asked to also...
2
by: =?Utf-8?B?eWtmZmM=?= | last post by:
I try to experiment deploying my Vb.net application by following the basic steps but encounter this error. I follow every step and every display agrees with what the tutorial says and the IDE...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.