<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Search results matching tag 'ProfileCommon'</title><link>http://forums.asp.net/search/SearchResults.aspx?q=&amp;tag=ProfileCommon&amp;orTags=0&amp;o=DateDescending</link><description>Search results matching tag 'ProfileCommon'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Profile page for managing profiles of all users in DB</title><link>http://forums.asp.net/thread/3585916.aspx</link><pubDate>Mon, 28 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3585916</guid><dc:creator>davide.mologni</dc:creator><description>&lt;p&gt;Hi , cause i&amp;#39;m a novice in ASP.NET i&amp;#39;ve the following problem:&lt;/p&gt;
&lt;p&gt;I&amp;#39;m developing the Extranet of the company, i&amp;#39;m the system administrator, and i want&amp;nbsp;to&amp;nbsp;manage user credentials and&amp;nbsp;its profile.&lt;/p&gt;
&lt;p&gt;in fact i dinamically change the aspect&amp;nbsp;of the site and relative function,&amp;nbsp;according to the&amp;nbsp;profile settings&amp;nbsp;of the user logged.&lt;/p&gt;
&lt;p&gt;then, i create users and roles in WSAT, after that i have a page for managing profiles composed by:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;a gridview that reads all users in the table aspnet_membership&lt;/li&gt;
&lt;li&gt;a page with all controls relative to the properties of the profile (it works for the current user logged (=only administrators of the site)&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;so, i want that, by selecting a row (user) on the gridview i can load/edit/save the profile of that user and not the user logged at the moment&lt;/p&gt;
&lt;p&gt;is all my thinking reasonable or i can do all in a better way?&lt;/p&gt;
&lt;p&gt;if yes, how can i do that???&lt;/p&gt;
&lt;p&gt;thanks to all&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Cannot access Profile using VS2008 with Web application project.</title><link>http://forums.asp.net/thread/3579931.aspx</link><pubDate>Wed, 23 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3579931</guid><dc:creator>maxi_ng</dc:creator><description>&lt;p&gt;Read a lot article teaching how to use profile, then found out they are all out of date.&lt;/p&gt;&lt;p&gt;VS2005 web application project have already remove auto generated ProfileCommon class.&lt;/p&gt;&lt;p&gt;I think VS2008 is using the same approach.&lt;/p&gt;&lt;p&gt;So what do I do if I want to use Profile? cook my own ProfileCommon, right?&lt;/p&gt;</description></item><item><title>Problem Implementing Strongly-typed Profile class in Web application project with VS2008</title><link>http://forums.asp.net/thread/3580316.aspx</link><pubDate>Wed, 23 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3580316</guid><dc:creator>maxi_ng</dc:creator><description>&lt;p&gt;I can get everything work if I am using ProfileBase&lt;/p&gt;&lt;p&gt;Profile.SetPropertyValue() and Profile.GetPropertyValue().&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;But if I inherit the ProfileBase to make a strongly-typed class and return it to the page like this&lt;/p&gt;&lt;p&gt;protected CustomProfile Profile&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; get&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return (CustomProfile)HttpContext.Current.Profile;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;&lt;p&gt;It will give me an invalid cast exception.&lt;/p&gt;&lt;p&gt;What should I do? no one mention this exception when they implement like this.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>how to add custom profile properties without using web.config?</title><link>http://forums.asp.net/thread/2754323.aspx</link><pubDate>Wed, 19 Nov 2008 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2754323</guid><dc:creator>tiruvannamalai</dc:creator><description>&lt;p&gt;i have my own table say tblProfileProperty which lists all properties that I want to use with the profile like BirthDate,Country,City.... This is so that Admin can directly add any dynamic property at any time, which will /should be available to users the next time they log on and can save their user specific property value. Also have another table user profile properties where corresponding property values of user profile are to be saved. I have created my custom profile provider, but the problem is that if i don&amp;#39;t add all properties that are there in the tblprofileproperty table which I want to use to the web.config profile section under tag, they give me exception that &amp;#39;property not found&amp;#39;. If I put them there, I&amp;#39;m able to use it. Also I can&amp;#39;t just create custom class with property get set methods, as it can be changed by the admin as and when need arises for the new property. I was thinking it would be nice to have some interface for admin to add properties as needed, which next time user can have and utilize it. Whenever feels like, admin can remove the property and it won&amp;#39;t be available to users the next time they log in. Any workaround for this problem? any help would be appreciated. thanks &lt;/p&gt;</description></item><item><title>A New ASP.NET Community site launched at http://www.riverasp.net.</title><link>http://forums.asp.net/thread/2235699.aspx</link><pubDate>Sun, 16 Mar 2008 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2235699</guid><dc:creator>mu2hm</dc:creator><description>&lt;p&gt;Hi All ASP.NET Professionals,&lt;/p&gt;
&lt;p&gt;A brand New ASP.NET Community website launched at &lt;a href="http://www.riverasp.net/"&gt;&lt;font color="#5403fa"&gt;http://www.riverasp.net&lt;/font&gt;&lt;/a&gt;.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;You can put your ADS free for limited time on our site.&lt;/p&gt;
&lt;p&gt;And you can&amp;nbsp;&amp;nbsp;also add&amp;nbsp;your .NET Resources&lt;/p&gt;
&lt;p&gt;And you can&amp;nbsp;publish&amp;nbsp;Tutorials and Articles&amp;nbsp;on the site. &lt;/p&gt;
&lt;p&gt;There is a chance to&amp;nbsp;make money&amp;nbsp;by publishing&amp;nbsp;your Articles on our&amp;nbsp;site.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Developers at&lt;/p&gt;
&lt;p&gt;&lt;a href="mailto:support@riverasp.net"&gt;support@riverasp.net&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.riverasp.net/"&gt;&lt;font color="#5403fa"&gt;http://www.riverasp.net&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;</description></item><item><title>How to get ProfileCommon to work with Web Applications?</title><link>http://forums.asp.net/thread/2161837.aspx</link><pubDate>Fri, 08 Feb 2008 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2161837</guid><dc:creator>degt</dc:creator><description>&lt;p&gt;I am stumped with this problem and it appears to me it was a gross omission in the new web application template.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Since it is not a web site project I don&amp;#39;t get the automatically generated ProfileCommon. So I went my way to define it in my Global.asax to match all the properties of the profile and profile groups.&lt;/p&gt;&lt;p&gt;It compiles fine but at runtime I get a duplicate error. I says ProfileCommon exists twice! how comes?&lt;/p&gt;&lt;p&gt;&amp;nbsp;If I rename it to something else (ProfileCommonMine) it craps out at runtime with a casting exception (ProfileCommon to ProfileCommonMine) even though ProfileCommonMine also derives from ProfileBase just as ProfileCommon does.&lt;/p&gt;&lt;p&gt;&amp;nbsp;If I remove my definition the the application does not compile.&lt;/p&gt;&lt;p&gt;Is there any good solution? I am using VS.2008 (so no plugin) and I do not want to convert it to a web site project. We need to deploy it as DLL. &lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>VS 2008 Web Application Project and Custom Profile</title><link>http://forums.asp.net/thread/2081623.aspx</link><pubDate>Fri, 28 Dec 2007 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2081623</guid><dc:creator>tcarrico</dc:creator><description>&lt;p&gt;I have been trying to get this to work for most of the day.&amp;nbsp; I have an application that was a VS2005 Web Site project with custom &amp;quot;properties&amp;quot; defined for the profile.&amp;nbsp; I have tried to follow the WAP sugestions that Scott Gu posted about converting to WAP.&lt;/p&gt;
&lt;p&gt;I created the ProfileCommon that would have been autogenerated in a Web Site project, and included it in the WAP project.&amp;nbsp; this profile Common was basically a copy of the cs file that got generated into the temporary asp.net folder.&lt;/p&gt;
&lt;p&gt;If&amp;nbsp;I leave the profile properties defined in the web.config,&amp;nbsp;I get a compilation error when&amp;nbsp;I navigate to the site.&amp;nbsp; The commpilation error states that&amp;nbsp;I have two types with with the same Name &amp;quot;ProfileCommon&amp;quot;.&amp;nbsp; Looking in the temp asp.net folder, i see a file with app_code in it&amp;#39;s name, and sure enough the error says that this file, and the website dll both have the same type defined.&lt;/p&gt;
&lt;p&gt;If I remove my &amp;quot;manually&amp;quot; created ProfileCommon the project won&amp;#39;t compile in VS.&amp;nbsp;If&amp;nbsp;I remove the custom property definition from the web.config and leave my&amp;nbsp;&amp;quot;Manual ProfileCommon&amp;quot; in the project, everything seems to work&amp;nbsp;until&amp;nbsp;I access the profile object. At that point&amp;nbsp;I get a casting exception that states that DefaultProfile cannot be cast into&amp;nbsp;tpy&amp;nbsp;ProfileCommon.&amp;nbsp; My assumption is that when the web.config has the config block, the httpModule for Profile creates the ProfileCommon instance and puts it into the httpContext.&amp;nbsp; With Web Site Projects the IDE wires this up at design time.&amp;nbsp; With WAP it doesn&amp;#39;t?&amp;nbsp; Is that correct?&lt;/p&gt;
&lt;p&gt;To sum this up, how do&amp;nbsp;I get an ASP.NET WAP project (VS 2008)&amp;nbsp;to work with custom profile properties defined in a web.config file?&lt;/p&gt;</description></item><item><title>Dictionary as Profile Property</title><link>http://forums.asp.net/thread/1995336.aspx</link><pubDate>Wed, 07 Nov 2007 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1995336</guid><dc:creator>ahsteele</dc:creator><description>&lt;p&gt;I am attempting to set a Dictionary as a Profile property but am having a problem doing so.&amp;nbsp; I&amp;#39;ve added the property using the syntax below.&lt;br /&gt;&lt;/p&gt;&lt;pre class="coloredcode"&gt;&amp;lt;&lt;span class="tag"&gt;profile&lt;/span&gt;&amp;gt;&lt;br /&gt;   &amp;lt;&lt;span class="tag"&gt;properties&lt;/span&gt;&amp;gt;&lt;br /&gt;      &amp;lt;&lt;span class="tag"&gt;add&lt;/span&gt;&lt;span class="attr"&gt; type=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;System.Collections.Generic.Dictionary&amp;amp;lt;System.String,AppName.BLL.MyOwnClass&amp;amp;gt;&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; name=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;MyDictionary&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; serializeAs=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;Binary&amp;quot;&lt;/span&gt;/&amp;gt;&lt;br /&gt;   &amp;lt;/&lt;span class="tag"&gt;properties&lt;/span&gt;&amp;gt;&lt;br /&gt;&amp;lt;/&lt;span class="tag"&gt;profile&lt;/span&gt;&amp;gt;&lt;/pre&gt;&lt;p&gt;&amp;nbsp;&lt;br /&gt;I am able to work with this property in Visual Studio and it behaves correctly (intellisense etc.).&amp;nbsp; However, once running the moment I attempt to access any part of the profile I receive the following error:&lt;br /&gt;&lt;/p&gt;&lt;div style="margin-left:40px;"&gt;Attempting to load this property&amp;#39;s type resulted in the following error: Could not load file or assembly &amp;#39;AppName.BLL.MyOwnClass&amp;gt;&amp;#39; or one of its dependencies. The filename, directory name, or volume label syntax is incorrect.&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;The fact that the &lt;span style="font-weight:bold;"&gt;&amp;gt;&lt;/span&gt; is attached at the end of the file or assembly description leads me to believe that for some reason it is not reading the class as AppName.BLL.MyOwnClass but rather AppName.BLL.MyOwnClass&amp;gt;.&amp;nbsp; If I load AppName.BLL.MyOwnClass into its own property it behaves correctly in Visual Studio as well as at runtime.&lt;/p&gt;&lt;p&gt;Any help would be greatly appreciated.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>ASP.net 2.0 / Profile problems...</title><link>http://forums.asp.net/thread/1985228.aspx</link><pubDate>Thu, 01 Nov 2007 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1985228</guid><dc:creator>talon121</dc:creator><description>&lt;p&gt;Okay,&lt;/p&gt;
&lt;p&gt;I have a unique situation I&amp;#39;m going nuts trying to figure out this solution.&lt;br /&gt;&lt;br /&gt;The problem is when I attempt to save a profile using explicit ie.&lt;br /&gt;&lt;br /&gt;&lt;font color="#0000ff" size="2"&gt;Protected&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Sub&lt;/font&gt;&lt;font size="2"&gt; Page_Load(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;ByVal&lt;/font&gt;&lt;font size="2"&gt; sender &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Object&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;ByVal&lt;/font&gt;&lt;font size="2"&gt; e &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;font size="2"&gt; System.EventArgs) &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Handles&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Me&lt;/font&gt;&lt;font size="2"&gt;.Load&lt;br /&gt;&amp;nbsp;&amp;nbsp; TextBox1.Text = Profile(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;Name&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;)&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;End&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Sub&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Protected&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Sub&lt;/font&gt;&lt;font size="2"&gt; Button1_Click(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;ByVal&lt;/font&gt;&lt;font size="2"&gt; sender &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Object&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;ByVal&lt;/font&gt;&lt;font size="2"&gt; e &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;font size="2"&gt; System.EventArgs) &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Handles&lt;/font&gt;&lt;font size="2"&gt; Button1.Click&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;nbsp;&amp;nbsp; If&lt;/font&gt;&lt;font size="2"&gt; User.Identity.IsAuthenticated &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Then&lt;br /&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Profile.SetPropertyValue(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;Name&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;test&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Profile.Save()&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;nbsp;&amp;nbsp; End&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;If&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;End&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Sub&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;The sample above works ... But when I substitute&amp;nbsp; the &amp;quot;test&amp;quot; string, with textbox1.text it fails.&lt;br /&gt;&lt;br /&gt;Its a simple master page setup, with a textbox... Nothing special..I even tried telling it to CType(textbox1.text, String) but that also did not work...&lt;br /&gt;&lt;br /&gt;Anyone have a solution???&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Problem with profile of annonymous user in shopping cart application</title><link>http://forums.asp.net/thread/1948102.aspx</link><pubDate>Tue, 09 Oct 2007 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1948102</guid><dc:creator>nrlahoti</dc:creator><description>&lt;p&gt;I had developed a Shopping cart application in which i am making use of Profile and it is a persistent cart.In this application the requirement is that annonymous user can add the items in the cart and at the time of checkout he is required to enter his details.The problem is when i am opening two browser instances and if i add or delete an item in one browser instance it is getting reflected in the another and vice-versa. I want that the cart should be maintained separately for each annonymous user and for each session . The code that i had written in web.config is&lt;/p&gt;&lt;p&gt;&amp;lt;profile enabled=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;properties&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add name=&amp;quot;ShoppingCart&amp;quot; type=&amp;quot;StoreCart&amp;quot; serializeAs=&amp;quot;Binary&amp;quot; allowAnonymous=&amp;quot;true&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/properties&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/profile&amp;gt; &lt;/p&gt;&lt;p&gt;&amp;nbsp;Can you please suggest how should i proceed and maintain the items in the cart per annonymous user.&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</description></item></channel></rss>