Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > ASP.NET 4 General Discussion
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
ASP.NET 4 General Discussion For ASP.NET 4 discussions not relating to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 4 General Discussion 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
Reply
 
Thread Tools Search this Thread Display Modes
  #11 (permalink)  
Old November 28th, 2010, 12:28 AM
Authorized User
Points: 150, Level: 2
Points: 150, Level: 2 Points: 150, Level: 2 Points: 150, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2009
Location: Perth, Western Australia
Posts: 33
Thanks: 7
Thanked 1 Time in 1 Post
Send a message via MSN to cuddling101 Send a message via Yahoo to cuddling101
Question Load User Profile option

I am in the process of following through on your request to create new website etcetera. On page 715 of Beginning ASP.NET 4 I am reading point 4.

I am operating Windows Vista and Windows Server 2008 R2.

I have chosen ApplicationPoolIdentity BUT I am unsure about the next instruction.

Quote:
In the same dialog, set the Load User Profile option to True if you're using Windows 7 or Server 2008.
I find that my option is currently set to True. Is this correct for a Vista and R2 configured machine?
Reply With Quote
  #12 (permalink)  
Old November 28th, 2010, 06:00 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

I think you misunderstood my request about a new web site. I didn't mean a new deployed web site in IIS, but simply a new one in Visual Studio. E.g.:

1. File | New Web Site

2. Add a Model to your database. When asked for a connection, use . (a dot) as the server name.

3. Add some code to target your new entities.

I have the feeling you're making this a bit harder than it needs to be by using lots of different connection strings copied from different projects targeting different SQL Server. By starting from scratch, you can easily target EF correctly and see what connection string it adds to your project. You can then drop the other connection strings and just use the new one.

Quote:
I find that my option is currently set to True. Is this correct for a Vista
IIRC, this is the default for Vista.

Just curious: are you trying to make this work under IIS on Vista to understand how this all works? Or just to reproduce and fix the EF problem? In the latter case, I would skip it. IIS on Vista is not a good platform to host production sites. If it's all about learning, then it's well worth the time of course.

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!
Reply With Quote
  #13 (permalink)  
Old November 28th, 2010, 07:25 AM
Authorized User
Points: 150, Level: 2
Points: 150, Level: 2 Points: 150, Level: 2 Points: 150, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2009
Location: Perth, Western Australia
Posts: 33
Thanks: 7
Thanked 1 Time in 1 Post
Send a message via MSN to cuddling101 Send a message via Yahoo to cuddling101
Question Use of new connection string

Hello Imar

I am certainly not doing this just for learning's sake. I am trying to get an operational website running asap. I have already wasted one year of registration of domain names and don't want to completely waste the second.

I had thought I needed to work out the new connection string. I did not understand that all you wanted me to do was choose new connection string and then put a dot for server name, when I went to add the entity data model.

The Object Model stuff does seem to be working in the new web site.

Are you telling me that what I should do now is -

1. Delete all the connection strings in my main site web.config file, and then
2. Copy in what was generated in the new try it out?

Just one other point, you did lose me a bit with the reference to IIRC; I did not understand how that related to the Load User Profile option, and its setting to True or False?

Please advise.

Thank you

Philip
Reply With Quote
  #14 (permalink)  
Old November 28th, 2010, 07:29 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Quote:
Are you telling me that what I should do now is -

1. Delete all the connection strings in my main site web.config file, and then
2. Copy in what was generated in the new try it out?
Yes. You seem to have messed some settings in the config file. Manually changing them could make things worse. So, by creating a brand new site with a new model, you can see the connection string that VWD creates for you.

The setting is true by default in Vista so you don't have to change it from False to True as the instructions tell you to do for other OS's. If you find it's false, you need to set it to true. but you don't have to do that as it already is true.

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!
Reply With Quote
The Following User Says Thank You to Imar For This Useful Post:
cuddling101 (November 28th, 2010)
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
invalidoperationexception? qiux General .NET 0 January 23rd, 2008 11:39 PM
Insert System date and System Time -Form _TextBox cnkumar74 VB How-To 14 February 14th, 2007 10:52 AM
system.InvalidOperationException furjaw Visual Basic 2005 Basics 0 May 27th, 2006 12:44 AM
Casting System::Object __gc * to System.Double[] nepsat Visual C++ 3 November 19th, 2005 12:51 PM
System.InvalidOperationException: connection dead aleahy General .NET 0 January 28th, 2005 07:58 AM



All times are GMT -4. The time now is 01:53 AM.


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