On Local host,my solution works fine but on server when i deploy ,it gives that file not found error. and the error message is something like this.http://localhost:27375/favicon.ico
I don’t have any such file in my application.I tried to create on in the root folder but no luck.any help is highly appreciated
On Local host,my solution works fine but on server when i deploy ,it gives
Share
Your favicon.ico file should be in your root directory for the web site.
It looks like your application is still trying to connect to the localhost in order to display the favicon. Are you hard-coding your URL to the favicon with a
http://localhost:27275/favico.icoaddress?To build on what Internet Engineer said, using ASP.NET, you can use a relative path prefaced with
~or/. So, you can use~/favico.icoor/favico.icoin order to reference your icon file.