I've an application developed in Asp.NET MVC, and I'm using the Framework Postal MVC, that is used to send Views as E-mail.
It was working properly, without problem, however, today, started to show me the following message:
The virtual path '/' maps to another application, which is not allowed.
It happens only when I try to use SendAsync (async method to send e-mail), however, it was working before without problem. Furthermore, if I use Send (sync method to send e-mail) it work.
I didn't change anything on the Properties, code, etc.
The most important thing that I've done that I remember, was to Publish the application, but, in the code or configuration, I didn't change nothing more.
It looks like that is losing the HttpContext when doing Async.
-- The Async method started to work again when I added the following parameter in my Web.config:
<add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" />