Base solution for your next web application
Open Closed

"Error detail not sent by Server" #8492


User avatar
0
rucksackdigital created

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)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @rucksackdigital

    It seems like your scripts are not built correctly. Could you run npm run build command before publishing your app ?

    Thanks,

  • User Avatar
    1
    rucksackdigital created

    Thanks @ismcagdas I re-ran npm run build, did a full clean+rebuild, and that solved my issue. Appreciate it!