the design form show following error...
pls help...

<html><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"><title></title><style>.ErrorStyle { font-family: tahoma; font-size: 11 pt; text-align: left}.DetailsStyle { font-family: tahoma; font-size: 10pt; text-align: left;text-indent: 0; word-spacing: 0; line-height: 100%; float: left; margin-top: 0; margin-bottom: 0}.StackStyleVisible { font-family: tahoma; font-size: 10pt; text-align: left; margin-left: 20; text-indent: 0}.StackStyleHidden { display:none; font-family: tahoma; font-size: 10pt; text-align: left; margin-left: 20; text-indent: 0}</style></head><body><DIV class="DetailsStyle" width="100%"><table border="0" width="100%" id="table1" height="100%" cellspacing="0" cellpadding="0"><tr><td height="40" bgcolor="#FF9999" width="8%" style="letter-spacing: 0" align="center"><img border="0" src="C:\Documents and Settings\fagmann09\Local Settings\Temp\1502A4.tmp" width="35" height="35" alt="ErrorImage" ></td><td height="40" bgcolor="#FF9999" width="91%" style="vertical-align: top; letter-spacing: 0" align="left"><b><font size="2" face="Arial" fontsize="70%">One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes.</font><font size="2" face="Arial"></font></b></td></tr><tr><td colspan="2" align="left" valign="top"><DIV id="div1" class="ErrorStyle" width="100%"><span style="font-weight: 600"><br>The type 'System.Windows.Forms.OpenFileDialog' has no field named 'file'. </span><br><a href="" id="details0">Hide</a><font color="#0000FF">&nbsp;&nbsp;&nbsp;&nbsp</font><a href="" id="task0">Edit</a><font color="#0000FF"></font></span></DIV> </td> </tr> <tr><td colspan="2" align="left" valign="top"><DIV id="div20" class="StackStyleVisible" width="100%"><br>   at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.Error(IDesignerSerializationManager manager, String exceptionText, String helpLink)<br>   at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeAssignStatement(IDesignerSerializationManager manager, CodeAssignStatement statement)<br>   at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeStatement(IDesignerSerializationManager manager, CodeStatement statement)</DIV></td></tr></table></div></body></html>

Please use code tags when posting code on daniweb:

[code]

...code here....

[/code]

Please go back and edit your last post, or post the error message again in code tags. I cannot read your post with the formatting the way it is.

Hello, there's a suggestion in error message:

Some errors can be fixed by rebuilding your project, while others may require code changes.

Have you tried rebuilding?

One more thing:

The type 'System.Windows.Forms.OpenFileDialog' has no field named 'file'.

Do you have such one? If no - remove the reference to it. Seems like the error lays somewhere near this field ..

HI, My new problem...


im developing a Lan chatting System...
i wnt to recieve data and accept at the same page....
its working only ig there is only two systems... 1 server n anthr 1 as client.....

can u help me....

also im new to ths community ...
im not able to strt new thread 4 new posts....
give solution....

System.InvalidCastException was unhandled
  Message="Unable to cast object of type 'CSocketPacket1' to type 'CSocketPacket'."
  Source="AsyncClient"
  StackTrace:
       at AsyncClient.Connect.OnDataReceived(IAsyncResult asyn) in F:\BK1\projects asp\Lan Chatting sockets\Async_client\Connect.cs:line 124
       at System.Net.LazyAsyncResult.Complete(IntPtr userToken)
       at System.Net.ContextAwareResult.CompleteCallback(Object state)
       at System.Threading.ExecutionContext.runTryCode(Object userData)
       at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Net.ContextAwareResult.Complete(IntPtr userToken)
       at System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken)
       at System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
       at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)

Hello again and welcome to DaniWeb :)
Ok, let's start from error, that you get:

"Unable to cast object of type 'CSocketPacket1' to type 'CSocketPacket'."

I'm not sure if I'm right .. depends on what is CSocketPacket1 . Looks like a typo :) If it's not - is there any relationship between CSocketPacket1 and CSocketPacket (I mean inheritance)? If not - C# doesn't support implicit conversion from user-defined types to pre-defined types.

And regarding this:

im developing a Lan chatting System...
i wnt to recieve data and accept at the same page....
its working only ig there is only two systems... 1 server n anthr 1 as client.....

Could you provide more information about problem you're facing .. and maybe some code, that gives errors or is incorrect?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.