473,395 Members | 1,856 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,395 software developers and data experts.

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 14714
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Chris Herring | last post by:
Hi there: Well, let me start off by saying that I am a Visual Studio drag and drop weenie, not a real programmer. So I tend to get confused when things do not look like the instructions said they...
21
by: Michael Bierman | last post by:
Please forgive the simplicy of this question. I have the following code which attempts to determine the color of some text and set other text to match that color. It works fine in Firefox, but does...
1
by: Sanjay Godbole | last post by:
Hi, I am getting following error while executing the axpx page. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for...
5
by: Al | last post by:
Hi all We have created a xml file that imports a single project using the Import element. This project compiles to a class library, but has references to two other projects that are also class...
3
by: Danny | last post by:
Hi I trying to master msBuild but have a problem. I have a solution that I wish to build using msbuild but want to override BeforeBuild/AfterBuild targets for each of the projects. I trying to...
4
by: =?Utf-8?B?QmFidU1hbg==?= | last post by:
Hi, I have a GridView and a SqlDataSource controls on a page. The SqlDataSource object uses stored procedures to do the CRUD operations. The DataSource has three columns one of which -...
0
by: pankajprakash | last post by:
Hi all I am using the Ajax control toolkit and want to the fill the gridview but at the time of rendering it occurs the error "Sys.ArgumentNullException: Value cannot be null. Parameter name:...
7
by: shapper | last post by:
Hello, I am working on an ASP.MET MVC Web Application with NET 3.5 in VS 2008. I need to run some extra tasks on this project build so I download MSBuild from http://msbuildtasks.tigris.org/....
2
by: qwedster | last post by:
Folk! How to programattically check if null value exists in database table (using stored procedure)? I know it's possble in the Query Analyzer (see last SQL query batch statements)? But how...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.