Quantcast
Channel: URL Rewrite Module
Viewing all articles
Browse latest Browse all 2482

URL Rewrite: An operation was attempted on a nonexistent network connection. (0x800704cd)

$
0
0

Hi, 

Need help with URL Rewrite. Been having the following errors for different applications on the same platform we are trying to expose:

1st Error

<div class="content-container"> <div class="hidden" id="section_detail">
<div id="section_detail_298_details">
(0x800704cd)
</div>
<div class="duration">0 ms</div> <div class="severity-verbose">Verbose</div>299. -OUTBOUND_RULE_EVALUATION<div id="section_detail_299_details">
RuleNameReverseProxyOutboundRule1
PreconditionResponseIsHtml1
PatternSyntaxRegex
Pattern^http(s)?://k2.denallix.com/(.*)
Negatefalse
StopProcessingfalse
HasFiltertrue
HasConditionsfalse
ActionTypeRewrite
ActionValuehttps://k2.reverseproxy.com/{R:2}
EvaluationsPerformed15
EvaluationsSucceeded0
</div>
<div class="duration">0 ms</div> <div class="severity-warning">Warning</div>300. -MODULE_SET_RESPONSE_ERROR_STATUS<div id="section_detail_300_details">
ModuleNameRewriteModule
NotificationSEND_RESPONSE
HttpStatus500
HttpReasonURL Rewrite Module Error.
HttpSubStatus52
ErrorCodeAn operation was attempted on a nonexistent network connection. (0x800704cd)
ConfigExceptionInfo
</div>
<div class="duration">0 ms</div> <div class="severity-verbose">Verbose</div>301. -NOTIFY_MODULE_END<div id="section_detail_301_details">
ModuleNameRewriteModule
NotificationSEND_RESPONSE
fIsPostNotificationEventfalse
NotificationStatusNOTIFICATION_FINISH_REQUEST
</div>
</div> </div>

Second Error

<div class="content-container"> <div class="hidden" id="section_detail">
125.-GENERAL_FLUSH_RESPONSE_START<div id="section_detail_125_details">
</div>
<div class="duration">0 ms</div> <div class="severity-informational">Informational</div>126. -GENERAL_RESPONSE_HEADERS<div id="section_detail_126_details">
HeadersCache-Control: no-cache Pragma: no-cache Content-Type: text/xml; charset=utf-8 Expires: -1 Location: https://k2.reverseproxy.com/Designer/Utilities/AJAXCall.ashx?method=GetSessionDetails&_=1554758933016 Vary: Accept-Encoding P3P: CP='NON DSP COR' Set-Cookie: .ASPXAUTH=; expires=Mon, 11-Oct-1999 23:00:00 GMT; path=/; HttpOnly Set-Cookie: .ASPXAUTH=; expires=Sun, 08-Apr-2018 21:28:58 GMT; path=/ Set-Cookie: .K2AUTH=; expires=Sun, 08-Apr-2018 21:28:58 GMT; path=/ Set-Cookie: XSRFCookie=; expires=Sun, 08-Apr-2018 21:28:58 GMT; path=/ Set-Cookie: FedAuth=; expires=Sun, 07-Apr-2019 21:28:58 GMT; path=/ X-UA-Compatible: IE=11,IE=10,IE=9,IE=8 X-XSS-Protection: 1 X-Content-Type-Options: NoSniff X-Powered-By: ARR/3.0
</div>
<div class="duration">0 ms</div> <div class="severity-verbose">Verbose</div>127. -GENERAL_RESPONSE_ENTITY_BUFFER<div id="section_detail_127_details">
Buffer<html><head><title>Object moved</title></head><body> <h2>Object moved to <a href="https://k2.reverseproxy.com/Designer/Utilities/AJAXCall.ashx?method=GetSessionDetails&amp;_=1554758933016">here</a>.</h2> </body></html> <Exception ExtendedDetail="T" Title="Error" Description="An exception has occurred."><Type Name="Type">System.UnauthorizedAccessException</Type><Message Name="Message">The Anti-Cross Site Request Forgery token value is incorrect.</Message><Source Name="Source"><StackTrace Name="Stack Trace" /></Source></Exception>
</div>
<div class="duration">0 ms</div> <div class="severity-informational">Informational</div>128. -GENERAL_FLUSH_RESPONSE_END<div id="section_detail_128_details">
BytesSent1366
ErrorCodeThe operation completed successfully. (0x0)
</div>
</div> </div>

Below is config used. This has been tested on my dev machine and works perfectly, but gives these errors when deployed to production where the IIS rewrite server is in the dmz. 

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<outboundRules>
<clear />
<rule name="RestoreAcceptEncoding" preCondition="NeedsRestoringAcceptEncoding">
<match serverVariable="HTTP_ACCEPT_ENCODING" pattern="^(.*)" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="true" />
<action type="Rewrite" value="{HTTP_X_ORIGINAL_ACCEPT_ENCODING}" />
</rule>
<rule name="ReverseProxyOutboundRule1" preCondition="ResponseIsHtml1">
<match filterByTags="A, Form, Img" pattern="^http(s)?://k2.denallix.com/(.*)" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="true" />
<action type="Rewrite" value="https://k2.reverseproxy.com/{R:2}" />
</rule>
<preConditions>
<preCondition name="ResponseIsHtml1">
<add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" />
</preCondition>
<preCondition name="NeedsRestoringAcceptEncoding">
<add input="{HTTP_X_ORIGINAL_ACCEPT_ENCODING}" pattern=".+" />
</preCondition>
</preConditions>
</outboundRules>
<rules>
<rule name="ReverseProxyInboundRule1" stopProcessing="true">
<match url="(.*)" />
<serverVariables>
<set name="HTTP_X_ORIGINAL_ACCEPT_ENCODING" value="{HTTP_ACCEPT_ENCODING}" />
<set name="HTTP_ACCEPT_ENCODING" value="" />
</serverVariables>
<action type="Rewrite" url="https://k2.denallix.com/{R:1}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>

Thanks. 


Viewing all articles
Browse latest Browse all 2482

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>