Pregunta

I read a number of Google and Stackoverflow posts without success.

My c# application sends out emails with a hyperlink in. The hyperlink address is:

http:\\41.xx.xx.x\Documents\logoColourBG.jpg

When clicking the hyperlink, I get:

404 - File or directory not found.
The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.

The subfolder Documents is shared and users IUSR and IIS_IUSRS do have access to it.

¿Fue útil?

Solución

If you are trying to access the file directly over the network in windows explorer or so you should try something like this :

\\41.xx.xx.x\Documents\logoColourBG.jpg

But if you are trying to access it from the browser your request will be handled by IIS or another web server that is installed and configured on the machine. Then you should set the folder's permissions and sharing options to default and then create a virtual directory like it is explained in here.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top