Error Cannot Evaluate Field Of A Proxy Object
ASP.NET Community Standup Forums Help Home/ASP.NET Forums/Advanced ASP.NET/Enterprise Services Integration/Error, please help : Cannot Evaluate Field of a Proxy Object Error, please help : Cannot Evaluate Field of a Proxy Object RSS 0 replies Last post Jan 28, 2004 03:15 AM by mikemalter ‹ Previous Thread|Next Thread › Print Share Twitter Facebook Email Shortcuts Active Threads Unanswered Threads Unresolved Threads Support Options Advanced Search Reply mikemalter None 0 Points 24 Posts Error, please help : Cannot Evaluate Field of a Proxy Object Jan 28, 2004 02:26 AM|mikemalter|LINK I have a class where I am using Enterprise Services. I have added properties to my class, however the calling program cannot access them. When I step through with the debugger, I get the cannot evaluate field of a proxy object. When I step through the code into the class, I do get the right value from the database, but when I return it is always set to 0. So, how do I use properties in a class that is inhereted from Component Services. Any help would be greatly appreciated. Thank you in advance. Here is a snippet: => This is how I call it public string GetAnID( string name ) { int SchoolID; School school = new School(); school.Name = name; -> Cannot Evaluate Field of a Proxy Object school.GetIDFromName(); SchoolID = school.SchoolID -> Cannot Evaluate Field of a Proxy Object return SchoolID.ToString(); } ==> This is a snippit of the class I call [JustInTimeActivation(true)] [Transaction(TransactionOption.Required)] [Synchronization(SynchronizationOption.Required)] public class School : ServicedComponent { private int schoolID; private string name; public School() { ClassModule = "BusinessLayer.School."; SchoolID = 0; Name = ""; } public string Name{get{ return this.name; }set{ this.name = value; }} public int SchoolID{get{ return this.schoolID; }set{ this.schoolID = value; }} public void GetIDFromLabel() { DataLayer.School school = new DataLayer.School(); try { if ( Name.Length > 0 ) { SchoolID = school.GetIDFromLabel( Name ); ContextUtil.SetComplete(); school.Dispose(); if ( SchoolID > (int) SchoolIDConstant.None ) { Error = (int)
here, where I'm doing a RegisterActivatedServiceType() on the server, and a Activator.CreateInstance() on the client, and I'm remoting a class that derives from MarshalByRefObject. On the client, when I go to access a property of the remoted object, I get the above mentioned error. What gives? Top Remoting error, "cannot evaluate field of a proxy object"...Why? by Imtiaz Hussa http://forums.asp.net/t/456437.aspx?Error+please+help+Cannot+Evaluate+Field+of+a+Proxy+Object » Fri, 29 Mar 2002 01:12:53 One reason for this may be that the client is not able to locate the object properly.It is difficult to say without looking at the code. Can you post a stripped down version of your code. Thanks, Imtiaz Hussain Microsoft Developer Support This posting http://www.verycomputer.com/8_edb29d44a46c9e4c_1.htm is provided "AS IS" with no warranties, and confers no rights. Top 1. "Failed to open a rowset", "Cannot obtain error message from Server" 2. In search of CHAOS 3. ASP.NET C# " A field initializer cannot reference the nonstatic field.." 4. No progress bar when sending mail 5. """""""""""""""""""""" 6. Mike's Win95 Report 7. Remote debugging error message "The machine cannot be found on the network" 8. File Error 206004 9. Best profile for closure""""""""""Windows Server Engineer""""""""" @ Sacramento CA for 1year project 10. """"""""""Oracle Portal Developer Position"""""""" @ Dallas TX for 6+ months 11. Strange Error Message: "Object type cannot be converted to target type"???!!! 12. Error: Cannot access a disposed object named "System.Net.Sockets.Socket". 13. Remote debugging - "machine cannot be found..." but I can attatch to remote processes? 2 post • Page:1 of 1 All times are UTC Board index Spam Report
IDE does not support this. Attach the de *** to the COM+ process and you can look at it in there. Top