ASP.NET News from Blogger: Wenlong Dongs Blog   Get the feed of: Wenlong Dongs Blog

Total News: 50

Two bloggers for performance

Dustin Metzgar and Sajay Antony, our performance developers, have all started up their blogs on MSDN, which is great news to developers who are interested in WCF/WF/AppFabric performance or other fun ...

Why does machine.config contain invalid Xml content after installing .Net 3.5 patches?

For quite a few times, I heard customers would hit this issue after installing .Net 3.5 patches or repair 3.5 on Windows Vista or Windows 2008 Server. Basically the machine.config file contains some i...

WF 4 Performance Whitepaper Published

We have just published the performance whitepaper for WF 4 at the following location: http://msdn.microsoft.com/en-us/library/gg281645.aspx We have done quite some component-level performance measure...

Using ASP.NET Sessions from WCF

This is not a new topic. But interestingly I could not find a good example on the web while I wanted to find one for some other investigation. So I decided to create a sample here to show the followin...

Why Does WCF Become Slow After Being Idle For 15 Seconds?

Customers reported the following WCF performance issue recently:         A WCF service over TCP or Named Pipe idles for over 15 seconds and the first request after t...

Why Are WCF Responses Slow and SetMinThreads Does Not Work?

Customers reported the following WCF performance issue recently:         A WCF client sends 10 requests concurrently to a self-hosted WCF service on 10 different thr...

Crack Throttling: Debugging WCF TimeoutException for a Middle-Tier Application

Recently I helped a customer with a few friends to debug a TimeoutException issue happened in their middle-tier which uses WCF proxies. The issue turned out to be simple but the experience was quite i...

WCF 4: Higher Default Throttling Settings for WCF Services

It has been quite a while that I did not write anything. This is because I was fully focusing on WCF 4. Now that we have got most of the work done, it is good time to continue my writing. Startin...

Scale WCF Application Better with Asynchronous Programming

WCF is a framework that is asynchronous inside out. Internally, asynchronous patterns are used to achieve non-blocking calls between different layers inside WCF. Externally WCF exposes the asynchronou...

Why Only Two Concurrent Requests for WCF Load Testing?

This is not a new topic in the world of traditional web service usage. But I was still asked by people who use WCF. So I think it would be valuable to post a blog entry here. One of our customers aske...

Top WF/WCF Sessions in PDC2008

There are still 21 days to go until the PDC. Are you excited to attend those fascinating technical sessions? You might have noticed that we have the following interesting sessions for WF/WCF as part o...

.NET 4.0, WF/WCF, and Oslo

Lately I have been quite busy working on .NET 4.0 which will be the next major side-by-side release of .NET Framework since .NET 2.0. It will be unveiled at PDC on October 27th. .NET 4.0 will be shipp...

Orcas SP1 Improvement: Asynchronous WCF HTTP Module/Handler for IIS7 for Better Server Scalability

Introduction As mentioned in my last blog entry, for IIS-hosted WCF services, WCF holds the worker thread coming from ASP.NET until the whole request is completed to avoid a Denial of Service (DOS) at...

WCF Request Throttling and Server Scalability

Two Threads per Request In .NET 3.0 and 3.5, there is a special behavior that you would observe for IIS-hosted WCF services. Whenever a request comes in, the system would use two threads to process th...

Patterns and Practices: WCF Security Guidance available online

Here is some good news for people who are looking for WCF Security guidance. The Microsoft Patterns and Practices team has just created the following blog for this: http://blogs.msdn.com/jmeier/archiv...

Why changing SendTimeout does not help for hosted WCF services?

In .NET 3.0, you would handle two different timeouts:          Binding.SendTimeout This is the timeout that specifies how long the client can wait for the trans...

Profiling WCF/WF Applications with VS Performance Profiler

There are tons of good articles and blogs out there regarding how to use Visual Studio Team System (VSTS) performance tools (vsperfcmd.exe etc under "%ProgramFiles%\Microsoft Visual Studio ...

Comparison of Different WCF Encoders

Kenny wrote an excellent blog entry to compare the three WCF encoders (Binary, MTOM, and Text) from performance perspective. It is quite helpful for you to decide when to use which encoder....

A Sample for WCF Client Proxy Pooling

Introduction Ideally we should not need to pool WCF client proxies as I mentioned in my previous blog entry. From some customer feedback, however, I got to know that reusing proxies is not ideal becau...

How to Use a Singleton WCF Proxy to Call Different Workflow Service Instances in .NET 3.5?

In .NET 3.5, a new type WorkflowServiceHost is introduced to provide the integration of WF and WCF. On the server-side, ReceiveActivty plays the main role to implement WCF service operations. With thi...

Come and join the Connected Framework development team!

Do you want to work on Microsoft's next generation of the distributed application framework? Do you enjoy the thrill of shipping a great product? Do you want to join the team that has shipped WCF + WF...

Performance Improvement for WCF Client Proxy Creation in .NET 3.5 and Best Practices

Introduction In .NET 3.0 SP1, which will be shipped together with .NET 3.5, there is significant performance improvement in WCF client proxy creation. For BasicHttpBinding, the performance is close to...

Best Practice: Always open WCF client proxy explicitly when it is shared

In order to provide symmetric programming model for the client-side as for the server-side, WCF leverages .NET Remoting transparent proxy technique so that the service contract interface can be used s...

How to redirect a Url in IIS6/IIS7 and in ASP.NET?

Sometimes you want to redirect users request to a different one when you want to retire old ones but still provide backward-compatibility. David Wang has a good summary on different redirects for IIS ...

How to use .asmx extension to handle WCF requests?

For backward compatibility, WCF supports easy server-side migration from ASMX to WCF. This is good news for existing ASMX customers. Generally, the clients of ASMX may have server Urls hard-coded with...

How to use performance counters to diagnose performance of WCF applications

There are many ways to diagnose the performance of WCF applications. Here is a simple one that uses performance counters to get some rough ideas. There are two categories of performance counters that ...

How to skip server certificate validation error when using HTTPS?

When you are developing a WCF service with an HTTPS endpoint (i.e., you enabled Transport security), you would want to test it with a test certificate or a certificate which has some invalid data. The...

A simple config-less IIS-hosted WCF service

I feel that its pretty handy to have a simple config-less IIS-hosted WCF service when I want to check whether WCF is correctly configured in IIS. So I post such a service here just for convenience. S...

Service Instances and Concurrent Execution

Kenny has a very good blog entry on this topic. I want to add some more points to this from performance perspective. InstanceContextMode By default, the default value of InstanceContextMode for a WCF ...

Trade Benchmark: .NET 3.0 vs IBM WebSphere 6.1

Microsoft designed WCF seriously with all major basics taken into account: performance, security, and robustness/stress. I am proud as being part of the team. You might have seen the data that Saurab...

How to change HostName in WSDL for an IIS-hosted service?

If you have a web-hosted service simple.svc under the virtual application /simple, you would probably get the following service address in the WSDL: <wsdl:service name="SimpleService">   ...

WF Performance Test Sample: SimpleStateMachineWorkflow

As promised, here I attach the sample code for the SimpleStateMachineWorkflow performance test. It is not the same one that is used for the whitepaper (http://msdn2.microsoft.com/en-us/library/Aa97380...

Pointers to WCF and WF Performance Data

Saurabh, our Program Manager, published a useful whitepaper a few months ago. It provides some performance comparisons between WCF and other existing .NET distributed computing technologies: http://ms...

Impersonation with Double Identities

There are two different levels of security that you can use for WCF services: Message level and Transport level. For Transport level in HTTP case, you can use different IIS Authentication mechanisms t...

Virtual Application vs Virtual Directory

People are always confused by these two IIS concepts, especially for the new IIS7/WAS. These are not new concepts. They are available since IIS6 on Windows 2003 Server. However the terms were misused ...

What is IIS7?

What is IIS7? What is the difference between IIS6 and IIS7? Here are the simple answers:          IIS7 is a new revision (version 7.0) of the Internet Informati...

IIS7/WAS Installation

IIS7 has a modular design which allows you to selectively install components that are needed. This design is based on the new manifest-driven Componentization technology that is introduced in Windows ...

.NET Framework 3.0 and SDK are shipped

Finally, we made it! .NET Framework 3.0 (was called "WinFX") is shipped today. Here is the download link: http://www.microsoft.com/downloads/details.aspx?FamilyId=10CC340B-F857-4A14-83F5-2...

How to use WSDualHttpBinding on Windows XP for Hosted Services

On Windows XP, Internet Information Service (IIS) does not use HTTP.sys which is the HTTP driver that can be used to share HTTP traffic on the same port. This means that when IIS is running, the defau...

Cannot Find Server (404) or Get Plain Text for WCF .svc Files From IIS?

Question After upgrading WCF (or NetFx-3.0) from an older beta version to RC1, I get Page Not Found (404) error or get the plain text content of the .svc file for .svc files. Is .svc extension remove...

WCF Impersonation for Hosted Services

In my blog entry ASP.NET Compatibility Mode, I showed how to do impersonation with ASP.NET approach. WCF provides more flexible operation-level impersonation. Here is a common question:   Questio...

ASP.NET Async Pages vs Async WCF Service Operation

In Dmitrys blog, he mentioned about how to write ASP.NET async pages with ASP.NET 2.0. Basically, the server page can handle the request asynchronously without blocking the request thread and the serv...

WinFX February CTP is released!

GOOD NEWS! The WinFX February CTP has just been released today and can be downloaded from here. Here is the readme document. This CTP has consumed a lot of customer feedback and thus brings big b...

Read Configuration Data from Hosted WCF Services

Virtual Applications and Directories          Process Management model          Application Management model Web.config...

ASP.NET Compatibility Mode

Table of Content: Introduction ASP.NET HTTP Pipeline Two Modes          Mixed Transports Mode          Under the Hood AS...

WCF Go Live and New Web Site!

Last week, there were some exciting announcements for WCF customers: 1)     WCF Go Live release: http://msdn.microsoft.com/winfx/getthebeta/golive/default.aspx 2)   ...

How to Initialize Hosted WCF Services

There are different mechanisms to perform custom initialization for hosted WCF services in an ASP.NET application. ASP.NET provides ways to perform general initialization at application-level. For eac...

WCF Service Hosting Common Issues

Page Not Found (404) Error for WCF Service Hosted in IIS On Windows 2003 Server, after installing IIS and WinFX, you may get this error when you navigate a .svc file from the browser. This is normally...

Hosting an Indigo (WCF) Service

Let me start with something simple as my first blog. I first make a few assumptions here: You have used Microsoft Internet Information Services (IIS). You are familiar with .NET Programming with Comm...

About me

Hi, I am a software design engineer (SDE) in Microsoft. Before I joined the cool Indigo team, I had been playing with the page navigation, data storage, security, and search engine features for the He...

View Other bloggers