WebSite in Local IIS Server

Polachan Paily 226 Reputation points
2021-06-17T14:10:58.97+00:00

I am trying to create two website in Local IIS . One website is working with frameworkcore 3.1 and another one working with frameworkcore 2.1. the Website in frameworkcore 3.1 is running fine but the website frameworkcore 2.1 is not running

My computer is running with .Netcore version 5.0.3 and I have created the website developed .NetFarmeworkCore 3.1 Application and the website running fine.

I copied another published file in wwwroot \oldapp which was developed in .NetFarmeworkCore 2.1 in the same machine having .Netcore version 5.0.3.
I have installed .netcore run time 2.1 and then hosting bundle 2.1.8. But the web site is not running. The error message is being showed failed to start inet\pub\wwwroot\oldapp.dll . Also I have given the fill right to IISUSERS.

Any help would be very appreciated
Thanks
Pol

Internet Information Services
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,514 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Michael Taylor 53,726 Reputation points
    2021-06-17T15:39:03.363+00:00

    After installing the host bundling did you reset IIS and WAS so the changes would take effect?

    I'll also point out that wwwroot is the root of the default web site. Your app(s) should not be deployed there. If oldapp is your DLL then it is in the wrong place. The default website should remain IIS's default. Your app(s) should either be their own sites (using DNS or ports to differentiate) or subapps. In either case each app will reside in its own folder. Where that folder resides is irrelevant but for simple stuff within wwwroot is sufficient.


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.