in my website i have a treeview control connected to sitemap.
I get the error
The file web.sitemap required by XmlSiteMapProvider does not exist.
but i have the file web.sitemap in my website.
Here is my code in my masterpage
<asp:SiteMapDataSourceID="SiteMapDataSource1"runat="server"/>
and my web.config
<configuration>
<system.web>
<httpHandlers>
<add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false"/>
</httpHandlers>
<customErrors mode="Off"/>
<compilation debug="true"/></system.web>
<appSettings/>
<connectionStrings>
<add name="estagiosConnectionString" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Inetpub\wwwroot\meusite\estagios\estagios.mdb" providerName="System.Data.OleDb"/>
</connectionStrings>
<system.web>
</system.web>
</configuration>
in my computer it works fine, but in my web site it doesn't
Any help?
Thank you
found the problem
The file web.sitemap has to be in my website root(strange or maybe not) bu now all my links are wrong.
Hi,
Based on my understanding, when you use the SiteMapPath and SiteMapDataSource controls generate navigation UI. When you run it, the links that are in the SiteMapPath are wrong. If I have misunderstood you, please feel free to let me know.
The Url attribute can indicate avirtual path that corresponds to a page in your application. It can also contain paths to pages in other applications, or URLs that point at completely different web sites. So please make sure that the links that in the web.sitemap are correct.
For more information, seehttp://quickstarts.asp.net/QuickStartv20/aspnet/doc/navigation/sitenavcontrols.aspx.
I hope this helps.
0 comments:
Post a Comment