ASP.NET Web Deployment using Visual Studio: Deploying to Test

First Last 1 Reputation point
2021-10-04T22:13:09.167+00:00

I want to test publishing my ASP.Net web app from my development environment (it uses the default IIS Express that comes with VS 2017) to a QA environment that has IIS (like a Hoster will have). My goal is 2-fold - to test deploying my web app to IIS as well as QA test the web app in IIS. The web app will eventually be deployed to a 3rd party vendor(Hoster). I do not want to use AZURE.

I’m trying to do this tutorial.
https://learn.microsoft.com/en-us/aspnet/web-forms/overview/deployment/visual-studio-web-deployment/deploying-to-iis

It states: "an app could run and test correctly in Visual Studio but fail when it's deployed to IIS".

So, I want to test deploying the web app to IIS as well as QA test the web app in IIS.

However, the example that is out there is obsolete now. It no longer allows for the download of the Contoso University starter project. So I cannot do the tutorial to deploy to IIS.

I can't find something similar.

Any suggestions?

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,547 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Yijing Sun-MSFT 7,091 Reputation points
    2021-10-05T01:45:55.257+00:00

    Hi @First Last ,
    The Contoso University starter project is a project for testing. So I suggest you could create a new simple project by yourself.The content of the project could only includes of "Hello World".It's ok.

    Best regards,
    Yijing Sun


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our  documentation  to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. Sam of Simple Samples 5,546 Reputation points
    2021-10-05T04:43:49.663+00:00

    Do you want to deploy to test or do you want to test publishing? Those are different.

    If you want to create a web app then test it then you do not need to deploy it. You can use the server provided by Visual Studio to test it. Or in IIS you can make the app a website and test using IIS. Then that web app can be deployed wherever it needs to be deployed to.

    Do you want to try deploying a website just to understand how it works or something like that? As you indicate, you can use Azure for that. If you do not want to pay for Azure then there are a few other possibilities, but I am not aware of any host that offers free hosting. You can get a free trial for Azure.

    I created Simple Samples Network when GearHost was allowing free websites but they have discontinued the free option. They will someday remove that website.

    Do you want to try using web deploy locally just to learn about it without paying for a host? I assume that is possible and if that is what you are trying to do then you need to clarify it.

    Web Deploy is older technology. Many organizations and developers are using Git and they use hosts that can deploy from GitHub without using Web Deploy.


  3. Sam of Simple Samples 5,546 Reputation points
    2021-10-06T04:49:00.183+00:00

    This is another discussion that starts simple then frustratingly goes in many directions. I give up.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.