473,883 Members | 1,788 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Does anyone have ASP.Net 2.0 Profiles working in a Web Application Project?

I saw several posts, but no real answers about this. I've been playing
with the Profile classes in a sample Web Site, but cannot seem to get
the Profile to work in my actual Web Application Project. I am able to
add profile properties and/or profile inheritence to the web.config,
but IntelliSense never kicks in on any of my pages or code-behinds.
When I type Profile, it looks like I may be getting the
System.Web.Prof ile namespace instead of a page-level Profile
property/accessor?

Can anyone confirm that Profile works with Web Application projects and
that "Profile.MyProp erty" works on pages in W.A. projects?

ex. (works perfect in Web Site, but not in Web Application)

[web.config]
....
<anonymousIdent ification enabled="true"/>
<profile defaultProvider ="myProfileProv ider">
<providers>
<clear/>
<add name="myProfile Provider"
connectionStrin gName="myConnec tionString"
type="System.We b.Profile.SqlPr ofileProvider"/>
</providers>
<properties>
<add name="FullName" defaultValue="G uest" allowAnonymous= "true"/>
<add name="Birthday" type="System.Da teTime" allowAnonymous= "true"/>
</properties>
</profile>
....

[default.aspx.vb]
....
Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArg s) Handles Me.Load
If Not IsPostBack Then
BindFields()
End If
End Sub

Protected Sub Button1_Click(B yVal sender As Object, ByVal e As
System.EventArg s) Handles Button1.Click
Profile.FullNam e = TextBox1.Text
BindFields()
End Sub

Protected Sub Calendar1_Selec tionChanged(ByV al sender As Object,
ByVal e As System.EventArg s) Handles Calendar1.Selec tionChanged
Profile.Birthda y = Calendar1.Selec tedDate
BindFields()
End Sub

Private Sub BindFields()
Label1.Text = Profile.FullNam e
Label2.Text = Profile.Birthda y.ToShortDateSt ring
End Sub
....

Oct 4 '06 #1
2 1604
Hey Nathan,

I was exactly looking for the same thing today. Here is some
information, that might help you.

http://www.gotdotnet.com/workspaces/...c-b4f135df4127

Thanks,
Raj

na************@ gmail.com wrote:
I saw several posts, but no real answers about this. I've been playing
with the Profile classes in a sample Web Site, but cannot seem to get
the Profile to work in my actual Web Application Project. I am able to
add profile properties and/or profile inheritence to the web.config,
but IntelliSense never kicks in on any of my pages or code-behinds.
When I type Profile, it looks like I may be getting the
System.Web.Prof ile namespace instead of a page-level Profile
property/accessor?

Can anyone confirm that Profile works with Web Application projects and
that "Profile.MyProp erty" works on pages in W.A. projects?

ex. (works perfect in Web Site, but not in Web Application)

[web.config]
...
<anonymousIdent ification enabled="true"/>
<profile defaultProvider ="myProfileProv ider">
<providers>
<clear/>
<add name="myProfile Provider"
connectionStrin gName="myConnec tionString"
type="System.We b.Profile.SqlPr ofileProvider"/>
</providers>
<properties>
<add name="FullName" defaultValue="G uest" allowAnonymous= "true"/>
<add name="Birthday" type="System.Da teTime" allowAnonymous= "true"/>
</properties>
</profile>
...

[default.aspx.vb]
...
Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArg s) Handles Me.Load
If Not IsPostBack Then
BindFields()
End If
End Sub

Protected Sub Button1_Click(B yVal sender As Object, ByVal e As
System.EventArg s) Handles Button1.Click
Profile.FullNam e = TextBox1.Text
BindFields()
End Sub

Protected Sub Calendar1_Selec tionChanged(ByV al sender As Object,
ByVal e As System.EventArg s) Handles Calendar1.Selec tionChanged
Profile.Birthda y = Calendar1.Selec tedDate
BindFields()
End Sub

Private Sub BindFields()
Label1.Text = Profile.FullNam e
Label2.Text = Profile.Birthda y.ToShortDateSt ring
End Sub
...
Oct 4 '06 #2
So is this a confirmed (by MS? by users?) known problem in VS05? Is
this something MS is working on? (say, maybe, VS05 SP1?)

Am I just using an out of date version of the Web Application Project
addons? How can I tell which version I have?

Rajesh wrote:
Hey Nathan,

I was exactly looking for the same thing today. Here is some
information, that might help you.

http://www.gotdotnet.com/workspaces/...c-b4f135df4127

Thanks,
Raj

na************@ gmail.com wrote:
I saw several posts, but no real answers about this. I've been playing
with the Profile classes in a sample Web Site, but cannot seem to get
the Profile to work in my actual Web Application Project. I am able to
add profile properties and/or profile inheritence to the web.config,
but IntelliSense never kicks in on any of my pages or code-behinds.
When I type Profile, it looks like I may be getting the
System.Web.Prof ile namespace instead of a page-level Profile
property/accessor?

Can anyone confirm that Profile works with Web Application projects and
that "Profile.MyProp erty" works on pages in W.A. projects?

ex. (works perfect in Web Site, but not in Web Application)

[web.config]
...
<anonymousIdent ification enabled="true"/>
<profile defaultProvider ="myProfileProv ider">
<providers>
<clear/>
<add name="myProfile Provider"
connectionStrin gName="myConnec tionString"
type="System.We b.Profile.SqlPr ofileProvider"/>
</providers>
<properties>
<add name="FullName" defaultValue="G uest" allowAnonymous= "true"/>
<add name="Birthday" type="System.Da teTime" allowAnonymous= "true"/>
</properties>
</profile>
...

[default.aspx.vb]
...
Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArg s) Handles Me.Load
If Not IsPostBack Then
BindFields()
End If
End Sub

Protected Sub Button1_Click(B yVal sender As Object, ByVal e As
System.EventArg s) Handles Button1.Click
Profile.FullNam e = TextBox1.Text
BindFields()
End Sub

Protected Sub Calendar1_Selec tionChanged(ByV al sender As Object,
ByVal e As System.EventArg s) Handles Calendar1.Selec tionChanged
Profile.Birthda y = Calendar1.Selec tedDate
BindFields()
End Sub

Private Sub BindFields()
Label1.Text = Profile.FullNam e
Label2.Text = Profile.Birthda y.ToShortDateSt ring
End Sub
...
Oct 5 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2032
by: Programatix | last post by:
Hi, I'm working on a project which includes WebServices and Windows Form application. The Windows Form application will call the WebServices to retrieve data from database. The data will be returned as DataSet. Now, here's the problem. On .NET Framework 1.1, if any rows in the dataset returned contain errors (marked by calling the SetColumnError() method or
5
11064
by: David Webb | last post by:
The problem started when the Working Folder for a project was somehow set to the folder of another project. I set the correct working folder in VSS and deleted the .vbproj files that had been created in the wrong folder on the hard drive. Before I discovered these files, .NET kept trying to create a new project with _1 following the project name. Deleting those files corrected that problem. I deleted the Virtual Directory, rebooted, and...
9
6748
by: Srinivas | last post by:
hi all how to access the outlook user profiles through VB.net any help.... thanks in advanc Srinivas
1
2788
by: moondaddy | last post by:
I need to have multiple deployment profiles for a .net 2.0 winforms project. This is my requirement: 1) Re-use same project for multiple ClickOnce deployment profiles. 2) Each profile will have it's own custom deployment properties such as Publish Version Number, Start Menu and application Name in start menu. For example, in the past (before ClickOnce deployment) I had to build Setup.exe files and distribute them to various...
3
2038
by: Mark Leistner | last post by:
I am having problems getting a gridview to bind to custom objects under any non-full trust level. I created a test project to verify what I am seeing isn't a side effect of other code in my project and I get the same errors there: Exception Details: System.Security.SecurityException: That assembly does not allow partially trusted callers.
9
1906
by: Coleen | last post by:
Hi All :-) I am desperately looking for some help/information on how to direct page flow. Forget what I have done - here's what I need to do: I have a large ASPX.Net - VB.Net web application (around 35-40 pages) that once the user logs in, I need to direct them to the correct page, depending on what they select from the directory. In other words...when they login, if they are a new user, a new account screen comes up and from there a...
6
1262
by: placid | last post by:
Hi all, I'm looking for anyone who is working on a project at the moment that needs help (volunteer). The last project i worked on personally was screen-scraping MySpace profiles (read more at the following link) http://placid.programming.projects.googlepages.com/screen-scrapingmyspaceprofiles but that didn't go all to well, so im kinda bored and need something to
0
1633
by: jazeelkm | last post by:
Hi , I am developing a windows application using C#. In that I want to display all the outlook profiles in a listbox and on selecting one, The folder structure should be displayed on a treeview control. I can display all the profiles in the listbox and on its changedindex event I am calling the function to load all outlook folders(and add that to the treeview). When i run the application first time it is working properly , but when i...
7
1656
by: itsraghz | last post by:
Hi People, First of all, do we have a dedicated forum for WebSphere? As I dont find any, posting it in the one and only available forum "Java"! We do face a strange scenario in WAS 6.0 in AIX box. The actual purpose of ND (Network Deployment) does NOT get saved here as we do NOT have any cluster. We do have all the profiles (Deployment Manager - dmgr, individual server profiles) all in the same/single box. We do have a IBM HTTP Server to...
0
9942
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11142
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10745
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10848
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7972
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5798
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5992
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4614
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3234
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.