Asked by:
Error : System.Runtime.Remoting.Proxies.__TransparentProxy

Question
-
Application converted into framework 1.1 to framework 4.0.
while retriving of report getting exception " System.Runtime.Remoting.Proxies.__TransparentProxy "Code :
Activator.GetObject(typeof
Concern :
want to know , is this code run in version 4.0 , if not how to make conversion with 4.0
- Moved by Barry Wang Thursday, June 27, 2013 8:58 AM
Wednesday, June 26, 2013 7:33 AM
All replies
-
Hi Vimal das,
Welcome to the MSDN forum.
What's your project type and programming language? For specific project upgrade issue, you should post on other forums such as C# language,VB language or WinForm. For your problem, it will be more appropriate for this forum:
http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=netfxbcl
By the way, the code from you can be run on both .NET 1.1 and .NET 4.0 http://msdn.microsoft.com/en-us/library/system.activator.getobject.aspx Have you change your target to .NET Framework 4.0?
Regards,
Barry Wang
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help.Thursday, June 27, 2013 2:52 AM -
Hi,
Project is in Asp.net with C# 1.1 . we converted into 4.0 . Specified Traget framework is 4.0.
Application is in running mode, But there is a Report section with have an issue
Code :
Activator.GetObject(typeof("string","URL");Getting that exception this line of code.
reg,
Vimal
Thursday, June 27, 2013 6:44 AM -
Hi Vimal,
I would recommend you ask in this forum instead from your description:
This forum only supports .NET Framework installation related issue.
Regards,
Barry Wang
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help.Thursday, June 27, 2013 8:58 AM -
There are 3 problem with the code
1) typeof() has only one parameter
2) the parameter is a type name and not a string. So "string" shouldn't contain double quotes
3) There is no type 'URL'. There is a type 'URI'.
jdweng
Thursday, June 27, 2013 9:13 AM -
Hi,
In above specified code is a sample which is used such a way :
Code is Like :
remoteConfig =
if (remoteConfig)
{
reportFacade = (GEMSReports.
ReportFacade ) Activator.GetObject(typeof(GEMSReports.ReportFacade),
ConfigurationSettings.AppSettings["reportRemoteURL"]);Remarks : code is executed in version 1.1 but issue with version 4.0.
Friday, June 28, 2013 6:46 AM