Exception about "Could not load file or assembly Namespace.Components' or one of its dependencies."

   由于asp.net的权限问题,所以如果在site中使用了Assembly.Load()方法,那么很容易报这个错误。我的整个解决方法如下:

1.执行 c:\winnt\microsoft.net\framework\[version number]\aspnet_regiis.exe -i

2. Assembly.Load()使用的参数应该是fullname,类似于 EMC.CMA.Objectiva.SharePoint.Components, Version=1.0.0.0, Culture=neutral, PublicKeyToken=4ad833eee0b6bbc4

3.  如果还是不行,那么给C:\windows 赋予 aspnet execute and read permition.

再要不行,我投降,没辙了.

参考文章:http://social.msdn.microsoft.com/Forums/en-US/clr/thread/9e4d9631-6144-461e-9c83-94a3e2cd3560/

posted @ 2009-01-20 19:37  彷徨......  阅读(8326)  评论(0编辑  收藏  举报