View Full Version : Links to ExtNet resources not being generated correctly when running the site in a subdirectory in IIS

Nov 03, 2020, 11:04 AM
I've created a sample website using the 'Ext.NET Classic Mvc Application' project template. When I run this website using Development-Time IIS debugging support, links to the core ExtNET scripts are not resolved relative to the application virtual root path. Instead, they are resolved relative to the website root path. My website is running at the location http://localhost/extnetcoresample, so I would expect links to the core ExtNET scripts to be generated as http://localhost/extnetcoresample/extnet/. Instead, they are being generated as http://localhost/extnet/ which isn't resolvable. I would have expected the Ext.NET framework to be able to automatically take account of the application virtual root path when generating these links, as it did with the legacy .NET Framework versions of the product. I did try setting the base path in my Startup.cs file by adding a call to
app.UsePathBase("/ExtNetCoreSample"); in the
Configure(IApplicationBuilder app, IWebHostEnvironment env) method, but this didn't have any effect. Please can you advise whether this is a bug, or if there is something else I need to do when running a website from a subfolder?

Nov 03, 2020, 2:08 PM
I believe the following thread should help, see


Nov 03, 2020, 2:25 PM

Thanks, I was able to get things working by setting the RequestRoot property as per the other post. I'll await the next release where this is fixed.