This issue is resolved. The problem was that in the Project.dll.config
file, there was a configuration of remoting like this:
<system.runtime.remoting>
<application>
<channels>
<channel ref="http">
<clientProviders>
<formatter ref="binary"/>
</clientProviders>
</channel>
</channels>
<client url="" displayName="">
<activated />
</client>
</application>
</system.runtime.remoting>
As, we were directly instantiating the types exposed via the <activated/>
elements in it, rather than getting them via remote calls, so it was causing an exception. After commenting the entire remoting configuration section in web.config
, it started working.