I am trying to create a virtual directory (subfolder) in .net framework application. The directory is intended for .NET Core application. I need both of them to run under one domain. Currently I am using IIS Express and it is more suitable option for me than local IIS. I added the virtual directory to the .NET Framework application config. An issue I've faced is that when main .NET Framework app is making http call to the .NET core one, I am getting an error that Report Viewer (which is used in .NET Framework app) cannot be loaded for .NET Core app. Of course I don't need the Report viewer in my .NET Core app. I need to load .NET Core app separately. Could you please advice ?
new HubConnectionBuilder()
.withUrl(`${settings.NotificationServiceConnectionUrl}/${notificationSettings.hubName}`, {
accessTokenFactory: () => accessToken,
})
.withAutomaticReconnect()
.configureLogging(LogLevel.Error)
.build()
You can add a sub-application under the ASP.NET application, this sub-application is .NET Core application:
This is the code in the ASP.NET application, it will call the ASP.NET Core Web API application:
We can also directly access ASP.NET Core Web API application: