ASP.NET builds corrupt URL

Bastian Windberg 1 Reputation point
2020-06-16T13:45:44.653+00:00

i get the Following error in IIS / asp.net, as you can see in the request information, he build an invalid URL(https://:443) and i dont know how to fix this.

Log Name: Application
Source: ASP.NET 4.0.30319.0
Date: 16.06.2020 11:18:18
Event ID: 1309
Task Category: Web Event
Level: Warning
Keywords: Classic
User: N/A
Computer: ****
Description:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 16.06.2020 11:18:18
Event time (UTC): 16.06.2020 09:18:18
Event ID: 056e08e5d69e4bdfa21833492033204f
Event sequence: 8955
Event occurrence: 4389
Event detail code: 0

Application information:
Application domain: /LM/W3SVC/1/ROOT/PasswordVault-1-132367505886228945
Trust level: Full
Application Virtual Path: /PasswordVault
Application Path: D:\inetpub\wwwroot\PasswordVault\
Machine name: ****

Process information:
Process ID: 5048
Process name: w3wp.exe
Account name: IIS APPPOOL\PasswordVaultWebAccessPool

Exception information:
Exception type: UriFormatException
Exception message: Invalid URI: The hostname could not be parsed.
at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
at System.Web.Util.UriUtil.BuildUriImpl(String scheme, String serverName, String port, String path, String queryString, Boolean useLegacyRequestUrlGeneration)
at System.Web.HttpRequest.BuildUrl(Func`1 pathAccessor)
at System.Web.HttpRequest.get_Url()
at CyberArk.Infra.Web.Mobile.CAHttpModuleMobile.UrlContainsMobile()
at CyberArk.Infra.Web.Mobile.CAHttpModuleMobile.context_BeginRequest(Object sender, EventArgs e)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Request information:
Request URL: https://:443/PasswordVault/auth/cyberark/default.aspx
Request path: /PasswordVault/auth/cyberark/default.aspx
User host address: 172.18.164.131
User:
Is authenticated: False
Authentication Type:
Thread account name: IIS APPPOOL\PasswordVaultWebAccessPool

Thread information:
Thread ID: 32
Thread account name: IIS APPPOOL\PasswordVaultWebAccessPool
Is impersonating: False
Stack trace: at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
at System.Web.Util.UriUtil.BuildUriImpl(String scheme, String serverName, String port, String path, String queryString, Boolean useLegacyRequestUrlGeneration)
at System.Web.HttpRequest.BuildUrl(Func`1 pathAccessor)
at System.Web.HttpRequest.get_Url()
at CyberArk.Infra.Web.Mobile.CAHttpModuleMobile.UrlContainsMobile()
at CyberArk.Infra.Web.Mobile.CAHttpModuleMobile.context_BeginRequest(Object sender, EventArgs e)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Custom event details:

Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="ASP.NET 4.0.30319.0" />
<EventID Qualifiers="32768">1309</EventID>
<Level>3</Level>
<Task>3</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2020-06-16T09:18:18.000000000Z" />
<EventRecordID>1047138</EventRecordID>
<Channel>Application</Channel>
<Computer>HLSAW651.hlb.helaba.de</Computer>
<Security />
</System>
<EventData>
<Data>3005</Data>
<Data>An unhandled exception has occurred.</Data>
<Data>16.06.2020 11:18:18</Data>
<Data>16.06.2020 09:18:18</Data>
<Data>056e08e5d69e4bdfa21833492033204f</Data>
<Data>8955</Data>
<Data>4389</Data>
<Data>0</Data>
<Data>/LM/W3SVC/1/ROOT/PasswordVault-1-132367505886228945</Data>
<Data>Full</Data>
<Data>/PasswordVault</Data>
<Data>D:\inetpub\wwwroot\PasswordVault\</Data>
<Data>HLSAW651</Data>
<Data>
</Data>
<Data>5048</Data>
<Data>w3wp.exe</Data>
<Data>IIS APPPOOL\PasswordVaultWebAccessPool</Data>
<Data>UriFormatException</Data>
<Data>Invalid URI: The hostname could not be parsed.
at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
at System.Web.Util.UriUtil.BuildUriImpl(String scheme, String serverName, String port, String path, String queryString, Boolean useLegacyRequestUrlGeneration)
at System.Web.HttpRequest.BuildUrl(Func`1 pathAccessor)
at System.Web.HttpRequest.get_Url()
at CyberArk.Infra.Web.Mobile.CAHttpModuleMobile.UrlContainsMobile()
at CyberArk.Infra.Web.Mobile.CAHttpModuleMobile.context_BeginRequest(Object sender, EventArgs e)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

</Data>
<Data>https://:443/PasswordVault/auth/cyberark/default.aspx</Data>
<Data>/PasswordVault/auth/cyberark/default.aspx</Data>
<Data>172.18.164.131</Data>
<Data>
</Data>
<Data>False</Data>
<Data>
</Data>
<Data>IIS APPPOOL\PasswordVaultWebAccessPool</Data>
<Data>32</Data>
<Data>IIS APPPOOL\PasswordVaultWebAccessPool</Data>
<Data>False</Data>
<Data> at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
at System.Web.Util.UriUtil.BuildUriImpl(String scheme, String serverName, String port, String path, String queryString, Boolean useLegacyRequestUrlGeneration)
at System.Web.HttpRequest.BuildUrl(Func`1 pathAccessor)
at System.Web.HttpRequest.get_Url()
at CyberArk.Infra.Web.Mobile.CAHttpModuleMobile.UrlContainsMobile()
at CyberArk.Infra.Web.Mobile.CAHttpModuleMobile.context_BeginRequest(Object sender, EventArgs e)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
</Data>
</EventData>
</Event>

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
35,999 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Dave Patrick 426.1K Reputation points MVP
    2020-06-16T13:57:35.973+00:00

    Asp.Net is not currently supported here on QnA. They're actively answering question in dedicated forums here.

    https://forums.asp.net/

    --please don't forget to Accept as answer if the reply is helpful--


    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows Server] Datacenter Management

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.

    0 comments No comments