Activator.CreateInstance throws ArgumentNullException for parameter 'Type'

岁酱吖の 提交于 2019-12-06 12:48:46

The solution to my error was to uncheck this option from the Web Deployment project:

Treat as library component (remove App_Code.Compiled file)

Simply building the web deployment project again after the checkbox change is sometimes not sufficient.

You should rebuild the web site, or clean the ASP.NET temporary ASP.NET Files folder, usually located in "%WINDIR%Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files".

I've recently experienced this problem and it turned out to be a missing dependency. Using the fuslogvw.exe tool provided with visual studio finally identified the problem.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!