如何处理使用adrotator时出现的错误 [英] how to handle the error getting in using adrotator

查看:112
本文介绍了如何处理使用adrotator时出现的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用 ADROTATOR 控件,但无法使用.
我尝试了以下代码

ads.xml

I tried to use ADROTATOR control but couldnt make it.
i tried following code

ads.xml

<advertisements>
	<ad>
		<imageurl>
			ccit%20building.jpg
		</imageurl>
		<navigateurl>
			http://www.ccit.in
		</navigateurl>
		<targeturl>
			_blank
			
		</targeturl>
		<keyword>
			sites
		</keyword>
		<impressions>
			2
		</impressions>
	</ad>
	<ad>
		<imageurl>
			sw_lef001.png
		</imageurl>
		<navigateurl>
			http://www.ccit.in
		</navigateurl>
		<targeturl>
			_blank

		</targeturl>
		<keyword>
			s/w sites
		</keyword>
		<impressions>
			1
		</impressions>
		
	</ad>
	
</advertisements>




在adrotator.aspx中




in adrotator.aspx

<body>
    <form id="form1"  runat="server">
    <div>
    <asp:AdRotator ID="AdRotator1"    runat="server"  
        AdvertisementFile="~/ads.xml"/>
  
    
    </div>
    </form>
</body>
</html>



我在执行时遇到以下错误


"/xml"应用程序中的服务器错误.
-------------------------------------------------- ------------------------------

AdRotator AdRotator1找不到AdvertisementFile或文件无效.



请帮助

问候



i got following error while executing


Server Error in ''/xml'' Application.
--------------------------------------------------------------------------------

The AdRotator AdRotator1 could not find the AdvertisementFile or the file is invalid.



Please hep

regards

推荐答案

您的错误告诉您问题出在哪里.您需要确保该文件位于期望的位置,并且文件名正确.
You error tells you what the problem is. You need to ensure that the file exists where it is expected and that the file name is correct.


^ ]


这篇关于如何处理使用adrotator时出现的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆