GLP
GLP

Reputation: 3675

Application error with file not find?

I took over a asp.net project from my co-worker. When I start running the project, Application_Error() in Global.asax.cs throws an error saying file does not exist. Someone recommended using HttpContext.Current.Request.Url.ToString() to get the file path of the missing file. It returned favicon.ico. I am not sure what this means and how do I fix it?

Upvotes: 1

Views: 227

Answers (2)

NetStarter
NetStarter

Reputation: 3225

It means that you are missing favicon.ico file at the required path. In error thrown , it will show you a full path. Please check whether you have that file in specified location.If it exists then check its properties whether it is hidden or read only.The problem must be with your missing file only. Thanks

Upvotes: 1

Johnny5
Johnny5

Reputation: 6862

Internet Explorer (maybe other browser) always do request on favicon.ico. If this file is found, it will be displayed as the icon of the tab or window.

You may create a favicon and put it at the root of your site.

Or maybe just do nothing with 404 error on Application_Error.

See favicon on wikipedia

Upvotes: 0

Related Questions