Hi all,
Running v7.0.0 MVC/jQuery build.
When running through VS in IISExpress, UserFriendlyExceptions are being returned correctly. When publishing to IIS, I'm getting back the generic "Error detail not sent by Server" message. I've all setting values for <customErrors mode="xyz" />, as mentioned in other posts, as well as setting my ASPNETCORE_ENVIRONMENT environment variable, to no avail. I'm sure this is just a configuration setting as it's fine under localhost. What am I missing? I should mention I've published in debug mode, not release.
The correct response from localhost build:
{"result":null,"targetUrl":null,"success":false,"error":{"code":0,"message":"Error Message Here","details":null,"validationErrors":null},"unAuthorizedRequest":false,"__abp":true}
Response from published build:
The page cannot be displayed because an internal server error has occurred.
I have also tried setting
Configuration.Modules.AbpWebCommon().SendAllExceptionsToClients = true;
2 Answer(s)
-
0
Hi @rucksackdigital
It seems like your scripts are not built correctly. Could you run
npm run buildcommand before publishing your app ?Thanks,
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
1
Thanks @ismcagdas I re-ran npm run build, did a full clean+rebuild, and that solved my issue. Appreciate it!
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)