Wrox Programmer Forums
|
ASP.NET 3.5 Basics If you are new to ASP or ASP.NET programming with version 3.5, this is the forum to begin asking questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Basics 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 May 2nd, 2011, 07:18 AM
Authorized User
 
Join Date: Jun 2009
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
Default ASP.NET Profile

I am creating a web application project (Not web site project). I have 6 web application project and three class library project in my solution. In web.config I have created some profile properties. But in code when I am writing the code:

Code:
Profile.FirstName = "Rahul"
It is giving me a compilation error when I am going to build my solution.

'Profile' does not exist in the current context'.

Please can u help me?
__________________
Happy coding...

Arnab Roy Chowdhury.
 
Old May 2nd, 2011, 10:39 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,

Profile is not supported in a Web Application Project, only in Web Site Projects.

You may want to Google for "web application project Profile "visual studio"" to find some work arounds using Visual Studio build providers, but IMO, you're probably better off using a custom solution.

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!





Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP.NET How to use Profile in "Web application" sadeghhp ASP.NET 4 General Discussion 1 October 19th, 2010 06:33 AM
ASP.NET How to use Profile in "Web application" sadeghhp BOOK: Beginning ASP.NET 4 : in C# and VB 2 October 19th, 2010 06:14 AM
asp.net ajax tookit, included in Asp.net 3.5 PeterPeiGuo Visual Web Developer 2008 1 January 6th, 2009 04:25 AM
Turning a regular ASP.NET App into an AJAX ASP.Net donrafeal7 Ajax 2 August 31st, 2007 12:33 AM





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