Developer forum

Forum » CMS - Standard features » Weird server (Win2k8 R2) - no extensionless url request and repositories not working

Weird server (Win2k8 R2) - no extensionless url request and repositories not working

Kevin Steffer
Kevin Steffer
Reply

Hi I have this weird server that won't work with extensionless URLs and the new Repositories won't show it's index instances, index builders, and fields.

I think the problem is related to eachother.

Do you know what could cause this issue?

The server has .NET Framework 4.5.1 installed

And the solution that is tested runs 8.8.1.31

 

Content version 20.8.1.31
Assembly versions
Dynamicweb.dll 8.8.1.31
8.8.1.31 Dynamicweb, Version=8.0.0.0, Culture=neutral, PublicKeyToken=null
Dynamicweb.Admin.dll 8.8.1.31
Dynamicweb.Admin, Version=8.0.0.0, Culture=neutral, PublicKeyToken=null
Dynamicweb.Controls.dll 8.8.1.31
Dynamicweb.Controls, Version=8.0.0.0, Culture=neutral, PublicKeyToken=null
Build date ma, 28 nov 2016 23:14
.NET Runtime version v4.0.30319 (4.0.30319.18408) (NP: 18408)
Application bit version 64Bit
OS type AMD64 (Microsoft Windows NT 6.1.7600.0)
Server time

to, 15 dec 2016 12:06:22 Romance Standard Time (+01:00)
to, 15 dec 2016 11:06:22 UTC

IIS 

Version Microsoft-IIS/7.5

Replies

 
Dennis Skov
Reply

Hi Kevin

I have seen this problem once before on IIS 7.5. The problem was solved by enabling “invoke only for requests to asp.net applications or managed handlers” on the system.web.routing.urlroutingmodule under the IIS modules.

If it doesn’t solve your problem, please let me know.

 

 

URLROUTING.png
 
Dennis Skov
Reply
 
Kevin Steffer
Kevin Steffer
Reply

It was enabled.

But I got it up and running by doing the following steps found on guides from stackoverflow

1. Copied System.Web.Routing.dll from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ into the application bin folder

2. Added this to web.config

<system.webServer>
  <handlers>
    <add name="UrlRoutingHandler" preCondition="integratedMode" verb="*" path="UrlRouting.axd" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
  </handlers>
  <modules runAllManagedModulesForAllRequests="true">
    <remove name="UrlRoutingModule" />
    <add name="UrlRoutingModule" type="System.Web.Routing.UrlRoutingModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
  </modules>
  <system.webServer>

 
Nicolai Pedersen
Reply

Aha, my dear Watson. Elementary!!

Thanks for sharing the solution - I remember we struggled with this one at some point. Not even a aspnet_regiis /i helped on the matter.

BR Nicolai

 
Kevin Steffer
Kevin Steffer
Reply

Look no further,

I found an official hotfix on this problem

https://support.microsoft.com/en-us/help/980368/a-update-is-available-that-enables-certain-iis-7.0-or-iis-7.5-handlers-to-handle-requests-whose-urls-do-not-end-with-a-period

Nothing further than applying the hotfix and restart the server is required, and it works like a charm :)

 
Nicolai Pedersen
Reply

Nice, thanks for sharing. Now we just need to get rid of old W2k8 servers :-)

 

You must be logged in to post in the forum