Click here to Skip to main content
15,905,508 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Problem With Web service Pin
prabhakar dwivedi10-Sep-09 23:25
prabhakar dwivedi10-Sep-09 23:25 
GeneralRe: Problem With Web service Pin
SeMartens11-Sep-09 0:22
SeMartens11-Sep-09 0:22 
QuestionSuggestions for displaying search results like Google? Pin
W4Rl0CK4710-Sep-09 23:00
W4Rl0CK4710-Sep-09 23:00 
AnswerRe: Suggestions for displaying search results like Google? Pin
Jay Royall10-Sep-09 23:08
Jay Royall10-Sep-09 23:08 
AnswerRe: Suggestions for displaying search results like Google? Pin
Manas Bhardwaj10-Sep-09 23:13
professionalManas Bhardwaj10-Sep-09 23:13 
Questioncrystal report Pin
ankitjain111010-Sep-09 22:59
ankitjain111010-Sep-09 22:59 
AnswerRe: crystal report Pin
mr_muskurahat10-Sep-09 23:28
mr_muskurahat10-Sep-09 23:28 
QuestionHelp - Remoting Pin
vishwjeet10-Sep-09 22:57
vishwjeet10-Sep-09 22:57 
Hi.. I am using the following code for my remoting example.

When I use MarshalByRefObject it works fine.

using System;<br />
<br />
namespace ns_application<br />
{<br />
	namespace ns_authentication<br />
	{<br />
		public class cls_registeruser : MarshalByRefObject<br />
		{<br />
			private string _username;<br />
<br />
			public cls_registeruser(string username)<br />
			{<br />
				_username = username;<br />
				Console.WriteLine("Registered User :" + _username);<br />
			}<br />
<br />
			public cls_registeruser()<br />
			{<br />
				_username = "NULL";<br />
				Console.WriteLine("Username is " + _username);<br />
			}<br />
			~cls_registeruser()<br />
			{<br />
				Console.WriteLine("User deleted" + _username);<br />
			}<br />
			<br />
			public string username<br />
			{<br />
				get{return _username;}<br />
			}<br />
		}<br />
	}<br />
}


But when I try to use [Serializable] it shows error "Trying to create a proxy to an unbound type".

<br />
using System;<br />
<br />
namespace ns_application<br />
{<br />
	namespace ns_authentication<br />
	{<br />
                [Serializable]<br />
		public class cls_registeruser<br />
		{<br />
			private string _username;<br />
<br />
			public cls_registeruser(string username)<br />
			{<br />
				_username = username;<br />
				Console.WriteLine("Registered User :" + _username);<br />
			}<br />
<br />
			public cls_registeruser()<br />
			{<br />
				_username = "NULL";<br />
				Console.WriteLine("Username is " + _username);<br />
			}<br />
			~cls_registeruser()<br />
			{<br />
				Console.WriteLine("User deleted" + _username);<br />
			}<br />
			<br />
			public string username<br />
			{<br />
				get{return _username;}<br />
			}<br />
		}<br />
	}<br />
}<br />


As far as I know :
"MarshalByRefObject" will give me a reference to an object created on the server. All the execution will take place on the server.

"Serializable" will send to me the object state, and the execution will be done at the client machine itself.

But at some places I see the following usage :

<br />
[Serializable]<br />
public class_name : MarshalByRefObject<br />


What does this mean?

Also, if [Serializable] is there, what is the use of "ISerializable" interface.

Waiting for responses guyz... I have googled a lot already but am not getting a clear picture.
AnswerRe: Help - Remoting Pin
Abhishek Sur10-Sep-09 23:50
professionalAbhishek Sur10-Sep-09 23:50 
GeneralRe: Help - Remoting Pin
vishwjeet11-Sep-09 0:01
vishwjeet11-Sep-09 0:01 
QuestionURI Format Not Supported. [modified] Pin
Meetu Choudhary10-Sep-09 22:03
Meetu Choudhary10-Sep-09 22:03 
AnswerRe: URI Format Not Supported. Pin
Christian Graus10-Sep-09 22:28
protectorChristian Graus10-Sep-09 22:28 
GeneralRe: URI Format Not Supported. Pin
Meetu Choudhary10-Sep-09 22:30
Meetu Choudhary10-Sep-09 22:30 
GeneralRe: URI Format Not Supported. Pin
Christian Graus10-Sep-09 22:36
protectorChristian Graus10-Sep-09 22:36 
GeneralRe: URI Format Not Supported. Pin
Meetu Choudhary10-Sep-09 22:41
Meetu Choudhary10-Sep-09 22:41 
GeneralRe: URI Format Not Supported. Pin
Christian Graus10-Sep-09 22:45
protectorChristian Graus10-Sep-09 22:45 
GeneralRe: URI Format Not Supported. Pin
Meetu Choudhary10-Sep-09 22:47
Meetu Choudhary10-Sep-09 22:47 
GeneralRe: URI Format Not Supported. Pin
Christian Graus10-Sep-09 22:49
protectorChristian Graus10-Sep-09 22:49 
GeneralRe: URI Format Not Supported. Pin
Meetu Choudhary10-Sep-09 22:50
Meetu Choudhary10-Sep-09 22:50 
GeneralRe: URI Format Not Supported. Pin
Christian Graus10-Sep-09 22:51
protectorChristian Graus10-Sep-09 22:51 
GeneralRe: URI Format Not Supported. Pin
Meetu Choudhary10-Sep-09 22:54
Meetu Choudhary10-Sep-09 22:54 
AnswerRe: URI Format Not Supported. Pin
vishwjeet10-Sep-09 23:04
vishwjeet10-Sep-09 23:04 
GeneralRe: URI Format Not Supported. Pin
Meetu Choudhary10-Sep-09 23:38
Meetu Choudhary10-Sep-09 23:38 
GeneralRe: URI Format Not Supported. Pin
vishwjeet11-Sep-09 0:03
vishwjeet11-Sep-09 0:03 
GeneralRe: URI Format Not Supported. Pin
Meetu Choudhary11-Sep-09 0:06
Meetu Choudhary11-Sep-09 0:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.