Open Closed

Error on debug in iis #7456


0
willignicolas created

Hi,

I have just merged our asp.net core + Jquery app with the latest version 7.1.0.

I can debug my app with iis express but the app exit with iis. (Ok before the merge)

There is the last logs on visual output :

The program '[13860] w3wp.exe' has exited with code -42 (0xffffffd6). The program '[13860] w3wp.exe: Program Trace' has exited with code 0 (0x0).

I can see 2 error in this logs :

'w3wp.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.2.5\System.Threading.ThreadPool.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. EventSource Error: ERROR: Exception during construction of EventSource System.Transactions.TransactionsEventSource: Fonction incorrecte 'w3wp.exe' (CoreCLR: clrhost): Loaded 'C:\Users\nicolas.willig.nuget\packages\system.text.encoding.codepages\4.5.1\runtimes\win\lib\netcoreapp2.0\System.Text.Encoding.CodePages.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'w3wp.exe' (CoreCLR: clrhost): Loaded 'C:\Users\nicolas.willig.nuget\packages\system.runtime.compilerservices.unsafe\4.5.2\lib\netcoreapp2.0\System.Runtime.CompilerServices.Unsafe.dll'. Module was built without symbols. 'w3wp.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.2.5\Microsoft.Win32.Primitives.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'w3wp.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.aspnetcore.http.extensions\2.2.0\lib\netstandard2.0\Microsoft.AspNetCore.Http.Extensions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'w3wp.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.2.5\System.Net.WebClient.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. EventSource Error: ERROR: Exception during construction of EventSource System.Data.DataCommonEventSource: Fonction incorrecte 'w3wp.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.aspnetcore.webutilities\2.2.0\lib\netstandard2.0\Microsoft.AspNetCore.WebUtilities.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'w3wp.exe' (CoreCLR: clrhost): Loaded 'DynamicProxyGenAssembly2'.

I have try to restore nugets, delete the iis website.

I can see that before the merge on the output it's dotnet.exe and now it's w3wp.exe.

Thanks for your Help. Nicolas.


10 Answer(s)
  • 0
    maliming created

    @willignicolas

    Do you mean that you publish the application to IIS?

    If not, please try the steps below.

    1. close Visual Studio.
    2. delete all BIN & OBJ folders .
    3. test again.

    You can use the Delete-BIN-OBJ-Folders.bat file in your solution to delete them all.

  • 0
    willignicolas created

    Thanks for your Quick reply.

    I have already tested his manipulation (sorry to forget to mention that on first post) but same problème again.

  • 0
    maliming created

    Do you mean that you publish the application to IIS? Or is it Debugging IIS via VS?

  • 0
    willignicolas created

    Yes this error is in the output of VS when a debugging IIS via VS.

    After that if a start directly chrome with the website url I can see that all file in my virtual forlders have an error (dist, metronic, common) () :

    Failed to load resource: the server responded with a status of 503 (Service Unavailable)

    maybe it put you on a lead

  • 0
    maliming created

    Asp net core does not support iis virtual directory.

    See: https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/?view=aspnetcore-2.2#virtual-directories

  • 0
    willignicolas created

    I don t anderstand. All work good before the merge with the 7.1.0

    My virtual directries are only the dist metronic and Common directories and are outside the mvc website on iis. (same that before the merge)

  • 0
    maliming created

    Probably because the project has the In Process hosted mode enabled. You can remove this line of configuration in the project's csproj and try again.

        <AspNetCoreHostingModel>InProcess</AspNetCoreHostingModel>
    
  • 0
    willignicolas created

    Yes it works now.

    Thank you.

    Have you any documentation about that, to anderstand what append?

    For the virtual directories outside the mvc website, I have just see on the beginning of our project that files on common, dist and metronic folders are searched on the root of iis (ex: http://localhost/dist/...) so if I not create virtual directory there are not finded in mvc website.

    Maybe I have not pointed the good solution?

    Thanks again for your help now I'm on the same working situation before the merge with the 7.1.0.

    Nicolas

  • 0
    maliming created

    I usually use IIS express or debug using the dotnet process. I also didn't find documentation related to debugging InProcess hosted mode with IIS.

  • 0
    willignicolas created

    Ok thank you for this information.

    I continue to debug though dotnet process.

    It's works good.