Base solution for your next web application
Open Closed

VS2017 ERROR: Exception during construction of EventSource #5508


User avatar
0
stealthdev created

Hello,

I'm using the ASPNETZERO solution, and I keep getting an error when attempting to debug the solution. If I start the solution without debugging, I do not get the error shown below.

Exception Message:

Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/2.1.2/System.Threading.ThreadPool.dll'. Module was built without symbols. EventSource Error: ERROR: Exception during construction of EventSource System.Transactions.TransactionsEventSource: 1 Loaded '/root/.nuget/fallbackpackages/system.text.encoding.codepages/4.5.0/lib/netstandard2.0/System.Text.Encoding.CodePages.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/2.1.2/Microsoft.Win32.Primitives.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/2.1.2/System.Net.Sockets.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/2.1.2/System.Net.Security.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/2.1.2/System.Net.NameResolution.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. EventSource Error: ERROR: Exception during construction of EventSource Microsoft-System-Net-NameResolution: 1 EventSource Error: ERROR: Exception during construction of EventSource Microsoft-System-Net-Sockets: 1 Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/2.1.2/System.Security.Cryptography.X509Certificates.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/2.1.2/System.Security.Cryptography.Encoding.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. EventSource Error: ERROR: Exception during construction of EventSource Microsoft-System-Net-Security: 1 Loaded '/usr/share/dotnet/shared/Microsoft.NETCore.App/2.1.2/System.IO.Pipes.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Loaded '/root/.nuget/packages/microsoft.aspnetcore.http.extensions/2.1.0/lib/netstandard2.0/Microsoft.AspNetCore.Http.Extensions.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: 1

Abp package version: 3.8.2

I found the code that's throwing the exception [https://referencesource.microsoft.com/#mscorlib/system/diagnostics/eventing/eventsource.cs,98988245dd1924b3]) line:1542, but I'm not sure what the root cause is.

If any additional information is needed to help identify the error, please let me know.

Thanks!


4 Answer(s)
  • User Avatar
    0
    alper created
    Support Team

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

    you can use the Delete-bin-obj-folders.bat file in your solution to delete them all. Delete-bin-obj-folders.rar

  • User Avatar
    0
    stealthdev created

    From the error logs, we think we are having actually having Licensing issues. We emailed info@aspnetzero for help.

  • User Avatar
    0
    alper created
    Support Team

    hi,

    is it solved?

  • User Avatar
    0
    stealthdev created

    SOLVED!!!! Thanks.