How can a virtual directory path appear case sensitive?
Hopefully I can explain completely providing real info
To start with then we have a LinkButton whose text is actually an image 开发者_如何学运维tag.
The image it links to is a Png and resides in a folder in the web directory. This is IIS V6 and win Server 2003.
The path is http://webaddress/Admin/Images/image.png
Admin is a virtual directory configured in IIS.
The above url doesn't work but if you change it to http://webaddress/admin/Images/image.png (lowers case 'a') then the image is served, change it back to 'A' and it takes you to login, you log in and it loops back to log in. change to 'a' and voila the image is served. Weirdly this problem doesn't always occur and I have hunted for a resolution for days to no avail. Any ideas?
Thanks
As requested this is the complete link button
<asp:LinkButton ID="lnkCommitAll" runat="server" CausesValidation="false"><asp:Image ID="imgCommitAll" runat="server" ImageUrl="~/Images/Grid/confirm_16.png" AlternateText="Commit All Changes" /> Commit All</asp:LinkButton>
Could you post the whole LinkButton tag?
If Admin is a virtual directory then your image url should be like ~/Images/image.png
If so, do you have your virtual directory placed under the root with also a map called admin? In this case, try to rename it to "Admin", but don't forget to change the path in IIS for your virtual Directory.
I've had a similar problem before.
Hope this helps,
Arne
精彩评论