<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Michael Sync</title><link>https://michaelsync.net/</link><description>Recent content on Michael Sync</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><copyright>© Michael Sync - Copyright notice</copyright><lastBuildDate>Wed, 03 Nov 2021 00:00:00 +0000</lastBuildDate><atom:link href="https://michaelsync.net/index.xml" rel="self" type="application/rss+xml"/><item><title>AWS Console - Unified search service is unavailable</title><link>https://michaelsync.net/2021/11/03/aws-unified-search-service-is-unavailable/</link><pubDate>Wed, 03 Nov 2021 00:00:00 +0000</pubDate><guid>https://michaelsync.net/2021/11/03/aws-unified-search-service-is-unavailable/</guid><description>Problem The AWS Unified search service is very helpful feature that I often use to go to the AWS resource that I need to look at. but it&amp;rsquo;s suddenly broken since a couple of weeks ago.
Error Message Unified search service is unavailable Try your search again later.
Solution The issue is that I am using ModHeader plugin to access the Swagger page of my private API gateway.</description></item><item><title>Powershell - The underlying connection was closed error or TLS issue</title><link>https://michaelsync.net/2021/10/25/powershell-the-underlying-connection-was-closed-tls-issue-copy/</link><pubDate>Mon, 25 Oct 2021 00:00:00 +0000</pubDate><guid>https://michaelsync.net/2021/10/25/powershell-the-underlying-connection-was-closed-tls-issue-copy/</guid><description>Problem Error Message Invoke-WebRequest : The underlying connection was closed: An unexpected error occurred on a send.
Solution Here is the powershell script that you can update to enable TLS 1.2 as a default in the registry.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 New-Item &amp;#39;HKLM:\SOFTWARE\WOW6432Node\Microsoft\.NETFramework\v4.0.30319&amp;#39; -Force | Out-Null New-ItemProperty -path &amp;#39;HKLM:\SOFTWARE\WOW6432Node\Microsoft\.</description></item><item><title>Outlook - Need Password but no prompt</title><link>https://michaelsync.net/2021/09/15/outlook-2018-need-password-no-prompt/</link><pubDate>Wed, 15 Sep 2021 00:00:00 +0000</pubDate><guid>https://michaelsync.net/2021/09/15/outlook-2018-need-password-no-prompt/</guid><description>Problem I am using Outlook 2018 at work. I recently upgraded my OS build and then I started having this &amp;ldquo;need password&amp;rdquo; issue with my Outlook. If I click on that text, it doesn&amp;rsquo;t show anything or show something and disappear quickly. I couldn&amp;rsquo;t get a new email or search anything in my index. When I restart my laptop, it works sometimes but always come back which is annoying.</description></item><item><title>ASP.NET Core Web API - Unable to connect to web server 'IIS Express'</title><link>https://michaelsync.net/2021/09/14/aspnet-core-webapi-unable-to-connect-to-webserver-iisexpress/</link><pubDate>Tue, 14 Sep 2021 00:00:00 +0000</pubDate><guid>https://michaelsync.net/2021/09/14/aspnet-core-webapi-unable-to-connect-to-webserver-iisexpress/</guid><description>Problem When I open my ASP.NET CORE Web API (3.1) project in Visual Studio 2019, I got this error.
Error Message Microsoft Visual Studio
Unable to connect to web server &amp;lsquo;IIS Express&amp;rsquo;.
OK
Solution Change the port of the applicationUrl and sslPort of IISExpress. (This setting is in \Properties\launchSettings.json. ) Please refer the screenshow below. Close the Visual Studio and reopen it again. You shouldn&amp;rsquo;t see that error anymore.</description></item><item><title>HTTP Error 500.30 - ANCM In-Process Start Failure when using Swagger in ASP.NET Core Web API project</title><link>https://michaelsync.net/2021/09/05/http-error-500.30-aspnetcore-webapi-swagger/</link><pubDate>Sun, 05 Sep 2021 00:00:00 +0000</pubDate><guid>https://michaelsync.net/2021/09/05/http-error-500.30-aspnetcore-webapi-swagger/</guid><description>Problem I have an ASP.NET CORE Web API (3.1) project with Swashbuckle.AspNetCore (6.1.1). When I run the project, I got this error below.
Error Message Here is the error message that I got in Visual Studio Debug output windows.
(Inner Exception #1) System.InvalidOperationException: Error while validating the service descriptor &amp;lsquo;ServiceType: Microsoft.Extensions.ApiDescriptions.IDocumentProvider Lifetime: Singleton ImplementationType: Microsoft.Extensions.ApiDescriptions.DocumentProvider&amp;rsquo;: Unable to resolve service for type &amp;lsquo;Microsoft.AspNetCore.Mvc.ApiExplorer.IApiDescriptionGroupCollectionProvider&amp;rsquo; while attempting to activate &amp;lsquo;Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator&amp;rsquo;. &amp;mdash;&amp;gt; System.</description></item><item><title>TestPlatformException - Can't run the xunit test on Visual Studio 2019?</title><link>https://michaelsync.net/2021/09/04/testplatformexception-xunit-runner-issue-visual-studio-2019/</link><pubDate>Sat, 04 Sep 2021 00:00:00 +0000</pubDate><guid>https://michaelsync.net/2021/09/04/testplatformexception-xunit-runner-issue-visual-studio-2019/</guid><description>Problem I have the .NET core 3.1 class library project that I want to add my xunit tests. I installed xunit 2.4.1, xunit.runner.visualstudio (2.4.1). I added two sample tests. When I run the tests from Visual Studio Test explorer, I am getting this error.
Error Message Log level is set to Informational (Default). Test data store opened in 0.195 sec. ========== Starting test discovery ========== Microsoft.VisualStudio.TestPlatform.ObjectModel.TestPlatformException: Unable to find C:.</description></item><item><title>AWS API Gateway + Lambda: 500 Internal server error or Invalid permissions on Lambda function</title><link>https://michaelsync.net/2021/08/19/aws-api-gateway-internal-server-error-invalid-permissoins-on-lambda-function/</link><pubDate>Thu, 19 Aug 2021 00:00:00 +0000</pubDate><guid>https://michaelsync.net/2021/08/19/aws-api-gateway-internal-server-error-invalid-permissoins-on-lambda-function/</guid><description>Background I have an .NET Core Web API hosted on the AWS Lambda. I put the AWS Gateway in front.
Problem I am getting the &amp;ldquo;500 Internal Server Error&amp;rdquo; when accessing the Web API&amp;rsquo;s swagger url. We already checked the API/Lambda invoke permission. If you are not sure, you can check this link
Solution The solution is that you need to redeploy your API gateway.
If you are using Terraform to deploy the AWS AG, you need to this code.</description></item><item><title>AI-900 Microsoft Azure AI Fundamentals Certificate - Study Resources</title><link>https://michaelsync.net/2021/08/07/microsoft-azure-ai-exam-ai-900-how-i-passed/</link><pubDate>Sat, 07 Aug 2021 00:00:00 +0000</pubDate><guid>https://michaelsync.net/2021/08/07/microsoft-azure-ai-exam-ai-900-how-i-passed/</guid><description>I recently passed the AI-900 Microsoft Azure AI Fundamentals. I don&amp;rsquo;t have any prior experience with Artificial intelligence (AI) or Machine Learning before taking the exam. So I am sharing my experience with this certificate. If you are new to AI, don&amp;rsquo;t worry. I hope the following resources will help you.
Microsoft provides free virtual training for this certificate. I recommend you to start from this. Because you will get a free credit that you can use to take the Microsoft Azure AI Fundamentals certification exam at no cost.</description></item><item><title>Rebuilding my blog (COVID Edition)</title><link>https://michaelsync.net/2021/08/06/rebuilding-my-blog/</link><pubDate>Fri, 06 Aug 2021 00:00:00 +0000</pubDate><guid>https://michaelsync.net/2021/08/06/rebuilding-my-blog/</guid><description>The Covid has changed our way of life. We can&amp;rsquo;t do things that we used to do (e.g. travel) but we can do things that we didn&amp;rsquo;t have time to do before. (e.g. DIY renovation, fitness and etc.) I&amp;rsquo;ve done a lot of different things since the Covid started last year. We have many tough lockdowns on and off in Melbourne. It has been tough but I appreciated that we still have the stable income, good process for the covid (free testing, free vaccination, medical support, financial support and etc.</description></item><item><title>About</title><link>https://michaelsync.net/about/</link><pubDate>Fri, 23 Jul 2021 00:00:00 +0000</pubDate><guid>https://michaelsync.net/about/</guid><description>Hi,
Thanks for visiting. I am still rebuilding my blog. Please see my progress here. If you want to read about me, please check my link-in. (There is a linked-in icon above.)
Books http://www.manning.com/binkley/
http://www.manning.com/perga/
Book Reviews Firebug
Talks Judges/Volunteer Experiences</description></item><item><title>Unit Test parallel execution of static classes or ServiceLocator</title><link>https://michaelsync.net/2015/10/02/unit-test-parallel-execution-of-static-classes-or-servicelocator/</link><pubDate>Fri, 02 Oct 2015 00:00:00 +0000</pubDate><guid>https://michaelsync.net/2015/10/02/unit-test-parallel-execution-of-static-classes-or-servicelocator/</guid><description>We all love greenfield projects but sometimes, we have to refactor/support the project that are developed without considering the testability in the first place. But it shouldn&amp;rsquo;t stop you from adding the unit tests.
This post will show you how to mock the classes and static classes. If you can make the code testable, I would recommend to refactor it instead of using those methods below.
Source Code for Test Project: https://github.</description></item><item><title>Tips on compiling NuGetGallery source code and hosting it on IIS</title><link>https://michaelsync.net/2015/09/29/tips-on-compiling-nugetgallery-source-code-and-hosting-it-on-iis/</link><pubDate>Tue, 29 Sep 2015 00:00:00 +0000</pubDate><guid>https://michaelsync.net/2015/09/29/tips-on-compiling-nugetgallery-source-code-and-hosting-it-on-iis/</guid><description>Last week, I tried compiling the source code of Nuget and hosting it on IIS but found some issues.
Here is the list of issues/solutions that I found. I am sharing it here. Hope it will save some of your times if you are facing the same issues.
Note that I was using the master branch and the date that I downloaded the source from that branch was 22/09/2015.</description></item><item><title>Azure Website: ERROR_PROXY_GATEWAY in deploying an Azure website using MSDeploy from TeamCity</title><link>https://michaelsync.net/2014/11/08/azure-website-error_proxy_gateway-in-deploying-an-azure-website-using-msdeploy-from-teamcity/</link><pubDate>Sat, 08 Nov 2014 00:00:00 +0000</pubDate><guid>https://michaelsync.net/2014/11/08/azure-website-error_proxy_gateway-in-deploying-an-azure-website-using-msdeploy-from-teamcity/</guid><description>Error Message [14:33:45][VSMSDeploy] C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\Web\Microsoft.Web.Publishing.targets(4270, 5): error ERROR_PROXY_GATEWAY: Web deployment task failed. (Could not connect to the remote computer (“[yoursite].azurewebsites.net”) using the specified process (“Web Management Service”). This can happen if a proxy server is interrupting communication with the destination server. Disable the proxy server and try again. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_PROXY_GATEWAY.)
Solution There is an official page that contains the list of error codes and possible resolution from IIS.</description></item><item><title>Status of FxCop/Code Analysis! – Is FxCop still being maintained?</title><link>https://michaelsync.net/2014/07/19/status-of-fxcop-code-analysis/</link><pubDate>Sat, 19 Jul 2014 00:00:00 +0000</pubDate><guid>https://michaelsync.net/2014/07/19/status-of-fxcop-code-analysis/</guid><description>Short version The old version IL-based FxCop/CA are dead but the new version of CA that based on source-code instead of IL will be in VS &amp;ldquo;14”. (You can scroll down and see the reply from Alex Turner, the owner for Diagnostics in managed languages. )
Long version I was a huge fan of FxCop/Code Analysis. I always force encourage my team members to make FxCop/CA happy for every single line of code before they commit.</description></item><item><title>Polymer – Tips on running “Getting Started Tutorial” on Windows</title><link>https://michaelsync.net/2014/07/08/polymer-tips-on-running-getting-started-tutorial-on-windows/</link><pubDate>Tue, 08 Jul 2014 00:00:00 +0000</pubDate><guid>https://michaelsync.net/2014/07/08/polymer-tips-on-running-getting-started-tutorial-on-windows/</guid><description>Yes. As the title say, this post is about tips on how you can run Polymer sample on Windows.
IIS instead of python server In Google&amp;rsquo;s Polymer document, it suggests you to run the following python command to start the web server.
python -m SimpleHTTPServer
python -m http.server
But most of windows developers doesn&amp;rsquo;t have the python installed on our windows machine. What else do we have? Yes. Most of us have the IIS so you can simply create a website and point to polymer-tutorial-master folder in IIS.</description></item><item><title>Deploying the Azure website and Azure webjob from Octopusdeploy (+TeamCity)</title><link>https://michaelsync.net/2014/06/10/deploying-the-azure-website-and-azure-webjob-from-octopusdeploy-teamcity/</link><pubDate>Tue, 10 Jun 2014 00:00:00 +0000</pubDate><guid>https://michaelsync.net/2014/06/10/deploying-the-azure-website-and-azure-webjob-from-octopusdeploy-teamcity/</guid><description>Introduction Last week, it has been a busy week for us but we are glad that managed to bring the Azure WebJobs with Octopus Deploy into one of our small projects. I like to share something that we have learnt and like to get some feedback from you guys.
Azure Web Job Oh well, Scott Hanselman did a pretty good job on explaining about it in his blog post &amp;ldquo;Introducing Windows Azure WebJobs&amp;rdquo; so I am not going to repeat the same thing here.</description></item><item><title>Amazon EC2 + CloudWatch + New Relic: Monitoring, Alert Notifications</title><link>https://michaelsync.net/2014/05/09/amazon-ec2-cloudwatch-new-relic-monitoring-alert-notifications/</link><pubDate>Fri, 09 May 2014 00:00:00 +0000</pubDate><guid>https://michaelsync.net/2014/05/09/amazon-ec2-cloudwatch-new-relic-monitoring-alert-notifications/</guid><description>We have been on Ec2 for almost two years but recently, we needed to monitor a few stuffs on server so we did a bit of experiences on that and deployed it a couple of months back. We found that we had a pretty good result so I am going to share it here as usual.
Purpose To monitor the following things on Amazon Ec2 virtual machine and send the alerts based on some conditions.</description></item><item><title>Performance Counters Errors</title><link>https://michaelsync.net/2014/05/08/performance-counters-errors/</link><pubDate>Thu, 08 May 2014 00:00:00 +0000</pubDate><guid>https://michaelsync.net/2014/05/08/performance-counters-errors/</guid><description>Here is some common errors that you might encounters with Performance Counters on Windows 7 or Windows Server 2008 R2.
Unable to create the specified log file. Error Message [Window Title]
Performance Monitor
[Main Instruction]
When attempting to start the Data Collector Set the following system error occurred:
Unable to create the specified log file.
[OK]
Root cause: It happens when you create three or more performance counters with binary log format under one data collector.</description></item><item><title>Continuous Delivery - full script for deploying Azure WebRole and WorkerRole from Powershell</title><link>https://michaelsync.net/2014/05/07/continuous-delivery-full-script-for-deploying-azure-webrole-and-workerrole-from-powershell/</link><pubDate>Wed, 07 May 2014 00:00:00 +0000</pubDate><guid>https://michaelsync.net/2014/05/07/continuous-delivery-full-script-for-deploying-azure-webrole-and-workerrole-from-powershell/</guid><description>After I posted Windows Azure Deployment – Problem and Solution in my blog last week, one of my blog readers emailed me if I have the full script.
Yes. I still have it but I stopped using Web Role and worker role because deploying web role or worker role takes so much time (around 20-40 min) which is unacceptable for us. Anyways, if 20-40 min deployment time is not your concern then sure, you can use it.</description></item><item><title>Windows Azure Deployment – Problem and Solution</title><link>https://michaelsync.net/2014/05/02/windows-azure-deployment-problem-and-solution/</link><pubDate>Fri, 02 May 2014 00:00:00 +0000</pubDate><guid>https://michaelsync.net/2014/05/02/windows-azure-deployment-problem-and-solution/</guid><description>Scott wrote a great post CI DEPLOYMENT OF AZURE WEB ROLES USING TEAMCITY about deploying Azure WebRole from Azure PowerShell SDK. I used it as a reference. It didn&amp;rsquo;t work for me. maybe it&amp;rsquo;s because of my setting. I don&amp;rsquo;t know. I have to update a few things for his script. I am sharing it here for those who might have the same issue.
Contents Error in importing the module CurrentStorageAccount is not set Authentication and Certificate Issues Server Busy 💡 ScottGu announced about the release of Windows Azure SDK 2.</description></item><item><title>Windows Azure: Can we have a non-US outgoing IP Address on Azure?</title><link>https://michaelsync.net/2014/04/06/windows-azure-can-we-have-a-non-us-outgoing-ip-address-on-azure/</link><pubDate>Sun, 06 Apr 2014 00:00:00 +0000</pubDate><guid>https://michaelsync.net/2014/04/06/windows-azure-can-we-have-a-non-us-outgoing-ip-address-on-azure/</guid><description>The answer is NO. I am not sure the reason behind but it&amp;rsquo;s pretty funny for those who come from Amazon EC2. Currently, there are several regions that you can choose when you create a new virtual machine on Windows Azure.
You can checkout the IP range information on Azure data centers here ( link: Windows Azure Datacenter IP Ranges ) But creating a VM on non-US region doesn&amp;rsquo;t mean you will get the outgoing IP address from that region.</description></item><item><title>TeamCity Tip: Building all pull requests and updating the status to Github</title><link>https://michaelsync.net/2014/04/05/teamcity-tip-building-all-pull-requests-and-updating-the-status-to-github/</link><pubDate>Sat, 05 Apr 2014 00:00:00 +0000</pubDate><guid>https://michaelsync.net/2014/04/05/teamcity-tip-building-all-pull-requests-and-updating-the-status-to-github/</guid><description>Merging all pull requests and build all branches Let&amp;rsquo;s talk about how we work with github. We keep the master as a stable branch and if we need to work on new feature or bug fixes, we create another branch and push it as a pull request once we&amp;rsquo;ve done the job. So, another guy can review the code and merge it to the stable branch. The challenge here is that we like to know whether there is any conflict or test failures before we merge the code or not.</description></item><item><title>WCF Tricks</title><link>https://michaelsync.net/2014/03/14/wcf-trick/</link><pubDate>Fri, 14 Mar 2014 00:00:00 +0000</pubDate><guid>https://michaelsync.net/2014/03/14/wcf-trick/</guid><description>Error: HTTP Error 404.17 – Not Found The requested content appears to be script and will not be served by the static file handler.
Solution .NET 3.0
C:\Windows\Microsoft.NET\Framework\v3.0\Windows Communication Foundation&amp;gt;ServiceModelReg.exe -i
.NET 4.0
C:\Windows\Microsoft.NET\Framework\v4.0.30319&amp;gt;ServiceModelReg.exe -ia
Error: HTTP Error 500.19 – Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid.
Solution Run C:\Windows\Microsoft.NET\Framework\v3.0\Windows Communication Foundation&amp;gt;ServiceModelReg.exe -i
Error: Could not load type &amp;lsquo;System.</description></item><item><title>Visual Studio 2013 + SlowCheetah error</title><link>https://michaelsync.net/2014/02/18/visual-studio-2013-slowcheetah-error/</link><pubDate>Tue, 18 Feb 2014 00:00:00 +0000</pubDate><guid>https://michaelsync.net/2014/02/18/visual-studio-2013-slowcheetah-error/</guid><description>I got this error recently when I tried to rebuild the project that I downloaded from github in VS2013.
Error Message:
The &amp;ldquo;SlowCheetah.Xdt.TransformXml&amp;rdquo; task could not be loaded from the assembly C:\Users\Michael\AppData\Local\Microsoft\MSBuild\SlowCheetah\v2.5.10.2\SlowCheetah.Xdt.dll. Could not load file or assembly &amp;lsquo;file:///C:\Users\Michael\AppData\Local\Microsoft\MSBuild\SlowCheetah\v2.5.10.2\SlowCheetah.Xdt.dll&amp;rsquo; or one of its dependencies. The system cannot find the file specified. Confirm that the &amp;lt;UsingTask&amp;gt; declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.</description></item><item><title>“The Provider encountered an unknown error” when creating new users in EF DbMigrationsConfiguration.Seed method</title><link>https://michaelsync.net/2013/11/05/the-provider-encountered-an-unknown-error-when-creating-new-users-in-ef-dbmigrationsconfiguration-seed-method/</link><pubDate>Tue, 05 Nov 2013 00:00:00 +0000</pubDate><guid>https://michaelsync.net/2013/11/05/the-provider-encountered-an-unknown-error-when-creating-new-users-in-ef-dbmigrationsconfiguration-seed-method/</guid><description>The objective was to create some default users in EF Seed method so we could login without having a link for new user registration in application.
The code that we have was as below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 WebSecurity.InitializeDatabaseConnection(&amp;#34;DbContext&amp;#34;, &amp;#34;UserAccounts&amp;#34;, &amp;#34;Id&amp;#34;, &amp;#34;UserLogOnId&amp;#34;, true); if (!WebSecurity.UserExists(&amp;#34;Test1&amp;#34;)) { WebSecurity.CreateAccount(&amp;#34;Test1&amp;#34;, &amp;#34;123456&amp;#34;, false); } context.UserAccounts.AddOrUpdate( u =&amp;gt; u.UserLogOnId, new UserAccount { UserLogOnId = &amp;#34;Test1&amp;#34;, UserDisplayName = &amp;#34;Test Staff 1&amp;#34;, Status = UserAccountStatus.</description></item><item><title>TeamCity: Unable to connect the build agent?</title><link>https://michaelsync.net/2013/10/29/teamcity-unable-to-connect-the-build-agent/</link><pubDate>Tue, 29 Oct 2013 00:00:00 +0000</pubDate><guid>https://michaelsync.net/2013/10/29/teamcity-unable-to-connect-the-build-agent/</guid><description>It seems like we have a different problem every day. I was opening up the CI (TeamCity) site to public access so I did a bit of changes in Build agent configuration and TeamCity server configuration. After that, I am not able to connect the build agent from Teamcity server.
Are you also having the same problem?
If yes then the first thing that you should check is the teamcity-agent.</description></item><item><title>WebDeploy 3 – Error in publishing an ASP.NET website to Amazon EC2 IIS</title><link>https://michaelsync.net/2013/10/29/webdeploy-3-error-in-publishing-website-to-amazon-ec2/</link><pubDate>Tue, 29 Oct 2013 00:00:00 +0000</pubDate><guid>https://michaelsync.net/2013/10/29/webdeploy-3-error-in-publishing-website-to-amazon-ec2/</guid><description>Here is the error that I got when I publish a website from Azure VM to Amazon EC2 VM. I am using the following MSBuild command to do the deployment and I got Web Deploy 3.0 installed on EC2 VM.
1 2 3 4 5 6 7 msbuild /p:Configuration=Release /p:OutputPath=bin /p:VisualStudioVersion=11.0 /p:DeployOnBuild=True /p:DeployTarget=MSDeployPublish /p:MsDeployServiceUrl=https://my-super-cool-server/msdeploy.axd /p:AllowUntrustedCertificate=True /p:DeployIisAppPath=YourWebSiteInstanceName /p:MSDeployPublishMethod=WMSVC /p:username=root /p:password=SuperComplexRootPassword Error Message [VSMSDeploy] C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Web\Microsoft.Web.Publishing.targets(4196, 5): error ERROR_DESTINATION_NOT_REACHABLE: Web deployment task failed.</description></item><item><title>Bug – Code Analysis doesn’t work well with async methods even in Visual Studio 2013</title><link>https://michaelsync.net/2013/09/26/bug-code-analysis-doesnt-work-well-with-async-methods-even-in-visual-studio-2013/</link><pubDate>Thu, 26 Sep 2013 00:00:00 +0000</pubDate><guid>https://michaelsync.net/2013/09/26/bug-code-analysis-doesnt-work-well-with-async-methods-even-in-visual-studio-2013/</guid><description>**Updated: Please see the status of FxCop/Code Analysis in this post. **
Yeah. That&amp;rsquo;s bad.. We are extensively using async/await in most of our projects. We have a guideline for developers to follow the code analysis with our own custom ruleset. We even run CA on CI (Yes! Initially, we were using FxCop on CI but we found one blocking issue that makes us to stop using FxCop on CI).</description></item><item><title>Problem/Solution: Error in publishing ASP.NET MVC with MvcBuildViews ON from Visual Studio 2012</title><link>https://michaelsync.net/2013/09/25/problemsolution-error-in-publishing-asp-net-mvc-with-mvcbuildviews-on-from-visual-studio-2012/</link><pubDate>Wed, 25 Sep 2013 00:00:00 +0000</pubDate><guid>https://michaelsync.net/2013/09/25/problemsolution-error-in-publishing-asp-net-mvc-with-mvcbuildviews-on-from-visual-studio-2012/</guid><description>Note: This post is contributed by Matthew Seng. He is one of my colleagues and we are working in same project together.
Error Message
It is an error to use a section registered as allowDefinition=&amp;lsquo;MachineToApplication&amp;rsquo; beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
Steps to replicate the issue
Create a new ASP.NET MVC 4 project in Visual Studio 2012 Set true to MvcBuildViews in csproj (&amp;lt;MvcBuildViews&amp;gt;true&amp;lt;/MvcBuildViews&amp;gt;) Publish the project.</description></item><item><title>Unirest-RT – Simplified, lightweight HTTP library for Windows 8 RT</title><link>https://michaelsync.net/2013/09/25/unirest-rt-simplified-lightweight-http-library-for-windows-8-rt/</link><pubDate>Wed, 25 Sep 2013 00:00:00 +0000</pubDate><guid>https://michaelsync.net/2013/09/25/unirest-rt-simplified-lightweight-http-library-for-windows-8-rt/</guid><description>One of my closed friends from Mashape asked me to help in porting their unirest-net library to Windows 8 RT. So, I took a few hours to port their library for Windows 8 RT runtime. You can take a look at my ported version of Unirest in this github repository.
Here is the list of what I changed in order to make .NET library work in Windows 8 RT runtime.</description></item><item><title>(Unsolved) FxCop + .NET Portable Library Issue</title><link>https://michaelsync.net/2013/05/28/unsolved-fxcop-portable-library/</link><pubDate>Tue, 28 May 2013 00:00:00 +0000</pubDate><guid>https://michaelsync.net/2013/05/28/unsolved-fxcop-portable-library/</guid><description>Updated: Please see the status of FxCop/Code Analysis in this post.
Update: The only workaround that I am using now is that I removed the FxCop from CI and use Code Analysis instead. But you might not want to run the code analysis on every build on developer machine so you can create another configuration setting (maybe CI) and enable the code analysis for that setting or you can use the code analysis switch on MSBUILD.</description></item><item><title>My blog is 3 years old now!</title><link>https://michaelsync.net/2009/04/03/my-blog-is-3-years-old-now/</link><pubDate>Fri, 03 Apr 2009 00:00:00 +0000</pubDate><guid>https://michaelsync.net/2009/04/03/my-blog-is-3-years-old-now/</guid><description>Hey there!!
My blog is 3 years old now. It was so fast!! I&amp;rsquo;m still feeling the day that I started this blog. As I wasn&amp;rsquo;t that familiar with any blogging software, I did a lot of searches and experiments for the blogging platform that I&amp;rsquo;m going to use for my little blog. I tried quite a few platforms including blogger, wordpress, typepad and etc and I chose to use wordpress for blog.</description></item><item><title>Silverlight MVP (Most Valuable Professional) Award</title><link>https://michaelsync.net/2009/04/02/silverlight-mvp-most-valuable-professional-award/</link><pubDate>Thu, 02 Apr 2009 00:00:00 +0000</pubDate><guid>https://michaelsync.net/2009/04/02/silverlight-mvp-most-valuable-professional-award/</guid><description>Hello everyone!
I got MVP award for Silverlight this year. I&amp;rsquo;m really really happy about that. (Thanks, god! It wasn&amp;rsquo;t April Fool! ). Thanks so much, everyone! I would like to give my special thank to Justin Angel and Lilian Quek. I promise that I will try to contribute as much as I can for our community.
My MVP Public Profile : (https://mvp.microsoft.com/en-us/mvp/michael%20(soe%20htike)%20sync-4025175)
As of now, there are five MVPs under Silverlight Expertise.</description></item><item><title>Script#: C# to Javascript Converter</title><link>https://michaelsync.net/2007/10/29/script-c-to-javascript-converter/</link><pubDate>Mon, 29 Oct 2007 00:00:00 +0000</pubDate><guid>https://michaelsync.net/2007/10/29/script-c-to-javascript-converter/</guid><description>Have you heard about Script#? I only heard about it last week even thoughNikhil started this project last year. I knew that there is a Java-to-Javascript converter called GWT (Google Web Toolkit) in Java World since long time back and I thought that it might be good if we, C# developers, also have that kinda tools for ASP.NET web development. Now, the dream come true. Nikhil created Script# project that can convert the C# code to Javascript.</description></item><item><title>Things you should know before using Sitemeter</title><link>https://michaelsync.net/2007/04/11/things-you-should-know-before-using-sitemeter/</link><pubDate>Wed, 11 Apr 2007 00:00:00 +0000</pubDate><guid>https://michaelsync.net/2007/04/11/things-you-should-know-before-using-sitemeter/</guid><description>It&amp;rsquo;s so sad for me to hear that SiteMeter, a well-known web stats providers, is pushing the specificclick tracking and advertising cookies on to visitors of sites using their service.You may already heard about this since it was happened last month. For me, that news is pretty new. Actually, I came to know about this when I read this post in WordPress Support Forum.
When it was started?
Actually, nobody noticed about the specificclick tracking or cookies of SiteMeter before StatCounter published this post &amp;ldquo;StatCounter Says NO!</description></item><item><title>Custom Javascript Dialog</title><link>https://michaelsync.net/2007/01/01/custom-javascript-dialog/</link><pubDate>Mon, 01 Jan 2007 00:00:00 +0000</pubDate><guid>https://michaelsync.net/2007/01/01/custom-javascript-dialog/</guid><description>Source Code: JavascriptDialog_src_demo.zip
Introduction This article describe how to create a Custom Javascript Dialog in ASP.NET. And also, I&amp;rsquo;m gonna tell you about my experience that I got when I was implementing this dialog in my project.
I&amp;rsquo;d highly recommend you to download my sample before reading. There are two samples in Demo Project that you can download. The first example is for implementing Javascript Prompt in ASP.NET. Even thought using Javascript Prompt is not a big deal, you can learn how to communicate between the client-side (JS) variable and Server-side (C#) variable, how to register Javascript in Content Page and so on.</description></item><item><title>JavaScript: Changing the image at runtime.</title><link>https://michaelsync.net/2006/10/10/javascript-changing-image-at-runtime/</link><pubDate>Tue, 10 Oct 2006 00:00:00 +0000</pubDate><guid>https://michaelsync.net/2006/10/10/javascript-changing-image-at-runtime/</guid><description>It&amp;rsquo;s the best way but if you are desperate, here is how you can do it. Note that the code doesn&amp;rsquo;t work on Web Server. In order to make this script to work, your have to add this page which is using this code as a trust site in Internet Explore 6 or 7. Of course, it won&amp;rsquo;t work in Mozilla-based browsers.. but the firefox extension called Noscript might help the script to work in Mozilla Firefox.</description></item><item><title>Bugfix for CMotion Image Gallery (Javascript)</title><link>https://michaelsync.net/2006/07/13/updated-cmotion-image-gallery/</link><pubDate>Thu, 13 Jul 2006 00:00:00 +0000</pubDate><guid>https://michaelsync.net/2006/07/13/updated-cmotion-image-gallery/</guid><description>CMotion works well if there is only one page on the page. If we put more than one container in a page, the first container will work but the rest doesn&amp;rsquo;t.
I have to use 3 image containers on one page in my project so I have to fix this issue. You can download the source code of this page here.
Source Code: CMotion
Here is the list of code that I modified.</description></item><item><title>Maintain Scroll Position of DIV using JavaScript – ASP.NET 2.0</title><link>https://michaelsync.net/2006/06/30/maintain-scroll-position-of-div-using-javascript-aspnet-20/</link><pubDate>Fri, 30 Jun 2006 00:00:00 +0000</pubDate><guid>https://michaelsync.net/2006/06/30/maintain-scroll-position-of-div-using-javascript-aspnet-20/</guid><description>Some people have some problems in maintaining the position of the DIV. Initially, The most of people are using htc for solving this problem. but there are so many disadvantages of using htc such as it works only in Internet Explorer, it doesn&amp;rsquo;t work properly with Visual Studio 2005 and so on.
Finally, I got the solution for solving this problem.. Using Javascript for keeping the scroll position is the best way to go.</description></item><item><title>JavaScript – Working with Database</title><link>https://michaelsync.net/2006/06/14/javascript-working-with-database/</link><pubDate>Wed, 14 Jun 2006 00:00:00 +0000</pubDate><guid>https://michaelsync.net/2006/06/14/javascript-working-with-database/</guid><description>A lot of junior developers or students used to ask this question &amp;ldquo;Is it possible to connect the database from Javascript?&amp;rdquo;. The answer is that you can if your browser or OS supports it. but it&amp;rsquo;s not the recommended.
If you insist that you have the unique requirement (e.g. just for learning) and the security is not your concern, this post will show you how to do it.
Source Code: JavaScriptDatabaseSrc.</description></item><item><title>ASP.NET MVC – Multiple Files Upload Bug or by-design issue?</title><link>https://michaelsync.net/1/01/01/asp-net-mvc-multiple-files-upload-bug-or-by-design-issue/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://michaelsync.net/1/01/01/asp-net-mvc-multiple-files-upload-bug-or-by-design-issue/</guid><description>Update: Yes. Kiran confirmed that it&amp;rsquo;s by design.
This is by design. This is part of System.Web and so we are not too inclined to fix this issue currently. A similar related issue was filed against Web API. You can check the resolution information on it. MultipartFormDataStreamProvider is creating a blank file even though the multipart form-data request isn&amp;rsquo;t sending one
Thanks,
Kiran
The issue is that when you http-post the request that contains a file html element then you got 1 for files.</description></item></channel></rss>