Category Archives: C#

Check if service bus topic/subscription/queue exists with SAS key not having Manage permission

Hi, Consider a scenario where you’ve developed an application health monitoring¬†type system which validates your application at application startup/periodically. Now as part of that if your application uses Azure service bus queues, topics, subscriptions, then it would be good to … Continue reading

Posted in .NET, C#, General | Tagged , , , , , , , , , , , | Leave a comment

Resolving “CloudConfigurationManager does not exist in the current context” compiler error

Hi, In case you get are trying to access the cloud configuration file in your Azure Cloud service and get the error “CloudConfigurationManager does not exist in the current context”¬†on CloudConfigurationManager class, then all you need to do is add … Continue reading

Posted in .NET, C# | Tagged , | 4 Comments

Invoke a POST method with XML Request message in C#

Hi, To invoke a POST method located at a particular URL with an XML request message, we need to follow the below steps: Create a request to the url Put required request headers Convert the request XML message to a … Continue reading

Posted in .NET, ASP.NET, C# | Tagged , , , , , , , | 1 Comment

Restricting to only one running instance of an application in C#

Hi, We all must have observed some time or the other that when you try to open an application that is already running, you get a pop up that says, “Another instance of the same application is already running” or … Continue reading

Posted in .NET, C#, General | Tagged , , , , , , , , , , , , , , , , , | 1 Comment

State Management using Cookies.

What are Cookies? Cookies are nothing but a small piece of information that are stored at the client’s browser by the server. This small piece of information about the user is then sent by the browser in all subsequent requests … Continue reading

Posted in .NET, ASP.NET, C#, General | Tagged , , , , , , , , , , , , , , | Leave a comment

[Solution]configuration system failed to initialize – C# Exception

Hi, Today I encountered an exception while working on an application. The exception was “configuration system failed to initialize”. The problem that I was having in my application configuration file was that I declared the <appSettings> tag immediately after the … Continue reading

Posted in .NET, ASP.NET, C# | Tagged , , , , , , , , , , , , , , | Leave a comment

[QUESTION-Help required] Pagination in asp:DataGrid. Aligning page numbers to the center

Hi, I’m using an asp:DataGrid control with Pagination. But I want the page numbers appearing at the bottom of the page to span all the columns of the DataGrid as opposed to the one that I’m currently getting. Please check … Continue reading

Posted in .NET, ASP.NET, C# | Tagged , , , , | Leave a comment