This project has moved and is read-only. For the latest updates, please go here.

Getting error "The virtual path '/' maps to another application, which is not allowed"

Apr 6, 2016 at 9:08 PM
I see this error reported before in 2013 and the last comment was that it was fixed. We have version 2.5 loaded and are still getting this error when trying to send email. The issue is because the email send is being done on a background thread and the httpcontext cannot be obtained. I tried the fix mentioned here:

In regards to the view engine, and it got further, but errored somewhere in the razorengine code.

Our app is installed on a virtual server in IIS.

Any idea how to get this working?

Apr 10, 2016 at 5:23 AM
TicketDesk 2.5 generates the email content from the view engine during the request that generated the notification event; so this happens on the request thread. The message sending operation will run either on a background thread or in another process (azure), but at that point the content is just a string, and no dependency on is even present in the assemblies that handle the message scheduling and delivery.

So, if you are seeing this error in TD 2.5 I'm at a loss to explain why. My next major task is to finish the remaining notification features and re-visit the entire process top to bottom. We do have a number of reports of notification issues, and there is a whole feature set around message diagnostics that still have to be implemented. I'll also make sure this is tested in stand-alone IIS instances as both a top level site and a sub-application.