Posts

System.ServiceModel.AddressAccessDeniedException: HTTP could not register URL http://+:8000/... Your process does not have access rights to this namespace

When you get the error as mentioned in title. Please check the below things: WCF service has to run as administrator If you want to run this service locally then we can workaround this error. For this please follow the below blog: http://blogs.msdn.com/b/avkashchauhan/archive/2011/03/22/opening-an-internal-http-endpoint-with-wcf-servicehost-basichttpbindings-may-cause-system-net-httplistenerexception-system-servicemodel-addressaccessdeniedexception.aspx But the catch here as the blog says, it is totally internal to the machine. External WCF clients cannot communicate with this WCF service. If you are logged in as Local user in the machine. Then run the application in elevated mode to avoid this error.  

Mute Unmute Lync SDK

Setting Mute/Unmute State on Lync through Lync SDK: UnMute:                            Conversation conv; //Once you have the conversation, set the unmute on Lync as below.   IDictionary < ModalityTypes , Modality > modalities = conv.Modalities; Modality mod = modalities[ ModalityTypes .AudioVideo]; bool canHold = mod.CanInvoke( ModalityAction .Hold); //Check if we can invoke Hold on the conversation. i f (canHold) mod.BeginSetProperty( ModalityProperty .AVModalityAudioCaptureMute, false ,UnMuteOccured, null );     Mute: Mute is simple as mentioned below.   conv.SelfParticipant.BeginSetMute( true ,MuteOccured, null );       private void UnMuteOccured( IAsyncResult ar){} private void MuteOccured( IAsyncResult ar){}      

Access Edge service failed to start: Transport TLS has failed to start on local IP address

When we get the below errors in the event viewer on the edge service: A configured transport has failed to start. Transport TLS has failed to start on local IP address 10.x.x.x at port 5061. Cause: Configuration error, low system resources or another program is using the specified port. Can also happen if the IP address has become invalid. Resolution: Ensure that the IP address specified is valid and that no other program is listening on the specified port. Unable to bind for socket. Transport:TLS, IP address: 10.x.x.x, Port:5061. Error:0x80072741 (The requested address is not valid in its context.). Resolution: Ensure that no other program is listening to the specified port and that the IP address is valid. Then most probably the error can be that your IP address got changed and the topology builder is still using the old IP address. This can happen when you are using DHCP instead of static assigning. Resolution: Change the IP in the topology using the topology build...

Topology builder mmc crash (Lync server installation)

When we are about to publish topology, if MMC crashes then the probable reason  might be wrong AD preparation. For this first of all remove the configuration store  location and then publish the topology after selecting thee correct CMS     Remove-CsConfigurationStoreLocation

Sending a mail with image in the message body

EmailMessage message = new EmailMessage (exchangeService); message.Subject = "test"; message.Attachments.AddFileAttachment( @"test.bmp" ); message.Attachments[0].ContentId = test.bmp@123 ; message.Attachments[0].IsInline = true ; message.Attachments[0].ContentLocation = path; //Image path Without content location and ContentId we will not get the image in the message body. Make sure you add the Content ID in the HTML to get the image.

Cannot load Counter Name data because an invalid index '' was read from the registry

If you are unable to get the performance metrics of a machine: Running this command from command prompt may help: lodctr /r Check if all are enabled: lodctr /q

Interview questions

1) What are constraints? These are used to constraint(limit) the data that can go into SQL tables There are generally six types of constraints in SQL: NOT NULL Constraint - Check Constraint - Default Constarint - Primary Key Constraint - Unique Key Constraint - Foreign Key Constraint - 2) What are ACID properties? ACID stands for Atomicity, Consistency, Isolation and Durability. Database professionals when evaluating the database, looks at these features of database. Atomicity: Each transaction is said to be atomic. If one part of the transaction fails, entire transaction should fail. Its all or none rule. Consistency: Only valid data should be written into database. If a transaction is executed that violates the Database consistency rules then entire transaction should be rolled back. Database should not leave your transaction in half finished state. Isolation: Database should isolate two concurrent transactions until they are finished. Durability: Any transac...