MVC QueryString with Guid returns 404

后端 未结 2 867
别那么骄傲
别那么骄傲 2021-01-17 04:54

I have a problem on my Development server.... On my local machine everything works....

This is the issue:

I have a Page that looks like this:



        
相关标签:
2条回答
  • 2021-01-17 05:06

    I figured it out. It was because of this in the Web.config

    <requestLimits maxAllowedContentLength="1048576000" maxUrl="260" maxQueryString="25" />
    

    It was the maxQueryString.

    I have since removed both maxUrl and maxQueryString and it is all working now :)

    0 讨论(0)
  • 2021-01-17 05:28

    just off the cuff, are you supposed to have two ? in the url ?

    Im pretty sure you can only have one ? and separate the querystring parameters with &

    so you should be using this shape

    /Profile?id=Profile&id=E23CB58D-BDBC-4BE5-A27C-7E6518ED72B0

    0 讨论(0)
提交回复
热议问题