I created a proyect (homepage) with MVC4 entity framework C# V2010, sql server. I tested this in IIS and it works great. Now I need to publish it in a hosting company,
Ålcom (http://www.alcom.ax/).
But my problem is that I don t know how can I do this. When I m in a Publish web/profile release configuration, I choose "Web Deploy" and then I always have problem with Service URL and Site/application. The help me this link http://msdn.microsoft.com/en-us/library/dd465337(v=vs.100).aspx but
now I don t know how can I continue with this.
So, how can I publish my proyect? Does anybody have any hint?
You would publish your site using the FTP method. Your database would be migrated via sql scripts you run on the hosting package. Your site control panel should have some form of SQL management studio or some way for you to interact with your database
server.
I think you need to ensure that you have created a web publishing profile like the how-to shows for a hosting company about half-way down:
To create a publish profile
1. In the Build menu, click Publish projectname.
The Publish Web dialog box is displayed.
2. In the Publish profile box, enter a name for the new profile.
3. In the Publish method drop-down list, select Web Deploy.
For information about how to use one of the other methods (FTP, File system, or FPSE), see How to: Deploy a Web Application Project Using One-Click Publish Without Web Deploy.
4. Enter a value for Service URL.
If you are publishing to the development computer (that is, to your computer), enter localhost or the name of your computer. You must have administrative rights on your computer.
If you are publishing to a server on your company's network, enter one of the following URLs:
http://ServerName
http://ServerName/msdeployagentservice
The destination server must be set up for the Web Deployment Agent Service (MSDepSvc, also known as Remote Agent service), and you must have administrative rights on the destination server. For information about how to set up the destination server, see Web Deploy Remote Service on the Microsoft TechNet Web site.
If you are publishing to a hosting company, the required value will be provided by the company. The value can be entered in one of the following formats:
◦ https://HostingCompanyURL:8172/msdeploy.axd (for example, https://contoso.com:8172/msdeploy.axd)
◦ https://HostingCompanyURL (for example, https://contoso.com)
◦ HostingCompanyURL (for example, contoso.com)
The hosting company must set up the destination server for the Web Management service (WMSvc, also known as Web Management Service, which is used with the Web Deployment Handler). For information about how to set up the destination server, see Configuring the Web Deployment Handler on the Microsoft TechNet Web site. This method is typically used by hosting companies, but it can also be used on your internal company network. If you use this method, you do not have to have administrative rights on the destination server.
5. Enter a value for Site/application.
If you are publishing to the development computer or to a server on your company's network, enter the site and application name as they appear in IIS Manager. For example, if you are publishing to the default Web site and if the application name is MyApplication, enter Default Web Site/MyApplication.
If you are publishing to a hosting company, the required value will be provided by the company. The value will typically be either a domain name (for example, contoso.com) or a domain and application name (for example, contoso.com/MyApplication).
6. If you are not deploying IIS settings, select the Mark as IIS application on destination check box.
This option is not shown if you are deploying IIS settings, because the Web project's IIS application status is one of the IIS settings that is deployed.
You typically select this check box when the Include all IIS settings as configured in IIS Manager check box on the Package/Publish Web tab of the project Properties page is cleared. There are very few scenarios in which you would not want to deploy a Web project as an IIS application on the destination Web server. For example, suppose that the project that you are deploying is not actually a Web application but only contains virtual directory content, such as images, XML files, and so forth. In that case, you might want to clear this check box so that the deployed project is not set up as an IIS application.
7. If you want one-click publish to delete files on the destination server that have no matching files in the Web project, clear the Leave extra files on destination check box.
The publish process deletes files on the destination server under the following circumstances:
◦ You clear the Leave extra files on destination option.
◦ The files already exist on the destination server in the publish location or in any subfolders.
◦ The same files do not exist in the same folders in the Web application project.
Note:
If you clear the Leave extra files on destination check box, and if you have a Web application in a subfolder when you deploy a project to the root folder, the subfolder will be deleted. For example, suppose that one project is for your main site at contoso.com and another project is for a blog at contoso.com/blog. The blog application is in a subfolder. If you clear the Leave extra files on destination check box, the blog application will be deleted when you deploy the main project.
8. If you are publishing to a hosting company and the hosting company advises you to allow untrusted certificates, select the Allow untrusted certificate check box.
Security note
If you select this check box, make sure that you do not make any typographical errors in the Service URL box. Otherwise you could send your files to a malicious Web site that has a URL similar to the one that you are deploying to.
9. In the User name and Password boxes, enter credentials for an account that has sufficient authority to perform deployment tasks on the destination Web server.
If you are publishing to a hosting company, this information will be supplied by the hosting company.
10. Click the Save button to save the profile.
All what you have to do is to publish through FTP your files.
For database, you will need to script your database using SQL Management Studio and to create a db using your hosting provider's control panel. Connect to this new db through Sql Management Studio and execute the generated script.
Finally, modify your connectionstring in your web.config
I can make a suggestion on a provider that does it all, ASP.NET, PHP, MVC, etc. I use Arvixe for my hosting and I'm very pleased. They are also one of the most affordable hosting packages I've seen and they are extremely helpful.
None
0 Points
3 Posts
How can I publish my project (VS2010 MVC4) to a hosting company?
Feb 12, 2014 11:41 AM|ExtraAsp|LINK
Hi!
I created a proyect (homepage) with MVC4 entity framework C# V2010, sql server. I tested this in IIS and it works great. Now I need to publish it in a hosting company, Ålcom (http://www.alcom.ax/).
But my problem is that I don t know how can I do this. When I m in a Publish web/profile release configuration, I choose "Web Deploy" and then I always have problem with Service URL and Site/application. The help me this link http://msdn.microsoft.com/en-us/library/dd465337(v=vs.100).aspx but now I don t know how can I continue with this.
So, how can I publish my proyect? Does anybody have any hint?
Thanks in advance !!!
All-Star
35218 Points
9955 Posts
Moderator
Re: How can I publish my project (VS2010 MVC4) to a hosting company?
Feb 12, 2014 11:48 AM|bbcompent1|LINK
You would publish your site using the FTP method. Your database would be migrated via sql scripts you run on the hosting package. Your site control panel should have some form of SQL management studio or some way for you to interact with your database server.
All-Star
35218 Points
9955 Posts
Moderator
Re: How can I publish my project (VS2010 MVC4) to a hosting company?
Feb 12, 2014 11:56 AM|bbcompent1|LINK
I think you need to ensure that you have created a web publishing profile like the how-to shows for a hosting company about half-way down:
http://msdn.microsoft.com/en-us/library/dd465337(v=vs.100).aspx
Contributor
4240 Points
3250 Posts
Re: How can I publish my project (VS2010 MVC4) to a hosting company?
Feb 12, 2014 05:30 PM|smiling4ever|LINK
All what you have to do is to publish through FTP your files.
For database, you will need to script your database using SQL Management Studio and to create a db using your hosting provider's control panel. Connect to this new db through Sql Management Studio and execute the generated script.
Finally, modify your connectionstring in your web.config
HTH
Member
60 Points
42 Posts
Re: How can I publish my project (VS2010 MVC4) to a hosting company?
Feb 12, 2014 11:53 PM|Ben_HFL|LINK
Hi ExtraASP,
You just need to upload all your files to your root folder. If you use web deploy method, you need to ask the configuration from your hosting provider. Please just read tutorial at http://aspnetmvceuropeanhosting.hostforlife.eu/post/European-ASPNET-MVC-3-Hosting-Deploying-ASPNET-MVC-3-Application-on-Shared-Hosting-Environment.aspx. Hope this help
Affordable ASP.NET Hosting Solution in Europe
None
0 Points
3 Posts
Re: How can I publish my project (VS2010 MVC4) to a hosting company?
Feb 13, 2014 06:43 AM|ExtraAsp|LINK
Thank bbcompent1!
I already did what you suggest, but it does not work for me. Now the hosting company tell me that their servers do not support Asp.net.
Now as I understand it, I can not publish my webb through them, That's right?
They use FTP to publishing. This does not to help me to publish it through them?
Thank again.
Regards.
None
0 Points
3 Posts
Re: How can I publish my project (VS2010 MVC4) to a hosting company?
Feb 13, 2014 06:53 AM|ExtraAsp|LINK
Thank all of you!
Anyone have any suggestions?
Thank again.
Regards.
Member
60 Points
42 Posts
Re: How can I publish my project (VS2010 MVC4) to a hosting company?
Feb 13, 2014 08:15 AM|Ben_HFL|LINK
It wont work if your provider doesnt support asp.net. The solution is you need to find the provider that support asp.net hosting
Affordable ASP.NET Hosting Solution in Europe
All-Star
35218 Points
9955 Posts
Moderator
Re: How can I publish my project (VS2010 MVC4) to a hosting company?
Feb 19, 2014 08:40 AM|bbcompent1|LINK
I can make a suggestion on a provider that does it all, ASP.NET, PHP, MVC, etc. I use Arvixe for my hosting and I'm very pleased. They are also one of the most affordable hosting packages I've seen and they are extremely helpful.