Wrox Programmer Forums
|
BOOK: Beginning ASP.NET for Visual Studio 2015
This is the forum to discuss the Wrox book Beginning ASP.NET for Visual Studio 2015 by William Penberthy; ISBN: 978-1-119-07742-8
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET for Visual Studio 2015 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 29th, 2017, 09:36 AM
Registered User
 
Join Date: Jan 2017
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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!!
 
Old March 10th, 2017, 06:41 AM
Registered User
 
Join Date: Mar 2017
Posts: 2
Thanks: 2
Thanked 0 Times in 0 Posts
Default Solution that worked for me

Some readers of Beginning ASP.NET 4.5.1 by Imar Spanjaars, including me, had the same issue. However, user zinedu5 posted the solution here:

Chapter 7: Configuration Error

Hope this helps!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Configuration Error Web.sitemap lashell825 ASP.NET 4.5.1 General Discussion 1 October 20th, 2018 08:29 AM
Web SiteMap jtruffa ASP.NET 3.5 Basics 1 September 2nd, 2013 04:05 PM
Configuration Error in Web.config BobRoberts BOOK: Beginning ASP.NET 4 : in C# and VB 10 November 9th, 2011 04:13 AM
web.sitemap workidoo BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 2 June 13th, 2008 08:42 AM
Web Service Configuration Error DudeBori82 ASP.NET 2.0 Professional 0 November 13th, 2006 01:31 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.