Click here to Skip to main content
15,894,291 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a project in which i have to create simple web form, in that there will be a button, When user will press button, the application should contact Lync server to set up a web conference (an online meeting).

Also, The application should present the result to the user, and preferable display a link which the user can click on to participate in the online meeting using Lync

I read all details, but still don't know from where to start, I read about UCMA 4.0 sdk, installed it, added Microsoft.Rtc.Collaboration dll, but until i don't know which classes are used and which class method to call, to connect to server i cant do anything. Anyone can help through this, with code or any article explaining how to use this SDK.

I found this useful, because reading from this, at least i am able to understand and write some code. but issue is not resolved yet

C#
private void button1_Click(object sender, EventArgs e)
{
    ConferenceScheduleInformation CSI = new ConferenceScheduleInformation();
     
    CSI.AccessLevel = ConferenceAccessLevel.Everyone;
    CSI.AutomaticLeaderAssignment = AutomaticLeaderAssignment.Everyone;
    CSI.ConferenceId = "Whatever";
    CSI.Description = "Test Conference";
    CSI.Subject = "Testing_Subject";
    CSI.Mcus.Add(new ConferenceMcuInformation(McuType.AudioVideo));
        
    try
    {
        _localendpoint.ConferenceServices.BeginScheduleConference(CSI,
            ar =>
            {
                try
                {
                    Conference newConference = _localendpoint.ConferenceServices.EndScheduleConference(ar);
                    //DoSomethingWithTheConference(newConference);
                }
                catch (RealTimeException ex)
                {
                    Console.WriteLine(ex);
                }
            },
            null);
    }
    catch (InvalidOperationException ex)
    {
        Console.WriteLine(ex);
    }
}


I Am getting Null reference exception here
Conference newConference
, How to solve this, What mistake i am making??
Posted
Updated 7-Sep-14 0:26am
v2
Comments
kbrandwijk 3-Sep-14 9:35am    
Have you looked at the sample application provided by Microsoft here: http://msdn.microsoft.com/en-us/library/office/dn495337(v=office.15).aspx
Member 10801309 4-Sep-14 8:24am    
Hello, I found this useful, because reading from this, at least i am able to understand and write some code. but issue is not resolved yet

private void button1_Click(object sender, EventArgs e)
{

ConferenceScheduleInformation CSI = new ConferenceScheduleInformation();

CSI.AccessLevel = ConferenceAccessLevel.Everyone;
CSI.AutomaticLeaderAssignment = AutomaticLeaderAssignment.Everyone;
CSI.ConferenceId = "Whatever";
CSI.Description = "Test Conference";
CSI.Subject = "Testing_Subject";
CSI.Mcus.Add(new ConferenceMcuInformation(McuType.AudioVideo));


try
{
_localendpoint.ConferenceServices.BeginScheduleConference(CSI,
ar =>
{
try
{
Conference newConference = _localendpoint.ConferenceServices.EndScheduleConference(ar);
//DoSomethingWithTheConference(newConference);
}
catch (RealTimeException ex)
{
Console.WriteLine(ex);
}
},
null);
}
catch (InvalidOperationException ex)
{
Console.WriteLine(ex);
}

}

I Am getting Null reference exception here <br>Conference newConference </br>, How to solve this, What mistake i am making??


1 solution

Assuming you that you have already looked at this reference link
Unified Communications Managed API 4.0 SDK documentation[^]
you need some working example, right?

Appearently there is lots of samples in the SDK itself, you just have to select one that looks similar to what you want to do.
QuickStart sample applications[^]
For example:
BasicConferencing (QuickStart)[^]

More examples for Windows 8:
Lync samples: learn through code[^]

For the specific error you get, you should check the variable _localendpoint.ConferenceServices in the debugger.
 
Share this answer
 
v2
Comments
Member 10801309 8-Sep-14 2:16am    
Yes, I check after using break point, I am getting Null Reference Exception, and you are absolutely right, that problem is in _localendpoint.ConferenceServices. Problem is _localendpoint OBJECT is empty,I am not getting how to pass values to it.
You gave enough links, I will try to see what i am doing wrong here.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900