Thank you for your reply :
An update to the question:
The AdRotator is not working at all neither with IE or Mozilla now. (I was testing it on a different machine)
Here is the problem in details:
Here's the complete xml file "MyAds.xml":
Code:
<?xml version="1.0" encoding="utf-8" ?>
<Advertisements>
<Ad>
<ImageUrl>
~/Images2/googleAd.gif
</ImageUrl>
<NavigateUrl>
http://www.google.com.eg/
</NavigateUrl>
<AlternateText>
Ad to google home page
</AlternateText>
<Keyword>
Google
</Keyword>
<Impressions>
40
</Impressions>
</Ad>
<Ad>
<ImageUrl>
~/Images2/msdnAdgif
</ImageUrl>
<NavigateUrl>
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.adrotator.aspx
</NavigateUrl>
<AlternateText>
Ad to an msdn page
</AlternateText>
<Keyword>
Microsoft
</Keyword>
<Impressions>
40
</Impressions>
</Ad>
</Advertisements>
Here's the AdRotator itself:
Code:
<asp:AdRotator ID="AdRotator1" runat="server"
AdvertisementFile="~/App_Data/MyAds.xml" Height="107px" Width="435px" />
When I run the program, the result is:
1- The image does not appear, only the Alternate text does
2- When I click the Alternate text (having the link), : I get this message :
Server Error in '/' Application.
HTTP Error 400 - Bad Request.