- Mesajlar
- 605
Arkadaşlar, Web Tasarımı ve Programlama Dersi Etkileşimli Web Uygulamaları 3 modülünün 57. sayfasındaki Adrorator öneğini aynen uygulamama rağmen aşağıda belirttiğim XML dosyası bulunamadı veya geçersiz dosya gibisinden bir hata alıyorum. Visual Studio 2008 de de denedim olmadı. Visual Studio 2008 kullanmadan tüm dosyaları wwwroot a kaydederek de denedim yine aynı hatayı alıyorum. Dosya yolunu herşeyi denedim olmuyor. Adrotator örneğini yapan var mı?
XML kodları:<?xml version="1.0" encoding="utf-8"?>
<advertisements>
<Ad>
<ImageUrl>tema.jpg</ImageUrl>
<Impressions>50</Impressions>
</Ad>
<Ad>
<ImageUrl>losev.jpg</ImageUrl>
<Impressions>50</Impressions>
</Ad>
</advertisements>
ASPX kodları<form id="form1" method="post" action="" runat="server">
<asp:AdRotator AdvertisementFile="tanitim.xml" BorderWidth="1" ID="reklam" runat="server" target="_blank" />
</form>
Aldığım Hata :
The AdRotator reklam could not find the AdvertisementFile or the file is invalid.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: The AdRotator reklam could not find the AdvertisementFile or the file is invalid.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[HttpException (0x80004005): The AdRotator reklam could not find the AdvertisementFile or the file is invalid.]
System.Web.UI.WebControls.AdRotator.GetFileData(String fileName) +489
System.Web.UI.WebControls.AdRotator.PerformAdFileBinding() +50
System.Web.UI.WebControls.AdRotator.OnPreRender(EventArgs e) +44
System.Web.UI.Control.PreRenderRecursiveInternal() +80
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842
XML kodları:<?xml version="1.0" encoding="utf-8"?>
<advertisements>
<Ad>
<ImageUrl>tema.jpg</ImageUrl>
<Impressions>50</Impressions>
</Ad>
<Ad>
<ImageUrl>losev.jpg</ImageUrl>
<Impressions>50</Impressions>
</Ad>
</advertisements>
ASPX kodları<form id="form1" method="post" action="" runat="server">
<asp:AdRotator AdvertisementFile="tanitim.xml" BorderWidth="1" ID="reklam" runat="server" target="_blank" />
</form>
Aldığım Hata :
The AdRotator reklam could not find the AdvertisementFile or the file is invalid.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: The AdRotator reklam could not find the AdvertisementFile or the file is invalid.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[HttpException (0x80004005): The AdRotator reklam could not find the AdvertisementFile or the file is invalid.]
System.Web.UI.WebControls.AdRotator.GetFileData(String fileName) +489
System.Web.UI.WebControls.AdRotator.PerformAdFileBinding() +50
System.Web.UI.WebControls.AdRotator.OnPreRender(EventArgs e) +44
System.Web.UI.Control.PreRenderRecursiveInternal() +80
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842