I had a Web Service running in net 3.5 (I know, so old) and I migrate it to Net 4.6. I completed the migration in local, but when I deploy the web services in the server I get an 500.19 error. I review the log event, the traces, web.config... but I can´t figure out. Please, could you help me? Please, ask me for any extra information that you need as logs, traces, specifications, web.config,....
I provide de Trace Log (please, let me know what I have to search, I am not able to recognize the relevant parts)
TRACE (relevant part)
<failedRequest url="https://XXXX.com:443/Project/services.svc/method/?number=12345678"
siteId="1570333581"
appPoolId="project_AppPool"
processId="2644"
verb="GET"
authenticationType="NOT_AVAILABLE" activityId="{80000054-0000-F100-B63F-84710C7967BB}"
failureReason="STATUS_CODE"
statusCode="500.19"
triggerStatusCode="500.19"
timeTaken="0"
xmlns:freb="http://schemas.microsoft.com/win/2006/06/iis/freb"
>
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="WWW Server" Guid="{3A2A4E84-4C21-4981-AE10-3FDA0D9B0F83}"/>
<EventID>0</EventID>
<Version>1</Version>
<Level>0</Level>
<Opcode>1</Opcode>
<Keywords>0x0</Keywords>
<TimeCreated SystemTime="2023-05-31T11:54:31.713Z"/>
<Correlation ActivityID="{80000054-0000-F100-B63F-84710C7967BB}"/>
<Execution ProcessID="2644" ThreadID="3212"/>
<Computer>hostname</Computer>
</System>
<EventData>
<Data Name="ContextId">{80000054-0000-F100-B63F-84710C7967BB}</Data>
<Data Name="SiteId">1570333581</Data>
<Data Name="AppPoolId">project_AppPool</Data>
<Data Name="ConnId">1610612819</Data>
<Data Name="RawConnId">0</Data>
<Data Name="RequestURL">https://XXXXX.com:443/project/services.svc/method/?number=12345678</Data>
<Data Name="RequestVerb">GET</Data>
</EventData>
<RenderingInfo Culture="en-US">
<Opcode>GENERAL_REQUEST_START</Opcode>
</RenderingInfo>
<ExtendedTracingInfo xmlns="http://schemas.microsoft.com/win/2004/08/events/trace">
<EventGuid>{D42CF7EF-DE92-473E-8B6C-621EA663113A}</EventGuid>
</ExtendedTracingInfo>
</Event>
The Log Event doesn´t return any relevant. Just a line saying PerfNet misconfigured. I checked with another expert and he said is not relevant.
WEB CONFIG (relevant part)
<compilation debug="true" strict="false" explicit="true">
<assemblies>
<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
</assemblies>
</compilation>
<pages enableEventValidation="false" viewStateEncryptionMode="Never" enableViewStateMac="true">
<controls>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
</controls>
<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<providerOption name="CompilerVersion" value="v3.5" />
<providerOption name="WarnAsError" value="false" />
</compiler>
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<providerOption name="CompilerVersion" value="v3.5" />
<providerOption name="OptionInfer" value="true" />
<providerOption name="WarnAsError" value="false" />
</compiler>
</compilers>
</system.codedom>
TRACE EXTENDED
<failedRequest url="https://project.xxxx.com:443/Solution/proyect.svc/getNumber/?number=12345678"
siteId="1570333581"
appPoolId="app_pool"
processId="2644"
verb="GET"
authenticationType="NOT_AVAILABLE" activityId="{8000009B-0003-FA00-B63F-84710C7967BB}"
failureReason="STATUS_CODE"
statusCode="500.19"
triggerStatusCode="500.19"
timeTaken="0"
xmlns:freb="http://schemas.microsoft.com/win/2006/06/iis/freb"
>
<EventData>
<Data Name="ContextId">{80000054-0000-F100-B63F-84710C7967BB}</Data>
<Data Name="ModuleName">CustomErrorModule</Data>
<Data Name="Notification">536870912</Data>
<Data Name="fIsPostNotification">false</Data>
</EventData>
<RenderingInfo Culture="en-US">
<Opcode>NOTIFY_MODULE_START</Opcode>
<Keywords>
<Keyword>RequestNotifications</Keyword>
</Keywords>
<freb:Description Data="Notification">SEND_RESPONSE</freb:Description>
</RenderingInfo>
<ExtendedTracingInfo xmlns="http://schemas.microsoft.com/win/2004/08/events/trace">
<EventGuid>{002E91E3-E7AE-44AB-8E07-99230FFA6ADE}</EventGuid>
</ExtendedTracingInfo>
</Event>
<EventData>
<Data Name="ContextId">{80000054-0000-F100-B63F-84710C7967BB}</Data>
<Data Name="HttpStatus">500</Data>
<Data Name="HttpSubStatus">19</Data>
<Data Name="FileNameOrURL">500.htm</Data>
</EventData>
<RenderingInfo Culture="en-US">
<Opcode>GENERAL_SEND_CUSTOM_ERROR</Opcode>
</RenderingInfo>
<ExtendedTracingInfo xmlns="http://schemas.microsoft.com/win/2004/08/events/trace">
<EventGuid>{D42CF7EF-DE92-473E-8B6C-621EA663113A}</EventGuid>
</ExtendedTracingInfo>
I tried to paste the relevant part of the web.config and the Traces, but my knowlegde is limited. Please, let me knw if you want another part.
All Trace Log All Trace Log
Many Thanks again.