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

Best way to Deploy an ASP.NET project

Hi,

I need to deploy an ASP.NET project (backend SQL database)on the Web Server.
I HAVE access to the Web Server & all the rights too.

What is the BEST WAY for deploying this application coz I tried the
deployment using Windows Installer but when I tried to open the home page in
the browser, I got the error , "Server Error : SQL Server does not exist or
access denied". I think this is because the SQL database is in the
Development server & I am deploying the project on Web Server. Also , all the
databases are in another server called DB Server.

So I need to put this database in DB Server & also (I think) attach the
database file so that the project can be successfully deployed on the Web
Server.How to go about doing this? I have searched many links for this but
couldnt get any walkthrough which would demonstrate this.

Please help.

Thanks
--
pmud
Nov 19 '05 #1
2 1343
Here's a high level overview to get you started. This is one of the
trickiest parts of developing a web application, so hopfully some other
people will fill in some details.

I think the most reliable way to get your database from your
development database server to your production server is to do a backup
/ restore. You can also copy a database and all objects using DTS in
Enterprise Manager or with the Copy Database Wizard, but I've had the
best results with a simple backup / restore.

You'll need to figure out the the connection string to talk to the new
database. You've already configured this to point at your development
SQL Server; you'll probably want to move this connection string to your
web.config file so you can use the same code on your development and
production server. Here are some links to get you started there:
http://aspnet.4guysfromrolla.com/articles/053102-1.aspx
http://www.extremeexperts.com/Net/FA...ionString.aspx
- Jon
http://weblogs.asp.net/jgalloway

Nov 19 '05 #2
If all else fails try halting the database and do sp_detach_db
'yourDatabase',
'true' and then move the mdf and ldf files to the production server and
sp_attach_db 'yourDatabase','path to .mdf','path to ldf'

Regards,
Jeff

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #3

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

Similar topics

1
by: Wilson Ricardo Passos Oliveira | last post by:
Hi fellows, I have two simple questions regarding the Framework's deploy and the Setup and Deploy Projects: 1. As I've read in another posts and newsgroups (and as I can imagine), VS.NET...
0
by: Ed Chiu | last post by:
Hi, Can somebody tell me what is the best way to deploy a project in VS.Net 2003, say from development server to production server or other servers. Some one suggests me to use copy project...
1
by: dyw55a | last post by:
Hi, Do you know what is the best way to deploy a asp.net web application? XCOPY, Using the copy project option in VS.NET or deployment using VS.NET installer? Any concerns, issuese for different...
4
by: bob lambert | last post by:
Help I am trying to deploy to another pc a vb.net std 2002 windows form application. I am confused. I created a project - windows form I built form, compiled and debugged. I created a...
1
by: jimdandy | last post by:
Hi all, Am looking for some guidance/advice in terms of best practices for deploying a MS BI project. We have a relatively large BI system that we need to deploy between DEV/QA/UAT/PROD and...
2
by: robert | last post by:
Like many people I am inconvenienced by the fact that files cannot be excluded from an asp.net application. I basically have some text files that are written to by the application and these files...
5
by: Mircea Pleteriu | last post by:
Hi, I have developed a a web application with ASP.NET 2.0 and VS 2005. My client wants to be delivered a .msi file that installs the app. My big problem is that the .msi also deploys the source...
4
by: meo | last post by:
Does .NET provide the way to deploy library to internal developer? I am trying to find the way to deploy a library file to developer for having integration to their application BUT the customer...
3
by: Ken Fine | last post by:
I would like to be able to move my ASP.NET applications to any of a number of servers without changing code. My apps do a lot of disk I/O and in some cases I might be specifying absoute drive...
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
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...
1
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
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...
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
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.