Home > Net >  Help: value cannot be empty parameter name: type
Help: value cannot be empty parameter name: type

Time:09-23

I'm doing in vs2005 under win10 64 machine program, test run there is no problem in the unit,

But not published to the server is running under WINDOWS 2008, 64,

An error


Note: during the execution of the current Web request, an unhandled exception, please check the stack trace, to learn about the errors and mistakes in the code of the source of detailed information,

Exception details: System. ArgumentNullException: value cannot be empty,
Parameter name: type

The error source:


During the execution of the current Web request generated an unhandled exception, you can use the exception stack trace below to determine the reason and the location of the abnormal information,
The stack trace:

[ArgumentNullException: value cannot be empty,
Parameter name: type]
System. The Activator. CreateInstance (Type, Type, Boolean nonPublic) + 2796659
System. Web. Profile. ProfileBase. CreateMyInstance (String username, Boolean isAuthenticated) + 76
System. Web. Profile. ProfileBase. Create (String username, Boolean isAuthenticated) + 312
System. Web. HttpContext. Get_Profile (+ 89)
MasterPage_AdminMasterPage. Get_Profile () + 14
MasterPage_AdminMasterPage. BindMenu () + 13
MasterPage_AdminMasterPage. Page_Load (Object sender, EventArgs e) + 196
System. Web. Util. CalliHelper. EventArgFunctionCaller (IntPtr fp, the Object o, Object t, EventArgs e) + 15
System. Web. Util. CalliEventHandlerDelegateProxy. Callback (Object sender, EventArgs e) + 34
System. Web. UI. Control the onl oad (EventArgs e) + 99
System. Web. UI. Control. LoadRecursive () + 47
System. Web. UI. Control. LoadRecursive () + 131
System. Web. UI. Page. ProcessRequestMain (Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) + 1061

Version information: Microsoft.net Framework version: 2.0.50727.42; ASP.NET version: 2.0.50727.210


Use other machines released Windows 7 32 + vs2005 compiled and no problem,

I don't know how to solve? Have a headache,

CodePudding user response:

The right solution to generate platform to 64 try

CodePudding user response:

The problem is fucking, compile operation system platform, the general lack of related dependence, is bad, is not so easy to solve,

CodePudding user response:

You Windows2008 machine no. Netframework 2.0

CodePudding user response:

You put the iis connection pool. Netframework version Settings,
See if the.net fraemwork 3.5 4

CodePudding user response:

Just compile system environment is different, the other did not change!
Windows 7 32 + vs2005 can,
Win10 64 + vs2005 can be local, not a publish server,
And the server should have nothing to do,
Call the Profile error,

CodePudding user response:

This is the version and the version problem space to support your local development is not the same as the version of the modified version or webconfing change just go to the digital space changed last year I met several similar problems also put version and the operation mode change
  • Related