Jacob https://www.hostasp.net/forums/profile/jacob.html Mon, 23 May 2022 21:04:10 +0000 Joomla! - Open Source Content Management en-gb Presales questions on ASP.NET web hosting plan and features https://www.hostasp.net/forums/question/presales-questions-on-asp-net-web-hosting-plan-and-features.html https://www.hostasp.net/forums/question/presales-questions-on-asp-net-web-hosting-plan-and-features.html Mon, 05 Mar 2012 11:40:32 +0000 How to: One-Click Web publishing or Deploying your Website using Visual Studio https://www.hostasp.net/forums/question/how-to-one-click-web-publishing-or-deploying-your-website-using-visual-studio.html https://www.hostasp.net/forums/question/how-to-one-click-web-publishing-or-deploying-your-website-using-visual-studio.html . You will use this information to rebuild publishing XML in the following step. [img]http://www.hostasp.net/articles/images/visual-studio-remote-deployment/vs-2010-ms-sql-server-db.PNG[/img] [b]Step 2. Setting up Web publishing environment. (WebsitePanel)[/b] Login to your Web hosting panel and select your Website, you would see Web Publish properties Tab, now enabling this will create a new web publishing account. After your account is created you will see a link to rebuild publishing XML- click on the link and configure your database for use. Now after reconfigure is done, you will be able to download the updated [b]Publishing XML for your Reference[/b]. This XML contains your Service URL, SQL server name, and other related information for you Visual studio publishing. (If you're using WebMatrix you could use this XML to directly import to WebMatrix IDE). ([b]Download your publishing XML to your client machine[/b]) [img]http://www.hostasp.net/articles/images/visual-studio-remote-deployment/dotnet-webpublishing-settings.PNG[/img] [b]Step 3. Configuring your IIS Website application pool. (WebsitePanel)[/b] This is a vital part you would need to really look into it and set it up correctly. You would choose appropriate Application pool depending upon your web application targeted framework, if you have app built on framework .NET 4.0 then your choice here would be 4.0. [i][b]Please note that for MVC application you would need to select Integrated Pipeline.[/b] for rest of app you would select Classic pool which are just displayed as 2.0 / 4.0.[/i] Still the version depends on your targeted framework. [img]http://www.hostasp.net/articles/images/visual-studio-remote-deployment/dotnet-application-pool-settings.PNG[/img] [b]Step 4. Creating new Publish profile in Visual Studio. (Visual Studio 2010)[/b] Now that we have configured our Web publishing setup on our hosting space. Let see how to setup Visual studio for Web deploy. [img]http://www.hostasp.net/articles/images/visual-studio-remote-deployment/vs-2010-create-web-publish-profile-menu.PNG[/img] Open your Web project using Visual studio 2010, on menu bar you would see [b]Publish:[/b] menu item. You could create as many profiles you want using this, let us see how to create a new profile now. Click on new profile option. This will launch profile screen as shown below. [i]Open your Publishing XML and have it ready reference. [/i] [img]http://www.hostasp.net/articles/images/visual-studio-remote-deployment/vs-2010-publishing-profilesetup.PNG[/img] a) Name your profile b) Select publishing method as "Web Deploy" [b]c) Find publishUrl attribute in downloaded XML file and copy its value to Service URL field. (suffix with msdeploy.axd - refer figure above)[/b] d) On Site/application field type your domain name (or) copy msdeploySite attribute value from XML file. e) Leave untrusted certificate field checked. f) Configure user name and password that your created in Web publishing tab on your hosting space ( you could refer userName and userPWD attribute from your downloaded publishing XML). Click on Save button to save your profile. (See top right corner of the profile window) Ok, we just saw how we will have to setup the publish profile. The next 2 steps 5 & 6 will be about how you want to make this publish process work for your website contents and MS SQL db. [img]http://www.hostasp.net/articles/images/visual-studio-remote-deployment/vs-2010-publishing-menu.PNG[/img] [b]Step 5. Setting up Publish Web in Visual Studio[/b] Here in this screen you would determine what contents are to be deployed on your remote website. [b]We will NOT concentrate on Packing-part instead we’re going to deploy directly to your hosting space. [/b]As you see on the image, you can determine whether only runtime components is required ( advisable for release version / production environment) (or) all files of your project and then you can also choose whether to exclude app_data folder and so on. [i]Do not forget to “check” Include all databases configured in Package / Publish SQL tab if you’re using SQL server database for your web application project.[/i] [img]http://www.hostasp.net/articles/images/visual-studio-remote-deployment/vs-2010-publish-web.PNG[/img] [b]Step 6. Setting up Publish SQL in Visual Studio[/b] You will be using this Publish SQL screen for setting up DB configuration. As you see in this screen, you will select the databases entries you want publish, you could also import directly from your web.config. Then you will need to configure your remote database connectivity for publishing your SQL and data. [i]Refer to your downloaded Publish XML content for destination SQL server name, your database and its credentials.[/i] The connection string as you see on the image will be generated, after successful configuration of destination database setup. (You could copy this connection string and update your Web.config HostASP on hosting space.) Further down in this screen you could see scripting options that determine what to publish to remote DB (Schema / Data / both). [img]http://www.hostasp.net/articles/images/visual-studio-remote-deployment/vs-2010-publish-SQL.PNG[/img] To setup HostASP remote database connection string, click on "..." button on Destination Database Information. This will launch configuration setup for remote database as shown below. You would refer to downloaded Publish XML to configure this part. [img]http://www.hostasp.net/articles/images/visual-studio-remote-deployment/vs-2010-database-connectionstring.PNG[/img] [b]Step 7. Publishing your Website.[/b] Hurray, you're done with required setup for publishing your Web project. Now it is time to publish your website. On your Visual Studio menu bar select your publishing profile and click on “Publish web” (or) alternatively you could right click on your project name and select “Publish” action. This will copy all your web project contents, SQL database information as per configured setup in Visual studio. [img]http://www.hostasp.net/articles/images/visual-studio-remote-deployment/vs-2010-publishing.PNG[/img] After you get your web project successfully published, you would need to update your connection string in web.config on your hosting space. You could see the connection string that you need in Step 6. above. This will make your Website point to your HostASP database. You can now launch your sample MVC website that you just published. [img]http://www.hostasp.net/articles/images/visual-studio-remote-deployment/vs-2010-mvc-application.PNG[/img] Good luck, if you have any queries contact HostASP support.]]> <a href="/forums/tags/webmatrix-publishing.html">WebMatrix Publishing</a>, <a href="/forums/tags/web-deploy.html">Web Deploy</a>, <a href="/forums/tags/visual-studio.html">Visual Studio</a>, <a href="/forums/tags/visual-studio-publishing.html">Visual Studio Publishing</a> Tue, 22 Nov 2011 02:58:13 +0000 What is a content management system (CMS)? https://www.hostasp.net/forums/question/what-is-a-content-management-system-cms.html https://www.hostasp.net/forums/question/what-is-a-content-management-system-cms.html Sat, 15 Oct 2011 17:46:38 +0000 How to publish a web application using WebMatrix Web Deploy https://www.hostasp.net/forums/question/how-to-publish-a-web-application-using-webmatrix-web-deploy.html https://www.hostasp.net/forums/question/how-to-publish-a-web-application-using-webmatrix-web-deploy.html Publish -> Settings and Import the file by clicking on "Import Publish Settings" this would default all the required fields with server information that you have on Publishing XML. Publishing XML supports both FTP method and Web deploy method. Let us see deployment using Web Deploy method. You would also notice that server name with https prefix, we have setup this URL with SSL certificate so that you can safely deploy your website over internet. One more thing you would notice is "Remote connection string not required" against this Movies DB it is because this MoviesDB application uses integrated SQL Compact Databases .SDF and so you would not require an explict or external MS SQL Server access on your hosting account, if your web application uses MSSQL or MySQL server then it would be filled in with information by default from Publishing XML. Ok, now that you have imported the settings lets Click on validate settings to connect to the server. [img]http://www.hostasp.net/articles/images/webmatrix/webmatrix-import-publishingxml_03.png[/img] You have done your validation part and is successful, the information you have got on Publish setting is fine and able to connect to server. Click on save button to save this setting on your project. [img]http://www.hostasp.net/articles/images/webmatrix/webmatrix-publishing-validatesettings_03.png[/img] [b]Step 3: Publishing[/b] You are done with the server validation part, let us now start publishing website. Click on Publish. This will perform compatibility check with the server to see you web application is compatible with the server / web hosting account. [img]http://www.hostasp.net/articles/images/webmatrix/webmatrix-publish-compatibilitysettings_03.png[/img] Accept and proceed with compatibility check with the server. WebMatrix will upload few sample / test files to the server to check the server requirement for your website. [img]http://www.hostasp.net/articles/images/webmatrix/webmatrix-compatibilitychecking-uploadingfiles_03.png[/img] You would then see WebMatrix validating the server requirement, for this MoviesDB website you would need ASP.NET setup and support for simple HTML on server. It is validated and WebMatrix found them available on our Web hosting account. Click on Continue to proceed with deployment. [img]http://www.hostasp.net/articles/images/webmatrix/webmatrix-publish-compatibility-results_03.png[/img] The Publish Preview dialog box appears. [img]http://www.hostasp.net/articles/images/webmatrix/webmatrix-publish-preview_03.png[/img] Review the list of files and databases and make changes if necessary. For example, you might want to clear check boxes under Changed Files to exclude some files. [quote]Important: If you're publishing a database and the database already exists in the hosting provider's site, whatever is in that database will be overwritten. [/quote] Click Continue. WebMatrix publishes the website, showing status messages in the navigation bar at the bottom of the screen. The publishing process is done in the background, which means you can continue to work in WebMatrix while it is publishing. [img]http://www.hostasp.net/articles/images/webmatrix/webmatrix-publishing-yourwebhosting_02.png[/img] In the notification bar at the bottom of the screen, you can click Log to see a detailed log of the publishing activity. [img]http://www.hostasp.net/articles/images/webmatrix/webmatrix-deployment-log_03.png[/img] If you see something in the log that catches your attention during the publishing process, you can click Pause Scroll to go back and examine what you saw more carefully. When the publishing process is complete, the notification bar lets you know: [img]http://www.hostasp.net/articles/images/webmatrix/webmatrix-publishing-complete_02.png[/img] [b]Step 4: Review Site[/b] To verify that publishing was successful, browse to the site. If you published a database, make sure you try any pages that display data from the database. [quote]Note: If your site has a Web.config file, the copy on your web hosting account on web server might look slightly different. For example, if you published a SQL Server database, it will have the our web hosting SQL connection string value so that the published site will use the database at the hosting provider.[/quote] [img]http://www.hostasp.net/articles/images/webmatrix/webmatrix-review-websites_03.png[/img] In the next Topic we will show how to download [b]DotNetNuke[/b] using WebMatrix Gallery, and set them up locally, test and then deploy remotely on a server.]]> <a href="/forums/tags/webmatrix-deployment.html">WebMatrix Deployment</a>, <a href="/forums/tags/webmatrix.html">WebMatrix</a>, <a href="/forums/tags/webmatrix-publishing.html">WebMatrix Publishing</a> Sun, 25 Sep 2011 19:57:32 +0000 Creating a new web page using WebMatrix IDE https://www.hostasp.net/forums/question/creating-a-new-web-page-using-webmatrix-ide.html https://www.hostasp.net/forums/question/creating-a-new-web-page-using-webmatrix-ide.html <a href="/forums/tags/webmatrix.html">WebMatrix</a> Fri, 23 Sep 2011 22:12:34 +0000 Getting Started with WebMatrix - Part-2 WebMatrix Create Website from Template https://www.hostasp.net/forums/question/getting-started-with-webmatrix-part-2-webmatrix-create-website-from-template.html https://www.hostasp.net/forums/question/getting-started-with-webmatrix-part-2-webmatrix-create-website-from-template.html <a href="/forums/tags/webmatrix-deployment.html">WebMatrix Deployment</a>, <a href="/forums/tags/webmatrix.html">WebMatrix</a>, <a href="/forums/tags/webmatrix-publishing.html">WebMatrix Publishing</a> Thu, 22 Sep 2011 11:34:46 +0000