Click here to Skip to main content
15,885,948 members
Home / Discussions / C#
   

C#

 
AnswerRe: Check Box Click Event Pin
dan!sh 31-Aug-09 22:31
professional dan!sh 31-Aug-09 22:31 
Questioncreating word document using c# Pin
Swetha Srinivasan31-Aug-09 20:16
Swetha Srinivasan31-Aug-09 20:16 
AnswerRe: creating word document using c# Pin
Christian Graus31-Aug-09 20:36
protectorChristian Graus31-Aug-09 20:36 
GeneralRe: creating word document using c# Pin
Swetha Srinivasan31-Aug-09 23:20
Swetha Srinivasan31-Aug-09 23:20 
AnswerRe: creating word document using c# Pin
stancrm31-Aug-09 20:38
stancrm31-Aug-09 20:38 
QuestionWCF - HTTP Post The remote server returned an error: (400) Bad Request Pin
senthilkamal31-Aug-09 19:52
senthilkamal31-Aug-09 19:52 
AnswerRe: WCF - HTTP Post The remote server returned an error: (400) Bad Request Pin
Vimalsoft(Pty) Ltd31-Aug-09 21:32
professionalVimalsoft(Pty) Ltd31-Aug-09 21:32 
QuestionWebservices error Pin
sevag.m31-Aug-09 19:26
sevag.m31-Aug-09 19:26 
When I call the webservice method from my class synchronously or assynchronously i am receiving the following error:

(System.NullReferenceException: Object reference not set to an instance)


I am being able to call the loadWindow webservice method without any problem but when i pass the dataset as parameter in the saveWindow im receiving the error above. Any solution will be appreciated.

private void SaveData()
{
try
{
SYS_WS sysws = new SYS_WS();
sysws.SaveWindowCompleted +=new SaveWindowCompletedEventHandler(sysws_SaveWindowCompleted);
sysws.SaveWindowAsync((SYSDataset)dsSystem.GetChanges());
}
catch (Exception ex)
{
throw (ex);
}
}

private void sysws_SaveWindowCompleted(object sender,
SaveWindowCompletedEventArgs e)
{
try
{
if (e.Error != null)
{
return;
}
this.dsSystem.AcceptChanges();

}
catch (Exception ex)
{
throw ex;
}
}

[WebMethod(EnableSession = true)]
public bool SaveWindow(SYSDataset ds)
{
try
{
WindowController cont = new WindowController();
cont.SaveWindows(ds);
return true;
}
catch (Exception ex)
{
throw (ex);
}
}


[WebMethod(EnableSession = true)]
public SYSDataset LoadWindow(string WindowID)
{
WindowController cont = new WindowController();
return cont.LoadWindow(WindowID);
}
---- Stack Trace ----
   RTR.SYS_V.Setup.frmWindow.SaveData()
       frmWindow.cs: line 0091, col 17, IL 0079
   RTR.SYS_V.Setup.frmWindow.btnSave_Click(sender As Object, e As EventArgs)
       frmWindow.cs: line 0202, col 13, IL 0001
   System.Windows.Forms.Control.OnClick(e As EventArgs)
       MAIN.EXE: N 00111
   System.Windows.Forms.Button.OnClick(e As EventArgs)
       MAIN.EXE: N 00073
   System.Windows.Forms.Button.OnMouseUp(mevent As MouseEventArgs)
       MAIN.EXE: N 00171
   System.Windows.Forms.Control.WmMouseUp(m As Message&, button As MouseButtons, clicks As Int32)
       MAIN.EXE: N 00654
   System.Windows.Forms.Control.WndProc(m As Message&)
       MAIN.EXE: N 8788613
   System.Windows.Forms.ButtonBase.WndProc(m As Message&)
       MAIN.EXE: N 8807204
   System.Windows.Forms.Button.WndProc(m As Message&)
       MAIN.EXE: N 00031
   System.Windows.Forms.ControlNativeWindow.OnMessage(m As Message&)
       MAIN.EXE: N 00015
   System.Windows.Forms.ControlNativeWindow.WndProc(m As Message&)
       MAIN.EXE: N 00048
   System.Windows.Forms.NativeWindow.Callback(hWnd As IntPtr, msg As Int32, wparam As IntPtr, lparam As IntPtr)
       MAIN.EXE: N 00089


modified on Tuesday, September 1, 2009 2:18 AM

AnswerRe: Urgent need help :) Webservices Pin
Mycroft Holmes31-Aug-09 19:31
professionalMycroft Holmes31-Aug-09 19:31 
GeneralWebservices Pin
sevag.m31-Aug-09 20:27
sevag.m31-Aug-09 20:27 
Question[Message Deleted] Pin
Swetha Srinivasan31-Aug-09 18:34
Swetha Srinivasan31-Aug-09 18:34 
AnswerRe: Progress Bar in c# Pin
Christian Graus31-Aug-09 18:43
protectorChristian Graus31-Aug-09 18:43 
GeneralRe: Progress Bar in c# Pin
Swetha Srinivasan31-Aug-09 18:45
Swetha Srinivasan31-Aug-09 18:45 
GeneralRe: Progress Bar in c# Pin
Mycroft Holmes31-Aug-09 19:34
professionalMycroft Holmes31-Aug-09 19:34 
GeneralRe: Progress Bar in c# Pin
Swetha Srinivasan31-Aug-09 20:05
Swetha Srinivasan31-Aug-09 20:05 
General[Message Deleted] Pin
Swetha Srinivasan31-Aug-09 20:17
Swetha Srinivasan31-Aug-09 20:17 
GeneralRe: Progress Bar in c# Pin
Christian Graus31-Aug-09 20:37
protectorChristian Graus31-Aug-09 20:37 
Questionhow to disable close button of windows form Pin
Vivek Vijayan31-Aug-09 18:22
Vivek Vijayan31-Aug-09 18:22 
AnswerRe: how to disable close button of windows form Pin
stancrm31-Aug-09 18:42
stancrm31-Aug-09 18:42 
GeneralRe: how to disable close button of windows form Pin
OriginalGriff31-Aug-09 21:48
mveOriginalGriff31-Aug-09 21:48 
AnswerRe: how to disable close button of windows form Pin
wjp_auhtm31-Aug-09 23:28
wjp_auhtm31-Aug-09 23:28 
AnswerRe: how to disable close button of windows form Pin
PIEBALDconsult4-Sep-09 5:34
mvePIEBALDconsult4-Sep-09 5:34 
QuestionConsole.WriteLine(); VS Console.Out.WriteLine(); Pin
Mohammad Dayyan31-Aug-09 16:53
Mohammad Dayyan31-Aug-09 16:53 
AnswerRe: Console.WriteLine(); VS Console.Out.WriteLine(); Pin
Md. Marufuzzaman31-Aug-09 17:24
professionalMd. Marufuzzaman31-Aug-09 17:24 
AnswerRe: Console.WriteLine(); VS Console.Out.WriteLine(); Pin
Dave Kreskowiak31-Aug-09 17:27
mveDave Kreskowiak31-Aug-09 17:27 

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.