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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • paul.dunstone@gmail.com

    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.Argument NullException: 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:


    [ArgumentNullExc eption: Value cannot be null.
    Parameter name: type]
    System.Activato r.CreateInstanc e(Type type, Boolean nonPublic)
    +2796915
    System.Web.Prof ile.ProfileBase .CreateMyInstan ce(String username,
    Boolean isAuthenticated ) +76
    System.Web.Prof ile.ProfileBase .Create(String username, Boolean
    isAuthenticated ) +312
    CommunityServer .ASPNet20Member Role.CSProfiles .Create(String
    userName, Boolean authenticated) +40

    CommunityServer .Components.Com monDataProvider .PopulateUserFr omIDataReader(I DataReader
    dr, IMembershipUser member, Boolean isEditable, Boolean includeAudit)
    +157

    CommunityServer .Components.Com monDataProvider .cs_PopulateUse rFromIDataReade r(IDataReader
    dr, Boolean isEditable) +59
    CommunityServer .Data.SqlCommon DataProvider.Ge tUser(Int32 userID,
    String username, Boolean isOnline, Boolean isEditable, String
    lastAction) +516
    CommunityServer .Data.SqlCommon DataProvider.Ge tAnonymousUser( Int32
    settingsID) +457
    CommunityServer .Users.GetAnony mousUser(Boolea n fromCache) +242
    CommunityServer .Users.GetAnony mousUser() +29
    CommunityServer .Users.GetUser( Int32 userID, String username, Boolean
    isOnline, Boolean isCacheable) +147
    CommunityServer .Users.GetUser( Boolean isOnline) +48
    CommunityServer .Components.CSC ontext.get_User () +129
    CommunityServer .CSHttpModule.A pplication_Auth orizeRequest(Ob ject
    source, EventArgs e) +191

    System.Web.Sync EventExecutionS tep.System.Web. HttpApplication .IExecutionStep .Execute()
    +92
    System.Web.Http Application.Exe cuteStep(IExecu tionStep step, Boolean&
    completedSynchr onously) +64

    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:2.0.507 27.42;
    ASP.NET Version:2.0.507 27.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

  • Toty Santana

    #2
    RE: msbuild : Message: Value cannot be null. Parameter name: type

    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.


    "paul.dunstone@ 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.Argument NullException: 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:
    >
    >
    [ArgumentNullExc eption: Value cannot be null.
    Parameter name: type]
    System.Activato r.CreateInstanc e(Type type, Boolean nonPublic)
    +2796915
    System.Web.Prof ile.ProfileBase .CreateMyInstan ce(String username,
    Boolean isAuthenticated ) +76
    System.Web.Prof ile.ProfileBase .Create(String username, Boolean
    isAuthenticated ) +312
    CommunityServer .ASPNet20Member Role.CSProfiles .Create(String
    userName, Boolean authenticated) +40
    >
    CommunityServer .Components.Com monDataProvider .PopulateUserFr omIDataReader(I DataReader
    dr, IMembershipUser member, Boolean isEditable, Boolean includeAudit)
    +157
    >
    CommunityServer .Components.Com monDataProvider .cs_PopulateUse rFromIDataReade r(IDataReader
    dr, Boolean isEditable) +59
    CommunityServer .Data.SqlCommon DataProvider.Ge tUser(Int32 userID,
    String username, Boolean isOnline, Boolean isEditable, String
    lastAction) +516
    CommunityServer .Data.SqlCommon DataProvider.Ge tAnonymousUser( Int32
    settingsID) +457
    CommunityServer .Users.GetAnony mousUser(Boolea n fromCache) +242
    CommunityServer .Users.GetAnony mousUser() +29
    CommunityServer .Users.GetUser( Int32 userID, String username, Boolean
    isOnline, Boolean isCacheable) +147
    CommunityServer .Users.GetUser( Boolean isOnline) +48
    CommunityServer .Components.CSC ontext.get_User () +129
    CommunityServer .CSHttpModule.A pplication_Auth orizeRequest(Ob ject
    source, EventArgs e) +191
    >
    System.Web.Sync EventExecutionS tep.System.Web. HttpApplication .IExecutionStep .Execute()
    +92
    System.Web.Http Application.Exe cuteStep(IExecu tionStep step, Boolean&
    completedSynchr onously) +64
    >
    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:2.0.507 27.42;
    ASP.NET Version:2.0.507 27.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
    >
    >

    Comment

    • Toty Santana

      #3
      RE: msbuild : Message: Value cannot be null. Parameter name: type

      I think i found the problem
      don't use the (remove App_Code.Compil ed 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.
      >
      >
      "paul.dunstone@ 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.Argument NullException: 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:


      [ArgumentNullExc eption: Value cannot be null.
      Parameter name: type]
      System.Activato r.CreateInstanc e(Type type, Boolean nonPublic)
      +2796915
      System.Web.Prof ile.ProfileBase .CreateMyInstan ce(String username,
      Boolean isAuthenticated ) +76
      System.Web.Prof ile.ProfileBase .Create(String username, Boolean
      isAuthenticated ) +312
      CommunityServer .ASPNet20Member Role.CSProfiles .Create(String
      userName, Boolean authenticated) +40

      CommunityServer .Components.Com monDataProvider .PopulateUserFr omIDataReader(I DataReader
      dr, IMembershipUser member, Boolean isEditable, Boolean includeAudit)
      +157

      CommunityServer .Components.Com monDataProvider .cs_PopulateUse rFromIDataReade r(IDataReader
      dr, Boolean isEditable) +59
      CommunityServer .Data.SqlCommon DataProvider.Ge tUser(Int32 userID,
      String username, Boolean isOnline, Boolean isEditable, String
      lastAction) +516
      CommunityServer .Data.SqlCommon DataProvider.Ge tAnonymousUser( Int32
      settingsID) +457
      CommunityServer .Users.GetAnony mousUser(Boolea n fromCache) +242
      CommunityServer .Users.GetAnony mousUser() +29
      CommunityServer .Users.GetUser( Int32 userID, String username, Boolean
      isOnline, Boolean isCacheable) +147
      CommunityServer .Users.GetUser( Boolean isOnline) +48
      CommunityServer .Components.CSC ontext.get_User () +129
      CommunityServer .CSHttpModule.A pplication_Auth orizeRequest(Ob ject
      source, EventArgs e) +191

      System.Web.Sync EventExecutionS tep.System.Web. HttpApplication .IExecutionStep .Execute()
      +92
      System.Web.Http Application.Exe cuteStep(IExecu tionStep step, Boolean&
      completedSynchr onously) +64

      --------------------------------------------------------------------------------
      Version Information: Microsoft .NET Framework Version:2.0.507 27.42;
      ASP.NET Version:2.0.507 27.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

      Comment

      Working...