Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > BOOK: Beginning ASP.NET 4 : in C# and VB
|
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : 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
 
Old June 29th, 2013, 04:37 AM
Authorized User
 
Join Date: May 2013
Posts: 12
Thanks: 3
Thanked 0 Times in 0 Posts
Default Getting right account IIS (8) and server2012

I have worked all the way though chapter19, jippee! I booked a server and installed all goodies. This server is 2012 and after IIS is up and running pages without dbase acces work fine.

However the dbase access is problematic and all seems to be down to the fact I can't find the IIS (8) Application Pool identity (it is not listed when changing file system security).

I hooked up the SQL server to the dBase (ok), and then I need to match SQL authentication to IIS authentication. However I can'd find the IIS authentication.

How do I find this identity when it is not listed?

Thanks

Erik
 
Old June 29th, 2013, 08:05 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

The account is not listed but it's named after the application pool, prefixed with IIS AppPool\ E.g.:

IIS AppPool\NameOfAppPool

You can find the name of the application pool on the Advanced settings of the site in IIS.

Hope this helps,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
The Following User Says Thank You to Imar For This Useful Post:
Erik Severiens (July 1st, 2013)
 
Old July 5th, 2013, 08:22 AM
Registered User
 
Join Date: Mar 2013
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Data Base login failed

Hi Imar,

I am on chapter 19 of your book Beginning Asp. Net 4
and I got stuck on this problem (Cannot open database "aspnetdb" requested by the login. The login failed.
Login failed for user 'IIS APPPOOL\ASP.NET v4.0'.). Could you please tell me what I am doing wrong.

Thanks
Shane

P.S.
Loved the Book
 
Old July 5th, 2013, 01:11 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Can you provide (a lot) more information? Where did you get stuck in the chapter? Which version of Windows are you using? How are you installing the site? Did you configure the application account? Which version of SQL Server are you using? How did you configure SQL Server (which account did you add and which permissions did you give it)? How do your connection strings look?

Without that information, it's pretty much impossible to suggest something useful.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old July 7th, 2013, 11:25 AM
Authorized User
 
Join Date: May 2013
Posts: 12
Thanks: 3
Thanked 0 Times in 0 Posts
Default How I fixed it

After much try and error I fixed it somehow.

After assigning the SQL dbase to the .NET 4.5 application pool (taking it out the default apppool) suddenly there was an account iis apppool/.net 4.5 and all worked!

However maybe it was there before........ This is how it is, after you fix it you get on with the next challenge,

Erik
 
Old July 7th, 2013, 01:42 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

The account should have been there, as it's implicitly associated with the application pool which gets created when you install IIS.

Anyway. glad it's working.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old July 9th, 2013, 05:44 PM
Registered User
 
Join Date: Mar 2013
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Imar
Thanks for answering my post.
The Version of windows is 7, with SQL2008, my connection strings are ( <connectionStrings>
<clear />
<add name="ContactConnectionString" connectionString="Data Source=.\SQLEXPRESS\Shane-PC\Shane; Initial Catalog=Contact; Trusted_Connection=True" providerName="System.Data.SqlClient" />
<add name="ContactEntities1" connectionString="metadata=res://*/App_Code.job.csdl|res://*/App_Code.job.ssdl|res://*/App_Code.job.msl;provider=System.Data.SqlClient;pr ovider connection string=&quot;data source=.\SQLEXPRESS\Shane-PC\Shane;Intial Catalog=Contact Trusted_Connection=True;multipleActiveResultSets=T rue&quot;" providerName="System.Data.EntityClient" />
<add name="ConnectionString" connectionString="Data Source=.\SQLEXPRESS\Shane-PC\Shane;AttachDbFilename=|DataDirectory|\Contact. mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient" />
<add name="LocalSqlServer" connectionString="Data Source=.\SQLEXPRESS\Shane-PC\Shane; Initial Catalog=ASPNETDB;Trusted_Connection=True" providerName="System.Data.SqlClient" />
</connectionStrings>). The permissions are as you said in the book. I have my site up and running on my computer but cant connect to the database. it all works fine in Visual Web Dev.
Thanks again
Shane
 
Old July 10th, 2013, 04:00 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi Shane,

Your server name is incorrect. You have this:

.\SQLEXPRESS\Shane-PC\Shane

which is invalid. You either need .\SQLEXPRESS or Shane-PC\Shane but not both at the same time. Which one you need depends on the name of your SQL Server instance.

Hope this helps,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Error - IIS Account mikedeepak Classic ASP Professional 0 August 6th, 2009 10:30 AM
IIS is not passing the logged user account evandro.paula Internet Information Services 0 January 11th, 2008 01:34 PM
iis.msc equivalent in IIS for Win XP Pro? RealDHelix Classic ASP Basics 14 March 18th, 2007 08:28 PM
creating new user(object name) for IIS account joshil Access ASP 1 April 18th, 2004 01:43 PM
creating IIS server account for database windowsXP joshil Access 1 April 18th, 2004 01:38 PM





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