 |
BOOK: Beginning ASP.NET 4.5.1 : in C# and VB
 | This is the forum to discuss the Wrox book Beginning ASP.NET 4.5.1: in C# and VB by Imar Spaanjaars; ISBN: 978-1-118-84677-3 |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the BOOK: Beginning ASP.NET 4.5.1 : in C# and VB 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
|
|
|
|
|

November 21st, 2015, 04:18 PM
|
|
Registered User
|
|
Join Date: Nov 2015
Posts: 4
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Chapter 16 - WSAT Problems
I am working through Chapter 16 - "Using the WSAT to Manage User Accounts and Roles". I am able to accomplish all steps through Step 4, including logging into the WSAT. My page looks like Figure 16-17.
When I click the Security Tab in Step 5, I get an error. Basically it says I have no access to a SQL Server database, which makes no sense. I have used a SQL Server database all the way through my application development up until this point. Anyone else with this error? Any help would be greatly appreciated. My system info is shown below:
OS: Win 7 Pro 64bit
IDE: Visual Studio Pro 2013
SQL Server Express 2012
Thanks- Gene
|
|

November 27th, 2015, 04:00 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi there,
Can you post the exact error message and your web.config file?
Imar
|
|

November 28th, 2015, 11:53 PM
|
|
Registered User
|
|
Join Date: Nov 2015
Posts: 4
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Hi Imar-
This is the error message:
=>There is a problem with your selected data store. This can be caused by an invalid server name or credentials, or by insufficient permission. It can also be caused by the role manager feature not being enabled. Click the button below to be redirected to a page where you can choose a new data store.
The following message may help in diagnosing the problem: Access to the path 'C:\Users\gene\AppData\Local\Temp\Temporary ASP.NET Files\root\5794a699\5d005630\hash' is denied. <=
This is my Web.Config code (note where I actually commented out some of my code while I trying to get this to work. Below the commented code is where I copied in some code from your downloadable Chapter 16 source code... still did not work). I have really enjoyed your book! Any help to get past this issue will be greatly appreciated!
Thanks,
Gene
Code:
<?xml version="1.0" encoding="utf-8"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<configSections>
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</configSections>
<connectionStrings>
<add name="PlanetWroxConnectionString1" connectionString="Data Source=(LocalDB)\v11.0;AttachDbFilename=|DataDirectory|\PlanetWrox.mdf;Integrated Security=True" providerName="System.Data.SqlClient" />
<add name="PlanetWroxEntities" connectionString="metadata=res://*/App_Code.PlanetWrox.csdl|res://*/App_Code.PlanetWrox.ssdl|res://*/App_Code.PlanetWrox.msl;provider=System.Data.SqlClient;provider connection string="data source=(LocalDB)\v11.0;attachdbfilename=|DataDirectory|\PlanetWrox.mdf;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework"" providerName="System.Data.EntityClient" />
</connectionStrings>
<appSettings>
<add key="ValidationSettings:UnobtrusiveValidationMode" value="WebForms" />
</appSettings>
<system.web>
<authentication mode="Forms">
<forms loginUrl="~/Login"/>
</authentication>
<pages theme="Monochrome">
<controls>
<add tagPrefix="Wrox" tagName="Banner" src="~/Controls/Banner.ascx" />
</controls>
</pages>
<compilation debug="true" targetFramework="4.5.1">
<assemblies>
<add assembly="System.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Data.Entity.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</assemblies>
<buildProviders>
<add extension=".edmx" type="System.Data.Entity.Design.AspNet.EntityDesignerBuildProvider" />
</buildProviders>
</compilation>
<httpRuntime targetFramework="4.5.1" />
<!-- Gene Commented below-->
<!-- <profile defaultProvider="AspNetSqlProvider">
<providers>
<add name="AspNetSqlProvider" type="System.Web.Providers.AspNetSqlProvider, System.Web.Providers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="PlanetWroxConnectionString1" applicationName="/" />
</providers>
</profile> -->
<!-- <membership defaultProvider="DefaultMembershipProvider">
<providers>
<add name="DefaultMembershipProvider" type="System.Web.Providers.DefaultMembershipProvider, System.Web.Providers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
connectionStringName="PlanetWroxConnectionString1" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false"
maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="1" passwordAttemptWindow="10" applicationName="/" />
</providers>
</membership> -->
<!-- <roleManager defaultProvider="DefaultRoleProvider">
<providers>
<add name="DefaultRoleProvider" type="System.Web.Providers.DefaultRoleProvider, System.Web.Providers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="PlanetWroxConnectionString1" applicationName="/" />
</providers>
</roleManager> -->
<!-- Copied in from downloadable source code-->
<profile defaultProvider="DefaultProfileProvider">
<providers>
<add name="DefaultProfileProvider" type="System.Web.Providers.DefaultProfileProvider, System.Web.Providers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="PlanetWroxConnectionString1" applicationName="/" />
</providers>
</profile>
<membership defaultProvider="DefaultMembershipProvider">
<providers>
<add name="DefaultMembershipProvider" type="System.Web.Providers.DefaultMembershipProvider, System.Web.Providers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="PlanetWroxConnectionString1" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="1" passwordAttemptWindow="10" applicationName="/" />
</providers>
</membership>
<roleManager enabled="true" defaultProvider="DefaultRoleProvider">
<providers>
<add connectionStringName="PlanetWroxConnectionString1" applicationName="/"
name="DefaultRoleProvider" type="System.Web.Providers.DefaultRoleProvider, System.Web.Providers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</providers>
</roleManager>
<!--
If you are deploying to a cloud environment that has multiple web server instances,
you should change session state mode from "InProc" to "Custom". In addition,
change the connection string named "DefaultConnection" to connect to an instance
of SQL Server (including SQL Azure and SQL Compact) instead of to SQL Server Express.
-->
<sessionState mode="InProc" customProvider="DefaultSessionProvider">
<providers>
<add name="DefaultSessionProvider" type="System.Web.Providers.DefaultSessionStateProvider, System.Web.Providers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="PlanetWroxConnectionString1" />
</providers>
</sessionState>
</system.web>
<system.net>
<mailSettings>
<smtp deliveryMethod="Network" from="Gene Brunson <[email protected]>">
<network host="smtp.charter.net" />
</smtp>
</mailSettings>
</system.net>
<system.serviceModel>
<behaviors>
<endpointBehaviors>
<behavior name="NameServiceAspNetAjaxBehavior">
<enableWebScript />
</behavior>
</endpointBehaviors>
</behaviors>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
<services>
<service name="NameService">
<endpoint address="" behaviorConfiguration="NameServiceAspNetAjaxBehavior" binding="webHttpBinding" contract="NameService" />
</service>
</services>
</system.serviceModel>
<entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
<parameters>
<parameter value="mssqllocaldb" />
</parameters>
</defaultConnectionFactory>
<providers>
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
</providers>
</entityFramework>
</configuration>
|
|

November 29th, 2015, 12:58 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi Gene,
Take a look here: https://www.google.com/?gws_rd=ssl#q...e+path%22+hash
I can see a few reports of the same error with different solutions. Hopefully one applies to your situation; one suggests to make sure you're NOT running the command line as an administrator.
Cheers,
Imar
|
|

November 29th, 2015, 05:27 PM
|
|
Registered User
|
|
Join Date: Nov 2015
Posts: 4
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Hi Imar-
I got it solved today. As crazy as it seems this was the issue found off one of the Google search returns:
http://ultidev.com/forums/yaf_postst...up-issues.aspx
=> No Worries... I should have been more clear. Being new to UWS I was under the assumption that UWS was using IIS_IUSRS so I assumed that because the permissions were correct on that account for the folder in the error message, that UWS should be working.
The solution was to give my windows account ( MyPcName\Matt ) permissions of Modify to the path C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temp orary ASP.NET Files\root\2c99c95c
IIS_IUSRS permissions were leftover from a iis7 install and had nothing to do with my issue.
Thanks,
-Matt <=
After I changed permissions on my windows account like this guy described, it worked!
Thanks for your help!
Gene
|
|
The Following User Says Thank You to Donkeylover1965 For This Useful Post:
|
Imar (December 2nd, 2015)
|
Similar Threads
|
| Thread |
Thread Starter |
Forum |
Replies |
Last Post |
| Chapter 16: WSAT with VS2013 |
paulf |
BOOK: Beginning ASP.NET 4.5 : in C# and VB |
6 |
January 10th, 2014 06:46 AM |
| Chapter 16: Cannot open WSAT |
weixing |
BOOK: Beginning ASP.NET 4.5 : in C# and VB |
4 |
March 21st, 2013 11:54 PM |
| Problems in chapter 15 and 16 |
sgeorgiev |
BOOK: Ivor Horton's Beginning Visual C++ 2008 ISBN: 978-0-470-22590-5 |
0 |
May 7th, 2008 11:57 PM |
| chapter 16 - Problems with sessions. |
kb90 |
BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 |
3 |
April 11th, 2008 09:07 AM |
| Chapter 16 problems |
silas428 |
BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 |
1 |
January 4th, 2008 06:32 PM |
|
 |
|