Quote Originally Posted by SirDice View Post
Ah.. Check the ACLs on the files, as this is usually the problem with IIS. Or it's a setting in sharepoint, I don't know enough about sharepoint to guide you.
ACLs, whats that? and how and what should I check in them?

Quote Originally Posted by dinowuff View Post
Is your sharepoint site windows auth or forms based?

It's sharepoint...it needs credentials but if it's windows auth, you might be able to trick it through IIS,
The web application that I have created uses form based authentication but the sharepoint site that I use, has windows based authentication, I know that I need pass the credentials, but how do I do it while accessing the images, so that the user doesnt see the authentication dialog boxes. Please see that I am using the full URL of the image in the <img src="full url of the image from shpt">, so please let me know how to proceed in this direction.

Quote Originally Posted by Cheap Scotch Ron View Post
Check to ensure that the local userid that is defined for anonymous access has read access to the folder (as well as its content) that contains the images.

The userid is usually IUSR_servername. You can check by going to IIS, right click the virtual directory of the site, select the Directory Security tab. Ensure Anonymous access is selected and note the userid.

Then right click the folder that contains the images and ensure this userid has read access to the folder. Also check the privs on the actual images. They should be same. If not, there is an option at the folder level to propagate the settings to the contents of the folder.

That should do it.

Alternatively, you could impersonate by setting the user and pass in the webconfig. google impersonate IIS. There are several entries on MS Technet that show you how.
The problem with sharepoint sites is you cant find out where's the physical folder, where the images are actually stored by sharepoint, as far as enabling the anonymous access, I'll check the folder permissions setting on shpt, and see if it helps from there. The Permissions setting includes what users are allowed to access the folder and what kind of access should be given, so guess thats what you want me try, right?