Developer forum

Forum » Development » Why is Server.Request not working?

Why is Server.Request not working?

Charlotte Mogensen
Reply

Hi,

I want to user Server.Request.webapid or Global.Request.webadid on this page: http://skanderborgkommune.prod.bleaudev.dk/borger/arbejde-og-ledighed/visning-af-ledige-stillinger?WebAdId=28714 but it is not working. I get this: 

<Server.Request.404_x003B_http.skanderborgkommune.prod.bleaudev.dk.80borgerarbejde-og-ledighedvisning-af-ledige-stillinger_x003F_webadid>28714</Server.Request.404_x003B_http.skanderborgkommune.prod.bleaudev.dk.80borgerarbejde-og-ledighedvisning-af-ledige-stillinger_x003F_webadid>

What could be wrong - something on the server?

Kr/Charlotte


Replies

 
Nicolai Høeg Pedersen
Reply

That was difficult to figure out!

It is because you are using extension less urls without having the right settings on the server - you need to catch all requests in IIS.

So you hit the 404 handler of Dynamicweb (Admin/Public/404.aspx) and that is actually the one serving the page. See dump 1.

So you either have to switch to .aspx urls or fix the issue in IIS. You need to run in integrated mode and make sure the right extensionless url handler is setup. See dump 2.

And sometimes - setting up the handler does not work. I do not know why - so creating a new website can be the solution.

BR Nicolai

Capture.PNG Capture2.PNG

 

You must be logged in to post in the forum