Click here to Skip to main content
15,910,471 members
Home / Discussions / C#
   

C#

 
AnswerRe: Object reference not set to an instance of an object.? Pin
Christian Graus1-Jan-09 2:08
protectorChristian Graus1-Jan-09 2:08 
GeneralRe: Object reference not set to an instance of an object.? Pin
dec821-Jan-09 2:10
dec821-Jan-09 2:10 
GeneralRe: Object reference not set to an instance of an object.? Pin
Christian Graus1-Jan-09 2:36
protectorChristian Graus1-Jan-09 2:36 
GeneralRe: Object reference not set to an instance of an object.? Pin
dec821-Jan-09 2:59
dec821-Jan-09 2:59 
GeneralRe: Object reference not set to an instance of an object.? Pin
Christian Graus1-Jan-09 3:08
protectorChristian Graus1-Jan-09 3:08 
GeneralRe: Object reference not set to an instance of an object.? Pin
dec821-Jan-09 3:58
dec821-Jan-09 3:58 
QuestionCrystal Report Designer Pin
spiritboy31-Dec-08 23:19
spiritboy31-Dec-08 23:19 
Question[newbie] [error] must declare a body because it is not marked abstract, extern, or partial Pin
jon-8031-Dec-08 23:01
professionaljon-8031-Dec-08 23:01 
I'm trying out remote debugging from a WinXP Pro machine to a Win 2003 Server machine (where the source code is deployed).

When I try to compile from Visual Studio 2008, the following error is displayed:
Error 1 'CaseTrak.Activities.StatusUpdater.CTSetCaseReviewStatus(string, int)' must declare a body because it is not marked abstract, extern, or partial z:\Projects\CaseTrak.Activities\CaseTrak.Activities\StatusUpdater.cs 37 21

<code>
public bool CTSetCaseReviewStatus(string sCaseID, int iStatus)   //{ //get; }
<code>
</code></code>


Resolution (http://msdn.microsoft.com/en-us/library/bb397743.aspx[^])suggests to me that get and set methods have to be set for the variable type, however, it does not seem to fit within the context.

Any ideas?

// cs0840.cs
// Compile with /target:library
using System;
class Test
{
public int myProp { get; } // CS0840

// to create a read-only property
// try the following line instead
public int myProp2 { get; private set; }

}
using System;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Collections;
using System.Drawing;
using System.Workflow.ComponentModel.Compiler;
using System.Workflow.ComponentModel.Serialization;
using System.Workflow.ComponentModel;
using System.Workflow.ComponentModel.Design;
using System.Workflow.Runtime;
using System.Workflow.Activities;
using System.Workflow.Activities.Rules;
using CaseTrak.WebServices;

namespace CaseTrak.Activities
{
	public partial class StatusUpdater: SequenceActivity
	{
		public StatusUpdater()
		{
			InitializeComponent();
		}

        protected override ActivityExecutionStatus Execute(ActivityExecutionContext executionContext)
        {
            try 
            {
               
            }
            catch  (Exception ex)
            {
            
            }
            return ActivityExecutionStatus.Closed;
        }

        public bool CTSetCaseReviewStatus(string sCaseID, int iStatus);

	}

    
}


Jon

AnswerRe: [newbie] [error] must declare a body because it is not marked abstract, extern, or partial Pin
beatles169231-Dec-08 23:25
beatles169231-Dec-08 23:25 
Questionadding 2 hashtable Pin
tejesh12331-Dec-08 20:48
tejesh12331-Dec-08 20:48 
AnswerRe: adding 2 hashtable Pin
Christian Graus1-Jan-09 2:09
protectorChristian Graus1-Jan-09 2:09 
AnswerRe: adding 2 hashtable Pin
User 66581-Jan-09 2:56
User 66581-Jan-09 2:56 
QuestionCustom control's property problem Pin
Xmen Real 31-Dec-08 18:35
professional Xmen Real 31-Dec-08 18:35 
AnswerRe: Custom control's property problem Pin
beatles169231-Dec-08 23:28
beatles169231-Dec-08 23:28 
GeneralRe: Custom control's property problem Pin
Xmen Real 31-Dec-08 23:31
professional Xmen Real 31-Dec-08 23:31 
AnswerRe: Custom control's property problem Pin
Pedram Behroozi1-Jan-09 0:49
Pedram Behroozi1-Jan-09 0:49 
GeneralRe: Custom control's property problem Pin
Xmen Real 1-Jan-09 0:55
professional Xmen Real 1-Jan-09 0:55 
GeneralRe: Custom control's property problem Pin
Pedram Behroozi1-Jan-09 1:21
Pedram Behroozi1-Jan-09 1:21 
GeneralRe: Custom control's property problem Pin
Xmen Real 1-Jan-09 1:51
professional Xmen Real 1-Jan-09 1:51 
GeneralRe: Custom control's property problem Pin
Eddy Vluggen2-Jan-09 2:07
professionalEddy Vluggen2-Jan-09 2:07 
GeneralRe: Custom control's property problem Pin
Xmen Real 2-Jan-09 3:22
professional Xmen Real 2-Jan-09 3:22 
GeneralRe: Custom control's property problem Pin
Eddy Vluggen2-Jan-09 21:53
professionalEddy Vluggen2-Jan-09 21:53 
GeneralRe: Custom control's property problem Pin
Xmen Real 2-Jan-09 22:02
professional Xmen Real 2-Jan-09 22:02 
QuestionDatagrid Combo box binding Pin
mrcooll31-Dec-08 2:46
mrcooll31-Dec-08 2:46 
AnswerRe: Datagrid Combo box binding Pin
mrcooll31-Dec-08 5:13
mrcooll31-Dec-08 5:13 

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.