开发者

MVC 3 - controller being called more than once

开发者 https://www.devze.com 2023-04-13 00:00 出处:网络
I am finding that my controllers are being called more than once. When I am in debug mode, the paths execute, the UI is rendered, but then the controller break points get hit up to 3 times.

I am finding that my controllers are being called more than once. When I am in debug mode, the paths execute, the UI is rendered, but then the controller break points get hit up to 3 times.

Debugging steps so far:

  • I have checked that all my routes (routedebugger.dll)
  • I have a clean view to controller mapping. There are no namespace conflictions.

Is this something to do with the debugger, or is t开发者_C百科his an issue I need to worry about when the application is deployed?


This symptom is only occurring on my local machine. I used fiddler2 to watch the traffic and there was a favicon call. I fixed that, but don't change anything.

We moved the code based to the servers (running iis) and this does not occur. I don't really have an answer, but do know that it is not affecting the production or QA servers.

I'm calling this one 'closed'.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号