Reputation: 4657
I have an action to return a page's PageRank. When I debug my site and call that action first my action is called with the url and it return the page's PR and then it's called again with no url and that throws an exception. I don't know why that happening.
this is my Action
[ValidateInput(false)]
public string PR(string id)
{
Uri u = new UriBuilder(id).Uri;
id = u.AbsoluteUri;
return GooglePageRank.PRChecker.PR(id);
}
I'm using IIS8 Express and .Net 4.5 but it's same with IIS7.5 and .Net 4
Upvotes: 3
Views: 512
Reputation: 4657
I used fiddler and found that It's happening because of Web Server Notifier and Web Technology Notifier extensions of chrome and they send another requests to the action.
Upvotes: 2