Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET Core 1.0 > BOOK: Beginning ASP.NET for Visual Studio 2015
Password Reminder
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Display Modes
  #1 (permalink)  
Old January 29th, 2017, 08:36 AM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
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" />

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=, 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!!
Reply With Quote
  #2 (permalink)  
Old March 10th, 2017, 05:41 AM
Registered User
Points: 6, Level: 1
Points: 6, Level: 1 Points: 6, Level: 1 Points: 6, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
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!
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Configuration Error Web.sitemap lashell825 ASP.NET 4.5.1 General Discussion 2 Yesterday 07:30 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 03: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 12:31 PM

All times are GMT -4. The time now is 05:49 AM.

Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.