C# .NET - how to upload - Asked By hiren dhameliya on 14-Dec-11 06:38 PM


Please tell me how to upload website to server....
means i already buy one domain name ....plese tell me how to publish website to and upload,,,to domain name....,,
in window 7
Riley K replied to hiren dhameliya on 14-Dec-11 07:53 PM

  1. On the Build menu, click Publish Web Site.

  2. In the Publish Web Site dialog box, click the ellipsis button (…) to browse to the location where you want to publish the Web site files that are produced by compilation (the ultimate target server might be different).

    The target location can be a local or shared folder, an FTP site, or a Web site that you access with a URL. You must have permissions to create and write files in the target location.

To be able to change.aspx files after publishing the Web site (without recompiling them), select the Allow this precompiled site to be updatable check box.]
Jitendra Faye replied to hiren dhameliya on 14-Dec-11 11:08 PM
First of all if you want to setup your hosting account you should do in following way.

go to http://www.godady.com/ and try to find domain and register your domain along with that try to take suitable hosting plan for your application.

make sure you get all things which is needed by your application bandwith and all.

After successfully completing above part you will receive an E-MAIL with your credential details.

Use credential details which is mentioned in email and login using any FTP server you can also use inBuilt visual studio.

i would like to suggest you to use


now publishing website. After completing your development and testing publish the website and in that folder change your connection string and all required things like SMTP SQL with your HOSTING provider.

Hope this helps you.
Anoop S replied to hiren dhameliya on 14-Dec-11 11:29 PM
Get a hosting plan ->find somewhere online to put your website files and assign an address to that somewhere. Any given hosting plan include storage space on a web server and a domain name registration. Depending on what size your website has and potential traffic volume it's going to generate, you get a hosting plan based on three factors - storage space, bandwidth and CPU.

Download File upload -> software like filezill, cuteftp etc..

Upload your files/Publish your website -> Upload your files to the root directory of your purchased web hosting server space. You can do this either by using your hosting account's inhouse file manager, but those are often slow and manage large file volume poorly. Our recomendation is to get your hands on a FTP client.

Add your domain name to Host -> by logging to your account where you purchase your domain there you can find you DNS Name server from there, its like ns1.domain.com, ns2.domain.com( something like this way), just copy that login to your host account, place this two DNS there, Thats all

Most of the hosting company has online support, if you ask they will explain in details

Suchit shah replied to hiren dhameliya on 14-Dec-11 11:58 PM
Here's How:
  1. Decide where you are going to put your pages.
  2. Find out the details of your account:your username, your password, the "host name" (the machine where you'll upload your files), and your URL or Web address
  3. Connect to the Internet
  4. Open up an FTP program (like Fetch - Mac or WS-FTP - PC)
  5. Put in the host name of your Web site
  6. Put in your username
  7. Put in your password
  8. Connect to the site
  9. Highlight the files you would like on your Web site
  10. Click on the option to transfer them to your Web site
  1. Don't forget to transfer images and other multimedia files that are associated with your Web site.
What You Need:
  • HTML Editor -or-
  • Text Editor
  • FTP client
dipa ahuja replied to hiren dhameliya on 15-Dec-11 02:31 AM
You can run your project by hosting in IIS

Step 1 : Build - > Publish Web Site

Step 2 : Publish it in the IIS server's folder : C:\inetpub\wwwroot

Step 3: Open IIS 

Step 4:  Expand the Root Node of the IIS in the left panel. In the Sites node you will get you published site

Step 5 : Right click on the your site and Choose Convert to Application:

Step 6: Now it will be converted to application  Now Right click on it and choose Browse :

hiren dhameliya replied to dipa ahuja on 15-Dec-11 06:28 PM
Thank u for answer i did like this bur error is like below. Please let me know as soon as possible....

Server Error in '/Job Portal' Application.

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.

Source Error:

Line 10:     </connectionStrings>
Line 11:     <system.web>
Line 12:         <compilation debug="true" targetFramework="4.0">
Line 13:             <assemblies>
Line 14:                 <add assembly="ReachFramework, Version=, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

Source File: C:\inetpub\wwwroot\Job Portal\web.config    Line: 12

Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927 

dipa ahuja replied to hiren dhameliya on 16-Dec-11 03:14 AM
Check here for solution

hiren dhameliya replied to dipa ahuja on 16-Dec-11 04:48 PM
thanks it works but error is 

HTTP Error 500.21 - Internal Server Error

Handler "PageHandlerFactory-Integrated" has a bad module "ManagedPipelineHandler" in its module list

dipa ahuja replied to hiren dhameliya on 17-Dec-11 03:55 AM
Here is the solution for this too:


hiren dhameliya replied to dipa ahuja on 19-Dec-11 05:17 PM
thanks ...............
but it show me like this 

Failed to generate a user instance of SQL Server due to failure in retrieving the user's local application data path. Please make sure the user has a local user profile on the computer. The connection will be closed.

dipa ahuja replied to hiren dhameliya on 20-Dec-11 02:22 AM

The process that creates the database requires at least High trust. You can check this by looking in your Web.Config for

<trust level="TrustLevel" />

If there is no trust specified in your Web.Config, try adding it and set it to either Full or High. If this doesn't work, there is a machine.config in your IIS which you would need to modify.

That being said, the best route I have found to solve this is to just use aspnet_regsql.exe to create the necessary tables and then change the connection string in your Web.Config to look at it directly.