-
Recent Posts
Archives
- June 2013
- May 2013
- April 2013
- March 2013
- February 2013
- January 2013
- December 2012
- November 2012
- October 2012
- September 2012
- August 2012
- July 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
Categories
Meta
Monthly Archives: November 2010
Detect the Status of a Windows Service (is running) – MS SQL Server
To write a C# program to detect the MS SQL Server Windows Service status (running or stop). 1. Determine the service name, for me the name is MSSQLSERVER. 2. Create a console program like below. using System.ServiceProcess; using System.Windows.Forms; … Continue reading
Posted in .Net
Leave a comment
ARR cannot pop up the authentication dialog
When we configured IIS application to Windows Authentication without going through the ARR (Application Request Routing) the dialog will pop up. How can I make ARR pop up this authentication dialog like the one below? Any genius know the answer?
Posted in Uncategorized
Leave a comment
Web Designers vs. Web Developers
This is from http://sixrevisions.com/infographics/web-designers-vs-web-developers-infographic/ it is 70% true. I am not quite agree on Perl but php rather.
NullReferenceException was unhandled “Object reference not set to an instance of an object” while reading connection string from web.config.
While reading the web.config file from non web application you might receive the error “NullReferenceException was unhandled” like below. When you drill down using the Locals window then you will see the FilePath property is pointing … Continue reading
Posted in .Net
Leave a comment
How to read connection string from web.config in non-web application
In this example, I will use console application but you can use Winform or WCF. static void Main(string[] args) { System.Configuration.Configuration cf = System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration(“/IPMS_RMTR”); System.Configuration.ConnectionStringSettings connsetting; connsetting = cf.ConnectionStrings.ConnectionStrings["IPMSConnectionString"]; Console.WriteLine(connsetting.ConnectionString); } The key … Continue reading
Web Services Error – Could not create type ‘xxxxx.xxxxxxx’ -asmx
If you see the error “Could not create type” … mine is “Could not create type ‘IPMSDBWebService.Service’ “. Most likely your asmx.cs file is in root folder of the web application like the one shows below. Create a folder name … Continue reading
Posted in Uncategorized
1 Comment
The web server process that was being debugged has been terminated by Internet Information Services (IIS). This can be avoided by configuring the Application Pool ping settings in IIS. (The missing step)
When you see the above error same as the picture display below. Click the Help button then it will link you to “Error: Web site worker process has been terminated by IIS” ( http://msdn.microsoft.com/query/dev10.query?appId=Dev10IDEF1&l=EN-US&k=k(VS.DEBUG.ERROR.WEB_SERVER_PROCESS_TERMINATED);k(DevLang-CSHARP)&rd=true). When come to step 5 “In … Continue reading
Posted in Uncategorized
Leave a comment
Unable to load the specified metadata resource
Error like the following type is quite obvious. Choose Build -> Rebuild Solution to continue.
Posted in .Net
Leave a comment
OData – Insert row from Fiddler2 using json
Pre-requsite: SQL Server Express 2008, SQL Server Management Studio Express, SQL Web Developer Express 2010 and Fiddler2. 1. Run the script using SQL Management Studio to run the script below Create Database Beancurd USE [Beancurd] GO /****** Object: Table … Continue reading
Posted in .Net
Leave a comment
DevFabric != Windows Azure
When you create a cloud application in Visual Studio you might connect to your localhost for database despite you are using SQL Server or SQL Server Express. For me, I created the cloud application and read from local database and … Continue reading
Posted in Uncategorized
Leave a comment