existing umbraco cms set up in local server - asp.net

I am completely new with the umbraco CMS and one of my client want to make some changes on his umbraco CMS web site. So i have downloaded the umbraco CMS projects files and database from the server and i need to configure it on my local server. I am using windows 10 OS. I can install a fresh umbraco cms in the local server. But When i try to run the existing in local server, its asking me for install the fresh umbraco CMS.Can anyone help me on sort out this issue?
Note : I don't have changed the any configurations on the files. Just simply running the project with Microsoft WebMatrix app. Please help me with the database and other configuration settings also.
Aby help will be really appreciated...

It sounds like the Umbraco installation is assuming it is a new installation and then creates a new database for you.
You need to download the website files directly from the server and place those in a folder which can be served by a webserver on your local machine. Then you need to get a backup of the database on the server and restore this on a SQL server on your local machine.
When this is done, you need to make sure the connectionstring in the web.config of the site is set up correct to match where you have restored the database on your local SQL server. Search for umbracoDbDsn and make sure the server name, credentials and database name is correct.
When this is done, you should be able to start up the site and hopefully it will run just as it did on the server.

Related

How to skip nopcommerce installation?

I have deployed my project on the server and also exported the database on the server.
Now I would like to skip the installation. How is it possible?
I tried to put the 'Settings.txt' file in App_Data and also the 'InstalledPlugins.txt', but it didn't help.
'Settings.txt' needs to be updated with new SQL Database in your PROD server. Just copying over will not help. If you just copy over, then NopCommerce from PROD will look for Database in your local or dev PC which is not accessible (in most cases)
'Settings.txt' stores db connection as ADO.Net connection string. so you can edit easily.

How to properly host my ASP.NET website?

I'm not very experienced with ASP.NET, I've started to learn about all of this a month or so ago, I've made a very simple website that I would like to test online, there are no database connections or anything of the sorts.
My previous experience with the Web has taught me to just upload files via an FTP client and being done, this is obviously not the case with ASP.NET.
I'm running Visual Web Developer Express and having a really hard time understanding how to get my website online on my host. I've read a few things about the web.config file, I've changed my server to support version 4.0, but I still battle with error after error after uploading my files onto my server. I've also read that the Express edition is limited in the "Publish Website" department.
I'd just like a direct answer on how to publish my website onto my host.
Make sure that your hosting company supports ASP.NET websites. Get a FTP client like FileZilla. Copy all of your files to the remote directory. If you are using a database, change the connection string in your web.config file to match the connection string of your new database. You get the connection string from the hosting company.
There are different ways to deploy your Asp.net web site.
Web Setup Project: Create a web setup project and use the resulting files to deploy your application. Read More
Copy Web Site Tool: Update and deploy websites in environments with multiple developers and servers. Read More
Publish website tool: Pre compile your websites.
Read more

Publishing asp website on Local IIS

i Have a Asp website that uses MySql database, i want to publish it on my own PC for testing ,
is that possible? and do i need to combine some references with it , or what? and do i need to modify the web.config file?
There are two pieces of software required to run you application.
You need a web server that's able to serve ASP pages. Either install the full IIS, or if it's only for your own testing you can go with IIS Express (included in e.g. WebMatrix).
You need to install a MySql server to run the database. If the MySql drivers are not included in the deploy package of the site, you will need to install those separately as well.

Newbie Trying To Deploy Asp.Net Website

I'm basically wondering what the best way to deploy an Asp.Net Web Site is, mostly from the point of view of security. Right now, I'm trying to publish the website using Visual Studio 2010. Could someone direct me to a good tutorial on how to do this securely? For example, can it be done over an encrypted connection via Visual Studio? Is it necessary to install any software on the server to do this? Should I use a different program to open up an SSL (TLS) connection first, and if so, which program (does it come standard with windows)?
The server is running Windows Server 2008. Development is on Vista.
Many thanks in advance for any direction in this matter!
Andrew
I would publish the site to your local machine and file copy the files across to your test/production environment. As a rule we don't publish sites straight from VS to test or production.
For example you don't want to accidentally push things straight from dev into a live environment do you?
As far as the file transfer security goes you could use SFTP.
Note: First thing is to check with the owner of the server, as they often will provide you an FTP connection and will take care of configuring IIS.
If you want to add security, make a keyfile and sign your assemblies and consider running Dotfuscator on your dlls, the community edition is included in Visual Studio. Here is an earlier question where I've put more info on Dotfuscator.
If you have to do the deployment yourself, here's a few things to consider.
XCopy (easy)
MSI (have to create a setup program, you can do this easily in Visual Studio)
There is no security advantage in deploying using Visual Studio, but you can use Visual Studio to create a small setup program. One thing you want to make sure for security is DO NOT deploy any .cs files. Prepare your files, you should compile in Release mode, make sure debug is not enabled in your config file, keep your bin and it's dll, also the aspx, asmx, ascx, svc, css, js, and config files.
XCopy: Install a small FTP server, or use one your company alreayd has, this will allow you to get your files once you are logged into the target machine. You should be able to get an administrator account for the target machine, just ask the sysadmin of the domain, then log on using remote desktop, got to your ftp site, and download your files. Open IIS on the target machine, create a virtual directory and a pool. Copy your files to the location, configure your connection string to your DB if you use one, then test your website.
MSI: same process as above, except the setup will create the virtual directory and pool for you.
Here is extra info on best practices from the official ASP.Net website.
If you have some control on the server (e.g. to configure IIS7), you might want to look into Microsoft Web Deploy (new product just been released):
http://weblogs.asp.net/scottgu/archive/2010/09/13/automating-deployment-with-microsoft-web-deploy.aspx
Haven't tried it myself, but looks quite slick and it apparently encrypts the data being copied up, so might suit you.

I want to run a .net web application on local computer

I wanted to run a .net application on a laptop. I created the application(aspx pages and SQL database) on a computer that has VS 08 installed. Now i wanted to run this application on a laptop that does not have SQL sever 2005 installed.
As far as the aspx pages if i publish them to a zip drive copy it to my laptop and go into IIS and define a new virtual directory to point where my pages are that should work RIGHT??
Now for the database i don't know what i need to do
any ideas???
Publish the web app to a folder on the laptop and create an IIS Virtual directory pointing to that folder.
As for the DB, install an express version of SQL Server (http://www.microsoft.com/express/Database/) and
point you web app at them.
Have you considered using SQL Server Compact Edition? This will allow you to move the db around with the application.
You need to install sql server on the client(laptop) so you can run the application properly
As far as the aspx pages if i publish
them to a zip drive copy it to my
laptop and go into IIS and define a
new virtual directory to point where
my pages are that should work RIGHT??
Yes this should work.
As for the database, you'll need to install it on the computer you are running IIS on and copy the schema and data over or (I would recommend this way) have your code connect to a server which has the database on it.
You need to install at a minimum SQL Server 2005 express edition. You may also need to change the connection settings for your application, which may be in your .config file(depending on how you did your conneciton in your application) and depending on whether the server instance and database name you choose are different from what you used on your development computer.

Resources