hi I have developed a web application using .net mvc and WebAPI as follows: - iis

I have developed a web application using .net mvc and WebAPI as follows:
SOLUTION
|—— WEB.API Project
|—— Web Application Project
wanting to deploy to my web server. It is possible to deploy both projects on a single web site (in iis)?
Do I need to create two separate sites for the web application and web api (in iis)?

Deploy your mvc web app as an web site & add a virtual directory under that web site & point your web api. This is the way to use 2 application under an web site.

Related

VS Browser-Link & Self-Hosted Web Application

Is it possible to use VS Browser-Link together with a self-hosted web application?
I know that the Browser-Link uses SignalR. How can I add the Browser-Link feature to my web server?
Web app framework: Katana Self-Hosted
Any hints or ideas?

Is it possible to generate a build of a .NET App hosted on an Azure instance?

Current App and website environment;
ASP.NET app written in C# hosted on a Windows web server and linked to from a site hosted on a SharePoint 2010 server.
Purpose of App;
Download link calls a downloader that generates a custom signed build of the app and logs the download to a SharePoint list.
Site has been redesigned and migrating to SharePoint 2013, looking at a provider-hosted solution for the ASP.NET app and I was wondering if it is possible to generate a build with/on an Azure solution.
Thanks!
Yes is possible.
The only thing which you have remember is add in your App a clientWebPart. And configure it with url to your asp.net site.
Because when you add your app in page, you must go add how Client App Part or WebPart.

How to deploy a WebAPI application and an ASP.NET application in one web site on Azure?

I have two projects: an ASP.NET web application and a WebAPI application.
Web application uses the WebAPI application via AJAX.
To avoid cross domain problem, I want to the two projects deployed under one domain on Azure.
For example:
http://www.mycompany.com/api/products is a web api.
http://www.mycompany.com/index.html is the home page of the site, which calls the web api via AJAX.
Is it possible?
Yes, you can host multiple applications on the one site.
Go to Configuration / Virtual Applications and Directories:
Simply host your app under
/ site\wwwroot
And host your API under
/api site\wwwroot\api
And make sure your API is copied to the api sub-directory.
Make sure you tick the Application box.

Develop .net pages on sharepoint online except using visual web parts

How can I develop web pages with .net on sharepoint online. A way is using visual web parts. Is there any other way?
Thank you
You can use Visual Web Parts, if you use the Sandbox Solutions. You'll need to put code in those which that type of solution is being deprecated. Instead you should be build a SharePoint App. There are three (3) types of hosting, SharePoint hosted, Auto hosted and Provider hosted.
SharePoint hosted will generally allow you to host .js and .html/.aspx files.
Auto hosted and Provider hosted will allow you to write server side code. The different being that Provider hosted will require that you provide a web server, and Auto hosted will put a simple web site and SQL Azure database in Azure for you.
All three of these can create App Web Parts which is generally the same thing as a Visual Web Part, except that they will be using an iframe to include you web app.

Asp.Net Web Forms application deployment to Production server

What is the recommended method/tool to deploy an ASP.NET Web Forms project and/or a Database Project to production server ?
Currently I'm using VS2012 web deploy publishing feature.
According to the following MSDN article:
http://msdn.microsoft.com/en-us/library/dd394698(v=vs.110).aspx
web deploy is the recommended method/tool.

Resources