Val

Val

  • NA
  • 1
  • 0

Compiler Error Help Needed

Oct 12 2006 8:57 PM

I am getting a compile error from the following code. If anybody can tell me how to get rid of it I would really appreciate it:

resource = resHierarchy.GetResourceHierarchy(ilhResourceId);
Utilities.
clsResourceID myRes = new Utilities.clsResourceID();
myRes.Format = resource.Format;
myRes.Handle = resource.Handle;
myRes.Name = resource.Name;
Publish.Publish pub = new Publish.Publish();
Publish.Publish_Obj_Return retValue;
retValue = pub.Publish_Ref(myRes, cfg.AppSettings.Settings[
"userName"].Value, cfg.AppSettings.Settings["password"].Value, 0, 0);

The compiler error applies to the last instruction and is:
Error 1 The best overloaded method match for 'APRService.Publish.Publish.Publish_Ref(APRService.Publish.clsResourceID, string, string, int, int)' has some invalid arguments

Publish_Ref is a web service on another server.
I AM NOT A C# PROGRAMMER BUT I HAVE TRIED EVERYTHING I KNOW TO GET RID OF IT.

Thanks for any help,

Val