© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
22 replies
Davaaron

❔ E2E Test - Start MVC project

Hi,

im using a testing tool for E2E testing and wondered how to get a MVC project started so the tool can visit the URL of the application and do some stuff?
I call this in the constructor of the test class
        OtherProjRefNs.Program.CreateWebHostBuilder(null)
            .UseStartup<Startup>()
            .Build()
            .Start();
        OtherProjRefNs.Program.CreateWebHostBuilder(null)
            .UseStartup<Startup>()
            .Build()
            .Start();

but when I navigate to the URL within a browser after the
Start()
Start()
method, it says the page is not reachable. How can I start my MVC project?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

.NET MVC Project Issue
C#CC# / help
17mo ago
.NET MVC Project Help!
C#CC# / help
17mo ago
❔ Deploying an MVC project
C#CC# / help
3y ago
❔ Share problem on mvc project
C#CC# / help
4y ago