Configuration Error in Web.sitemap
I tried excercise Try IT Out Chapter 8 page 141. I am adding a menu control from Tool Box to WebForms.Master at navigation tag as instructed in the exercise. then using the Datasource i am selecting Site Map with the Web.sitemap code:
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="~/Admin/" title="Admin Home"
description="Home Page for Admin Section">
<siteMapNode url="~/Admin/Default" title="Admin Home"
description="Home Page for the Admin Section"/>
<siteMapNode url="~/Admin/ItemList" title="Item List"
description="List of Available Items" />
<siteMapNode url="~/Admin/OrderList" title="Order List"
description="List of Orders" />
<siteMapNode url="~/Admin/UserList" title="User List"
description="List of Users" />
</siteMapNode>
</siteMap>
On running i am getting the following Error:
Server Error in '/' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Host 'Naushad-HP' is not allowed to connect to this MySQL server
Source Error:
Line 283: <siteMap>
Line 284: <providers>
Line 285: <add name="MySqlSiteMapProvider" type="MySql.Web.SiteMap.MySqlSiteMapProvider, MySql.Web, Version=6.9.7.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" connectionStringName="LocalMySqlServer" applicationName="/" />
Line 286: </providers>
Line 287: </siteMap>
Source File: C:\Windows\Microsoft.NET\Framework\v4.0.30319\Conf ig\machine.config Line: 285
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.1586.0
I have installed both Microsoft SQL Server and MySQL Server on my machine, however i have not configured MySQL Server as database anywhere. i dont know why i am getting this error.
Please Help!!
|