473,400 Members | 2,163 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,400 software developers and data experts.

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:
[ArgumentNullException: Value cannot be null.
Parameter name: type]
System.Activator.CreateInstance(Type type, Boolean nonPublic) +2797139
System.Web.Profile.ProfileBase.CreateMyInstance(St ring username, Boolean
isAuthenticated) +76
System.Web.Profile.ProfileBase.Create(String username, Boolean
isAuthenticated) +312
System.Web.HttpContext.get_Profile() +89
Epafos.Central.UIL.CentralPage.InitializeCulture() in
c:\Central\Implementation\Solution\Central\UIL\App _Code\CentralPage.cs:20
ASP.login_aspx.__BuildControlTree(login_aspx __ctrl) in
c:\WebApps\Central\login.aspx:1
ASP.login_aspx.FrameworkInitialize() in
c:\WINNT\Microsoft.NET\Framework\v2.0.50727\Tempor ary ASP.NET
Files\central\48cb4824\70926901\App_Web_u0zezmhj.6 .cs:0
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint,
Boolean includeStagesAfterAsyncPoint) +40
System.Web.UI.Page.ProcessRequest() +86
System.Web.UI.Page.ProcessRequestWithNoAssert(Http Context context) +18
System.Web.UI.Page.ProcessRequest(HttpContext context) +49
ASP.login_aspx.ProcessRequest(HttpContext context) in
c:\WINNT\Microsoft.NET\Framework\v2.0.50727\Tempor ary ASP.NET
Files\central\48cb4824\70926901\App_Web_u0zezmhj.6 .cs:0

System.Web.CallHandlerExecutionStep.System.Web.Htt pApplication.IExecutionStep.Execute() +154
System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&
completedSynchronously) +64
----------------------------
Line 20 in
c:\Central\Implementation\Solution\Central\UIL\App _Code\CentralPage.cs file
is:
string languagePreference =
(string)System.Web.HttpContext.Current.Profile["LanguagePreference"];
-------------------------------
My profile related entries in web.config are:
<connectionStrings>
<add name="MembersDB"
connectionString="Database=Central;Server=GILDA\DE VE2005;User
ID=central;Password=central;Min Pool Size=5;Max Pool Size=50;Packet
Size=3072;Connection Lifetime=60;Application Name=CentralMemberships;"
providerName="System.Data.SqlClient"/>
</connectionStrings>

<profile defaultProvider="AspNetSqlProfileProvider">
<providers>
<clear/>
<add name="AspNetSqlProfileProvider"
type="System.Web.Profile.SqlProfileProvider" connectionStringName="MembersDB"
applicationName="Central"/>
</providers>
<properties>
<add name="LanguagePreference" type="string" defaultValue="el-GR"/>
<add name="GridPageSize" type="int" defaultValue="15"/>
</properties>
</profile>

Any help is appreciated.

Thanks
Nov 7 '06 #1
0 1316

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

Similar topics

3
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...
10
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...
2
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...
5
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...
0
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...
2
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...
1
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...
1
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...
0
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"...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
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...
0
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,...
0
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...
0
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...
0
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...

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.