Thursday, November 24, 2011

Enterprise Portal: Failed to “Generate Proxies”

Hi,

While creating proxy class from AOT and after generating proxy for the same from Tools->Dev. Tools-> Web Dev. -> Proxy, using Generate Proxy form. It gives the errors "ClrObject static method invocation error."

To overcome this,
1. go to AOT->Classes->SysEPDeployment->createDevWebsiteProxyDir().
2. find and comment below line,

dir = epSharepointAdmin.GetAppCodeDirectoryFromSiteId(guid2str(epGlobalParam.DevelopmentSiteId));
3. replace it with (locate your virtual directory app_code folder)
dir = "C:\\Inetpub\\wwwroot\\wss\\VirtualDirectories\\sharepoint80\\App_Code"; 
4. Save the class file.

Now, again run the 'Generate Proxy' class. 
 
It works fine.

Thanks.
/Ashlesh

No comments:

Post a Comment