Search code examples
c#asp.netvisual-studio-2010photobucket

Getting error in using photobucket api using C#.


I have copied the C# code from Photobucket api and i am editing as per my need but i am not able to fix the following problem:

enter image description here

Can anyone suggest me how to overcome this issue.

Thanks in advance...


Solution

  • Quite simply, timestampClient does not exist (or is inaccessible) at each point where you see the underlined variable with that message.

    If it needs instantiating then set whatever like:

    TimestampClient timestampClient = new TimestampClient()

    For this to work you need to ensure that you declare timestampClient somewhere accessible by your DisplayMessage method