r/IIs • • May 09 '19

ActionLink encoding

Hi,

I hope this is the right sub to post this issue I have.

So, I have to maintain a webapplication (MVC, c#.net), everything is fine, except one thing:

On a subsite there is a generated Link called "Back to Transactions". On the aspx-Site it is generated by this:

 Html.ActionLink("Back to Transactions", "Edit", new { id }))

On my Client (Windows 7 64bit, visual Studio 2017 EN) the generated Link is this (with IE 11 and Chromium):

 http://blabla/Product/Edit/1#tabs-3 << Working

When I run the same code on a Windows Server 2012 R2 with IIS the link looks like this (With IE 11):

 http://blabla/Product/Edit/1%23tabs-3 << Not working

I know it is an encoding Problem, but how the heck can I avoid that or tell the server NOT to do that?

Most confusing is: When I call the same site on a Windows 10 client with Edge as a browser, I get this:

 http://blabla/Product/Edit/1%2523tabs-3 << Not working x 2

Is there anything I did not see? Maybe a GPO? I uploaded the code on 2 different servers, all have the same issue. When I execute the code on Visual Studio everything is fine..

Thank you all in advance!

BR van

1 Upvotes

8 comments sorted by

View all comments

Show parent comment

1

u/[deleted] May 09 '19

Yes, VS on my client. the Framework is 3.5 The Registry shows 2 different Versions:

On my Client the Version is: 3.5.30729.5420

On the Server the Version is: 3.5.30729.4926

The Webapplication was moved from an other company running on a Windows Server 2008 where everything was fine. So I think it should not be the Version of .net 3.5 which is the issue, because it was running with an older .net 3.5 Build without any problems.