Tips & Tricks

145 posts

You must manually configure this site for ASP.NET 4.5 in order for the site to run correctly

Recently I got a new Windows 10 computer at work and tried to open an Visual Studio 2010 project, and then I got a web server error as follows: Configuring Web http://localhost:64886/ for ASP.NET 4.5 failed. You must manually configure this site for ASP.NET 4.5 in order for the site to run correctly. ASP.NET 4.0 has not been registered on the Web server. You need to manually configure your Web server for ASP.NET 4.0 in […]

[Fixed] Windows 10 File Explorer Keeps Crashing

Windows 10 gave me a challenge this morning. When I turned on my computer and went to File Explorer to access a downloaded file, File Explorer hang for a while then just crashed. Maybe it’s just an accident, so I tried again, and it crashed again the same way. Hmm, one more try…crashed. Well, it’s Windows, rebooting is a magic fix for most issues, so I reboot my computer, guess what, it didn’t fix the […]

WCF service WSDL shows wrong URL address when using HTTPS

Recently I developed a WCF Web service and deployed it to a server with SSL, however, when clients try to add the service reference in their Visual Studio IDE, the endpoint URL address generated in the web.config or app.config file points to a wrong URL address: it points to the internal machine name instead of the production URL address. Because our SSL certificate is registered with the production URL, this wrong endpoint URL address causes the security […]

How to enable secure login screen in Windows 10

By default, Windows 10 lists all user accounts on the Welcome screen which exposes all usernames, and it is not considered secure. Why it is not secure this way? Because malicious user can create a fake login screen looks like the Windows login screen, and then capture user’s credentials when a legitimate user tries to log in using the fake login screen. You can prevent this from happening by enabling a secure feature in Windows to require user […]

How to fix SharePoint query error-cannot complete this action please try again

This SharePoint query error kept me busy for a while because the error message is very generic and useless, so I hope my experience can help someone in the future. When I ran my ASP.NET application to query a specific resource item from a SharePoint list the other day, I got this error message: Cannot complete this action. Please try again. You can see that this error is very generic and it didn’t provide much […]

How to fix ERR_RESPONSE_HEADERS_ MULTIPLE_CONTENT_DISPOSITION error in Google Chrome

Recently a support ticket was sent to me regarding an error customers get while trying to download a file with Google Chrome browser, and the error is ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_DISPOSITION as shown below: And this error only happens in Google Chrome browser, users of IE, FireFox, and Safari all can successfully download the file. After some further investigation, it turned out that the root cause was that the filename of the uploaded file contains a comma “,”. […]

How to find the internal field names for SharePoint list columns

When you develop ASP.net applications that interact with SharePoint lists, you may come to a point that you need to retrieve value from each column of a list by referencing the name of the list coluumn, however, you may end up with an error saying the column does no exist. This is because the name you use to create a column in SharePoint may not be the same as the one stored in SharePoint (which is […]

[Review] Is Swagbucks legit and worth the time?

Swagbucks is an online rewards and cash back program that allows users to earn points (called SB) by doing activities such as watching videos, playing games, searching the web, shopping online stores, answering surveys, and so on. Swagbucks is a legitimate business and it is definitely worth your time, and let me show you why. Disclaimer: Swagbucks is a legitimate business and rewards you with good amount of gift cards or cash, but do not […]

[Solved] Cannot have multiple items selected in a DropDownList

If you work on ASP.NET DropDownList, most likely you will encounter a situation when you need to pre-select an item in the DropDownList. You might see people using the following way to do that after the DropDownList is bound: this.ddlSchools.SelectedValue = oSchool.AdminID This works very well if you are sure that the value you assign to the DropDownList actually is one of the DropDownList items, otherwise, you will get an ArgumentOutOfRangeException. So the safe way to […]

Protect your router from being hacked

In the fast few days, you may have heard from some news source that some nice hacker(s) targeted unprotected routers with good intention. After hacking the router to gain access to user’s network, the hacker(s) installed some protective software that will look for spyware and remove it once found. The software can also install important updates on user’s computer and even force the user to update their computer so their computer will be up to […]