473,750 Members | 2,596 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Error accessing the membership profile object


My app is asp.net 2.0. It works fine on my development machine. When I am
deploying it to the production I get an error.
---------------------
The error is:
Value cannot be null.
Parameter name: type
------------------------
The stack trace is:
[ArgumentNullExc eption: Value cannot be null.
Parameter name: type]
System.Activato r.CreateInstanc e(Type type, Boolean nonPublic) +2797139
System.Web.Prof ile.ProfileBase .CreateMyInstan ce(String username, Boolean
isAuthenticated ) +76
System.Web.Prof ile.ProfileBase .Create(String username, Boolean
isAuthenticated ) +312
System.Web.Http Context.get_Pro file() +89
Epafos.Central. UIL.CentralPage .InitializeCult ure() in
c:\Central\Impl ementation\Solu tion\Central\UI L\App_Code\Cent ralPage.cs:20
ASP.login_aspx. __BuildControlT ree(login_aspx __ctrl) in
c:\WebApps\Cent ral\login.aspx: 1
ASP.login_aspx. FrameworkInitia lize() in
c:\WINNT\Micros oft.NET\Framewo rk\v2.0.50727\T emporary ASP.NET
Files\central\4 8cb4824\7092690 1\App_Web_u0zez mhj.6.cs:0
System.Web.UI.P age.ProcessRequ est(Boolean includeStagesBe foreAsyncPoint,
Boolean includeStagesAf terAsyncPoint) +40
System.Web.UI.P age.ProcessRequ est() +86
System.Web.UI.P age.ProcessRequ estWithNoAssert (HttpContext context) +18
System.Web.UI.P age.ProcessRequ est(HttpContext context) +49
ASP.login_aspx. ProcessRequest( HttpContext context) in
c:\WINNT\Micros oft.NET\Framewo rk\v2.0.50727\T emporary ASP.NET
Files\central\4 8cb4824\7092690 1\App_Web_u0zez mhj.6.cs:0

System.Web.Call HandlerExecutio nStep.System.We b.HttpApplicati on.IExecutionSt ep.Execute() +154
System.Web.Http Application.Exe cuteStep(IExecu tionStep step, Boolean&
completedSynchr onously) +64
----------------------------
Line 20 in
c:\Central\Impl ementation\Solu tion\Central\UI L\App_Code\Cent ralPage.cs file
is:
string languagePrefere nce =
(string)System. Web.HttpContext .Current.Profil e["LanguagePrefer ence"];
-------------------------------
My profile related entries in web.config are:
<connectionStri ngs>
<add name="MembersDB "
connectionStrin g="Database=Cen tral;Server=GIL DA\DEVE2005;Use r
ID=central;Pass word=central;Mi n Pool Size=5;Max Pool Size=50;Packet
Size=3072;Conne ction Lifetime=60;App lication Name=CentralMem berships;"
providerName="S ystem.Data.SqlC lient"/>
</connectionStrin gs>

<profile defaultProvider ="AspNetSqlProf ileProvider">
<providers>
<clear/>
<add name="AspNetSql ProfileProvider "
type="System.We b.Profile.SqlPr ofileProvider" connectionStrin gName="MembersD B"
applicationName ="Central"/>
</providers>
<properties>
<add name="LanguageP reference" type="string" defaultValue="e l-GR"/>
<add name="GridPageS ize" type="int" defaultValue="1 5"/>
</properties>
</profile>

Any help is appreciated.

Thanks
Nov 7 '06 #1
0 1335

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

Similar topics

3
1074
by: ad | last post by:
I want to integrate Profile with Membership. Have there any article about it. I have find some article in http://beta.asp.net/QUICKSTART/aspnet/doc/profile/default.aspx But it is not what I want.
10
1808
by: Ray Booysen | last post by:
Hi all I am using the membership provider and am storing all the login details via this system. However, I require to add additional fields that may change over time that are related to the User. E.g. DOB, Place of birth and all that. What is the best way to do this? Create a second table taking the primary key of the aspnet_Users table and use this as a foreign key in
2
1202
by: Jesse Johnson | last post by:
I have an important question. How would I access profile information on another member? Exaple: John and Sue are both members of an aplpication, but when john is logged in he needs to see Sue's contact # which is stored in her profile data. How would I write code to acees another members profile information. Please help, thanks in advance. -- Jesse Johnson
5
1227
by: Ryan | last post by:
I have a SQLDataSource I want to tie to the currently logged in user. Is there any way to use User.Identity().Name as a Parameter in the datasource? The only way I've got this to work is by creating a label (label1) and OnInit() setting label1.text = User.Identity().Name. Then I can set the SQLDataSource parameter to the value of the control, label1. Thanks, Ryan
0
959
by: Jesse Johnson | last post by:
I have this block of code below, but when ran it only creates the member it doesnt fill in his profile data. Is there something I am missing? Please let me know what I can do, just trying to progamatically create a member and fill in his profile information. Thanks in advance. protected void btnCreateuser_Click(object sender, EventArgs e) { // Store username for use string strNewUsername = tbUserName.Text;
2
6356
by: Peter Afonin | last post by:
Hello, I'm using CreateUserWizard control in ASP.NET 2.0. I'm storing the data in SQL Server 2005. The first and last steps run smoothly without any problems. But I added one middle step to collect some other information from the user. I've added this to Web.config: <profile>
1
1700
by: =?Utf-8?B?Tmljaw==?= | last post by:
Hi all, i am new to membership, what i am trying to do is that. my asp pages data are from server 1, and the membership data are from server 2. so can i write do different connection string in web.config? Cheers Nick
1
1133
by: Larry Bud | last post by:
Is it bad practice to access these tables? I'd like to add a "lastname" and "firstname" to the users table, and just use SQL to access them. Is there an issue in doing this, or in using the .NET create application_id in these tables? What's the alternative? (we're still not on Active directory).
0
1397
by: =?Utf-8?B?QV9SZXB1YmxpY2Fu?= | last post by:
This is a portion of my Web.config file: <system.web> <membership defaultProvider="SqlProvider"> <providers> <clear/> <add name="SqlProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="SqlServices" applicationName="CollegeRepublicans"
0
8838
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9583
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
9396
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
9342
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,...
0
9256
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4716
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
4888
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2807
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2226
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.