为什么我的 link url 在我的网站上很糟糕 url?

why my link url to bad url on my site?

link urls 在服务器上是错误的,但在我的本地是正确的!

我使用:

Url.Action("myaction", "mycontroller", new { id = a.Id, title = a.Title,Name="test", area = "" })

和:

 routes.MapRoute(
            name: "ViewRout",
            url: "{lang}/{Name}/{id}/{title}",
            defaults: new { controller = "mycontroller", action = "myaction", lang = "en", id = UrlParameter.Optional, title = UrlParameter.Optional },
            constraints: new { id = @"\d+",                
            namespaces: new[] { string.Format("{0}.Controllers", typeof(RouteConfig).Namespace) }
        );

url 在本地:

/en/test/6546/title1

但是,url 在服务器中(不总是,经常,有时只是很糟糕!):

/x1(a)xsyidfjazxdfdsxd/en/test/6546/title1

请帮帮我!

您的应用程序似乎配置为启用无 cookie 会话。 URL 中的这个奇怪值用于识别会话,以防它不能为此使用 cookie。请查看 "Enter Cookieless Sessions" 部分:

https://msdn.microsoft.com/en-us/library/aa479314.aspx