469,592 Members | 2,041 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,592 developers. It's quick & easy.

msbuild : Message: Value cannot be null. Parameter name: type

HI all

I am using msbuild to compile my web application project. After
building the solution I get the following error message:
Server Error in '/Community' Application.
--------------------------------------------------------------------------------

Value cannot be null.
Parameter name: type
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.

Exception Details: System.ArgumentNullException: Value cannot be null.
Parameter name: type

Source Error:

An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace below.
Stack Trace:
[ArgumentNullException: Value cannot be null.
Parameter name: type]
System.Activator.CreateInstance(Type type, Boolean nonPublic)
+2796915
System.Web.Profile.ProfileBase.CreateMyInstance(St ring username,
Boolean isAuthenticated) +76
System.Web.Profile.ProfileBase.Create(String username, Boolean
isAuthenticated) +312
CommunityServer.ASPNet20MemberRole.CSProfiles.Crea te(String
userName, Boolean authenticated) +40

CommunityServer.Components.CommonDataProvider.Popu lateUserFromIDataReader(IDataReader
dr, IMembershipUser member, Boolean isEditable, Boolean includeAudit)
+157

CommunityServer.Components.CommonDataProvider.cs_P opulateUserFromIDataReader(IDataReader
dr, Boolean isEditable) +59
CommunityServer.Data.SqlCommonDataProvider.GetUser (Int32 userID,
String username, Boolean isOnline, Boolean isEditable, String
lastAction) +516
CommunityServer.Data.SqlCommonDataProvider.GetAnon ymousUser(Int32
settingsID) +457
CommunityServer.Users.GetAnonymousUser(Boolean fromCache) +242
CommunityServer.Users.GetAnonymousUser() +29
CommunityServer.Users.GetUser(Int32 userID, String username, Boolean
isOnline, Boolean isCacheable) +147
CommunityServer.Users.GetUser(Boolean isOnline) +48
CommunityServer.Components.CSContext.get_User() +129
CommunityServer.CSHttpModule.Application_Authorize Request(Object
source, EventArgs e) +191

System.Web.SyncEventExecutionStep.System.Web.HttpA pplication.IExecutionStep.Execute()
+92
System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&
completedSynchronously) +64

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42;
ASP.NET Version:2.0.50727.42

If I build my solution in Visual Studio it works correctly. Therefore,
i am assuming this is an msbuild issue. Has anyone experienced this
before and does anyone have a resoution or any ideas?

Cheers, Paul

Aug 31 '06 #1
2 14261
I got the same error yesterday, but it happenes when i deploy the application
to the server.
it works fine on my pc BUT when i build the application with msbuild and
then copy the built files to the server i get the error when i run the
application.
it doesn't give any errors while building though.

i am using the web deployment project add in to build the web application.
"pa***********@gmail.com" wrote:
HI all

I am using msbuild to compile my web application project. After
building the solution I get the following error message:
Server Error in '/Community' Application.
--------------------------------------------------------------------------------

Value cannot be null.
Parameter name: type
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.

Exception Details: System.ArgumentNullException: Value cannot be null.
Parameter name: type

Source Error:

An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace below.
Stack Trace:
[ArgumentNullException: Value cannot be null.
Parameter name: type]
System.Activator.CreateInstance(Type type, Boolean nonPublic)
+2796915
System.Web.Profile.ProfileBase.CreateMyInstance(St ring username,
Boolean isAuthenticated) +76
System.Web.Profile.ProfileBase.Create(String username, Boolean
isAuthenticated) +312
CommunityServer.ASPNet20MemberRole.CSProfiles.Crea te(String
userName, Boolean authenticated) +40

CommunityServer.Components.CommonDataProvider.Popu lateUserFromIDataReader(IDataReader
dr, IMembershipUser member, Boolean isEditable, Boolean includeAudit)
+157

CommunityServer.Components.CommonDataProvider.cs_P opulateUserFromIDataReader(IDataReader
dr, Boolean isEditable) +59
CommunityServer.Data.SqlCommonDataProvider.GetUser (Int32 userID,
String username, Boolean isOnline, Boolean isEditable, String
lastAction) +516
CommunityServer.Data.SqlCommonDataProvider.GetAnon ymousUser(Int32
settingsID) +457
CommunityServer.Users.GetAnonymousUser(Boolean fromCache) +242
CommunityServer.Users.GetAnonymousUser() +29
CommunityServer.Users.GetUser(Int32 userID, String username, Boolean
isOnline, Boolean isCacheable) +147
CommunityServer.Users.GetUser(Boolean isOnline) +48
CommunityServer.Components.CSContext.get_User() +129
CommunityServer.CSHttpModule.Application_Authorize Request(Object
source, EventArgs e) +191

System.Web.SyncEventExecutionStep.System.Web.HttpA pplication.IExecutionStep.Execute()
+92
System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&
completedSynchronously) +64

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42;
ASP.NET Version:2.0.50727.42

If I build my solution in Visual Studio it works correctly. Therefore,
i am assuming this is an msbuild issue. Has anyone experienced this
before and does anyone have a resoution or any ideas?

Cheers, Paul

Sep 19 '06 #2
I think i found the problem
don't use the (remove App_Code.Compiled file) option

"Toty Santana" wrote:
I got the same error yesterday, but it happenes when i deploy the application
to the server.
it works fine on my pc BUT when i build the application with msbuild and
then copy the built files to the server i get the error when i run the
application.
it doesn't give any errors while building though.

i am using the web deployment project add in to build the web application.
"pa***********@gmail.com" wrote:
HI all

I am using msbuild to compile my web application project. After
building the solution I get the following error message:
Server Error in '/Community' Application.
--------------------------------------------------------------------------------

Value cannot be null.
Parameter name: type
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.

Exception Details: System.ArgumentNullException: Value cannot be null.
Parameter name: type

Source Error:

An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace below.
Stack Trace:
[ArgumentNullException: Value cannot be null.
Parameter name: type]
System.Activator.CreateInstance(Type type, Boolean nonPublic)
+2796915
System.Web.Profile.ProfileBase.CreateMyInstance(St ring username,
Boolean isAuthenticated) +76
System.Web.Profile.ProfileBase.Create(String username, Boolean
isAuthenticated) +312
CommunityServer.ASPNet20MemberRole.CSProfiles.Crea te(String
userName, Boolean authenticated) +40

CommunityServer.Components.CommonDataProvider.Popu lateUserFromIDataReader(IDataReader
dr, IMembershipUser member, Boolean isEditable, Boolean includeAudit)
+157

CommunityServer.Components.CommonDataProvider.cs_P opulateUserFromIDataReader(IDataReader
dr, Boolean isEditable) +59
CommunityServer.Data.SqlCommonDataProvider.GetUser (Int32 userID,
String username, Boolean isOnline, Boolean isEditable, String
lastAction) +516
CommunityServer.Data.SqlCommonDataProvider.GetAnon ymousUser(Int32
settingsID) +457
CommunityServer.Users.GetAnonymousUser(Boolean fromCache) +242
CommunityServer.Users.GetAnonymousUser() +29
CommunityServer.Users.GetUser(Int32 userID, String username, Boolean
isOnline, Boolean isCacheable) +147
CommunityServer.Users.GetUser(Boolean isOnline) +48
CommunityServer.Components.CSContext.get_User() +129
CommunityServer.CSHttpModule.Application_Authorize Request(Object
source, EventArgs e) +191

System.Web.SyncEventExecutionStep.System.Web.HttpA pplication.IExecutionStep.Execute()
+92
System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&
completedSynchronously) +64

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42;
ASP.NET Version:2.0.50727.42

If I build my solution in Visual Studio it works correctly. Therefore,
i am assuming this is an msbuild issue. Has anyone experienced this
before and does anyone have a resoution or any ideas?

Cheers, Paul
Sep 19 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Sanjay Godbole | last post: by
5 posts views Thread by Al | last post: by
4 posts views Thread by =?Utf-8?B?QmFidU1hbg==?= | last post: by
7 posts views Thread by shapper | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.