PDA

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



plok77
Nov 03, 2020, 12:04 PM
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?

geoffrey.mcgill
Nov 03, 2020, 3:08 PM
I believe the following thread should help, see

https://forums.ext.net/showthread.php?62998-Missing-the-application-name

plok77
Nov 03, 2020, 3:25 PM
Geoffrey

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.

Regards

Paul