Skip to main content

Posts

Mailbox database is temporary unavailable.

Working with exchange server 2010 is good experience. I have learnt many new things in that. I am using EWS api aka Exchange Web Service , to communicate with Exchange server. Everything was going smooth till yesterday. When the error was fired while sending an email using EWS API. The error message was saying that "The mailbox is unavailable"         At the same time, while logging in Exchange server -> Exchange Management Console   Clicking on  Mailbox under Server Configuration in Left Action panel, will displays an error dialog that show possible causes of the problem.        The problem can be resolved as follows:      1. Log on to Exchange Server.      2. Go to services      3. Start the Service " Microsoft Exchange Server Information store ". For safety purpose you can set the start process for this service as Automatic so that next ...

Live@edu SSO redefined the alternate approach.

Microsoft provides the best service called Live@edu. This is good idea for making the schooling paper free, meaning by saying paper free is that Microsoft provides with the facility to store all the document and communication service for school and universities                 Moreover this service is free for schools and any educational organization. It provides centrally hosted email service. you can get the information about Live@edu from here To be more technical I must return to the fact that this is being written not for marketing Live@edu service but it is more about S ingle S ign O n [SSO] provided with the SSO toolkit with Live@edu account.                 Microsoft provides the SSO toolkit which is sort of sample code, with the help of which you can integrate the SSO with your application. You will get the SSO toolkit when you ...

Windows live messenger toolkit on HTTPS (Secure Layer)

Nowadays I am working on Integrating  windows live Messenger toolkit with our MVC web application. you can download toolkit straight from Microsoft's site from HERE , Though Microsoft is providing sample application for demo that shows how to integrate the Windows live messenger toolkit with your website, There were many issues while integrating with MVC web application. First challenge that I faced was to make the Demo application compatible with our MVC architect. because the sample code works based on Request and Response Architecture while MVC application follows the Action and Result architecture. So first I have to convert the all the handlers in to controller methods  then all other respective changer are to be done.                     The second Challenge was to run the application on secure layer(HTTPS) . every thing worked fine except the chat bar. It was showing some interesting error that  Channel-Url  ...

String Replace function in IE and Firefox

Last week I was struggling with string replace function.The requirement was strange but its not in scope of this post. After spending one whole day and achieving the requirement, I have decided to club all the possible usage of replace funcation. lets start with the simplest form of Replace function.   var str = "The world is beautiful, just you need beautiful heart";         str = str.replace('beautiful', 'lovely'); In above replace call, the first only occurrence of beautiful will be replaced by heart . The resultant string will be " The world is lovely, just you beautiful heart ." The Replace() function has two arguments string or regex to be replaced string or function[that return string] to be in placed.     we'll look in every possible scenarios. Now if I want to make my replace function case insensitive, I do have to make little bit modification. as follows      var str = "The world is Beautifu...

Scheduling Email Using Sql Server

DECLARE @out_desc VARCHAR(1000), @out_mesg VARCHAR(10) DECLARE @name VARCHAR(20), @birthdate datetime, @email NVARCHAR(50) DECLARE @body NVARCHAR(1000) DECLARE C1 CURSOR READ_ONLY FOR SELECT [name], [birthdate], [email] FROM Customers OPEN C1 FETCH NEXT FROM C1 INTO @name, @birthdate, @email WHILE @@FETCH_STATUS = 0 BEGIN IF DATEPART(DAY,@birthdate) = DATEPART(DAY,GETDATE()) AND DATEPART(MONTH,@birthdate) = DATEPART(MONTH,GETDATE()) BEGIN SET @body = ' Happy Birthday ' + @name + ' Many happy returns of the day' + ' Customer Relationship Department' EXEC sp_send_mail sender@abc.com', 'xxxxxxx', @email, 'Birthday Wishes', @body, 'htmlbody', @output_mesg = @out_mesg output, @output_desc = @out_desc output PRINT @out_mesg PRINT @out_desc END ...

Updatepanel and JQuery

I am writing this article is just because my long struggle for combining JQuery with Updatepanel has been completed successfully. At initial point it wasn't working properly its because I was messing up all the wrong stuff together. It was problem neither with JQuery nor with UPdatepanel. Problem was lack of proper understanding of How UPDATE panel works. whenever the Jquery is used within the Updatepanel creates trouble when there is asynchronous post back request triggers, and the Jquery widgets got hanged . I spent plenty of time on googling and final reached some solutions, but I must say this solution is not perfect for all the cases in which the jquery creates the problem. what actually happen is when there is asynchronous post back. the ready function i.e. $(document).ready( function () { }); not get initialized every time and this is the headache. for that we have to do certain exercise as mentioned below. function FireOnLoad(){ Sys.WebForms.PageRequestManager.getI...