Click here to Skip to main content
15,906,708 members
Home / Discussions / C#
   

C#

 
GeneralRe: memory increase Pin
Alex Korchemniy25-Sep-04 13:06
Alex Korchemniy25-Sep-04 13:06 
GeneralRe: memory increase Pin
Colin Angus Mackay25-Sep-04 15:03
Colin Angus Mackay25-Sep-04 15:03 
General.Net Remoting Issue Pin
jtmtv1825-Sep-04 7:56
jtmtv1825-Sep-04 7:56 
GeneralRe: .Net Remoting Issue Pin
Alex Korchemniy25-Sep-04 12:34
Alex Korchemniy25-Sep-04 12:34 
GeneralRe: .Net Remoting Issue Pin
jtmtv1825-Sep-04 17:51
jtmtv1825-Sep-04 17:51 
Generalretreiving hardware information Pin
alanazi25-Sep-04 4:46
alanazi25-Sep-04 4:46 
GeneralRe: retreiving hardware information Pin
alanazi27-Sep-04 3:39
alanazi27-Sep-04 3:39 
General.net remoting problem Pin
rclayclements25-Sep-04 3:24
rclayclements25-Sep-04 3:24 
I am creating a project that calls a remote object using a TCP connection. When I establish the client side connection, I use the following method:

string strError = "";
string strConfigFile = "";
string strTCPPortLocation = "";
strTCPPortLocation =
String.Format("tcp://{0}/{1}",
m_strTCPPortLocation, //localhost:8085
"InfoManData");
BinaryServerFormatterSinkProvider srvFormatter = new
BinaryServerFormatterSinkProvider();
srvFormatter.TypeFilterLevel = TypeFilterLevel.Full;
BinaryClientFormatterSinkProvider clntFormatter =
new BinaryClientFormatterSinkProvider();
IDictionary props = new Hashtable();
props["port"] = 0;
TcpChannel theChannel = new TcpChannel(props, clntFormatter, srvFormatter);
ChannelServices.RegisterChannel(theChannel);
try
{
RemotingConfiguration.RegisterActivatedClientType(
typeof(DataServer.InfoManData),
strTCPPortLocation);
}
catch(Exception ex)
{
strError =
String.Format("{0}: {1}",
"Error connecting to server!",
ex.ToString());
MessageBox.Show(strError);
}

For the host side connection, I use the same code, execept that I establish the port as 8085.

The client properly connects to the remote object, opens the database, and returns the appropriate DataSet.
The problem is that during certain operations to the remote object when passing a DataSet to check for updates, I get the following error:

System.Xml.XmlException: The ':' character, hexadecimal value 0x3A, cannot be included in a name.

This does not happen (of course) when I do not use .net remoting, but invoke the object in the traditional manner. This is for a system using windows forms clients (rather than browser) accross an intranet. For this reason, I chose TCP, hoping that the XML problem would not occur.

If you have any suggestions, I would greatly appreciate them.

Thanks
GeneralCurrencyManager problem Pin
Roger Alsing25-Sep-04 2:08
Roger Alsing25-Sep-04 2:08 
GeneralRe: CurrencyManager problem Pin
Roger Alsing25-Sep-04 2:19
Roger Alsing25-Sep-04 2:19 
Generalsaving images Pin
mathon24-Sep-04 22:21
mathon24-Sep-04 22:21 
GeneralRe: saving images Pin
Alex Korchemniy25-Sep-04 12:11
Alex Korchemniy25-Sep-04 12:11 
Questionget page or get totaller failed on report? Pin
murali_utr24-Sep-04 22:16
murali_utr24-Sep-04 22:16 
GeneralSignature Capture Pin
mathon24-Sep-04 22:16
mathon24-Sep-04 22:16 
GeneralRe: Signature Capture Pin
Alex Korchemniy25-Sep-04 12:38
Alex Korchemniy25-Sep-04 12:38 
Generaldisplay treeview Pin
CocciaStella24-Sep-04 17:28
CocciaStella24-Sep-04 17:28 
GeneralRe: display treeview Pin
Shaival24-Sep-04 19:48
Shaival24-Sep-04 19:48 
GeneralRe: display treeview Pin
CocciaStella25-Sep-04 9:23
CocciaStella25-Sep-04 9:23 
Questionserial printer on Web? Pin
rbarzallo24-Sep-04 15:57
rbarzallo24-Sep-04 15:57 
AnswerRe: serial printer on Web? Pin
Alex Korchemniy25-Sep-04 12:14
Alex Korchemniy25-Sep-04 12:14 
GeneralRe: serial printer on Web? Pin
rbarzallo26-Sep-04 6:38
rbarzallo26-Sep-04 6:38 
GeneralDeleted row information cannot be accessed through the row Pin
zuhx24-Sep-04 14:49
zuhx24-Sep-04 14:49 
GeneralVirtual ListView exception when leaving and entering focus Pin
tajbender24-Sep-04 13:14
tajbender24-Sep-04 13:14 
GeneralGUID Pin
yyf24-Sep-04 11:37
yyf24-Sep-04 11:37 
GeneralRe: GUID Pin
Charlie Williams24-Sep-04 12:23
Charlie Williams24-Sep-04 12:23 

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.