Showing posts from October, 2011

Converting VS 2010 Solution to VS 2008

If you ever need to convert a Visual Studio 2010 Solution to a Visual Studio 2008 Solution, you know there is no native conversion support. When helping someone on the codeguru forums, I found this code project solution, to help them, and thought I should share it with everyone. Please check out the solution here. Enjoy.

C# / ASP.NET - Getting an IP Address

If you are attempting to get an IP address, from a system connected to your ASP.NET page, or just trying to pull up a local IP address, the following code block can be used. The GetHostAddresses method queries a DNS server for the IP addresses associated with a host name. If the system has IPV6 enabled, and you are trying to pull the IP address, simply using GetHostAddresses won't work, as it will return the IPV6 address. This code should generate your IPV4 address. // using System.Net; (Required) protected string GetIPAddress() { string IPV4Address = String.Empty; foreach (IPAddress IPAddr in Dns.GetHostAddresses(HttpContext.Current.Request.UserHostAddress)) { if (IPAddr.AddressFamily.ToString() == "InterNetwork") { IPV4Address = IPAddr.ToString(); break; } } if (IPV4Address != String.Empty) return IPV4Address; foreach (IPAddress IPAddr in Dns.GetHostAddr…

SSRS : Changing PC Name

If you are using SQL Server Reporting Services (SSRS) as a reporting solution, and must change your device's PC name, SSRS may not correctly generate and display reports once the computer has been renamed. To correct this, perform the following steps:
Open the Reporting Services Configuration Manager.Click the Database Tab.Modify the existing database, and simply follow the prompts.Once the procedures and steps are completed, try to re-run your Reports.