.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

HTTP, .NET 4 and the Client Profile

Posted By:      Posted Date: September 22, 2010    Points: 0   Category :WPF

We're about to release our new WPF application that's based on the .NET 4 framework. I'm trying to see if we can use the client profile rather than the full framework since installing the latter has turned out to take a loooong time (>15-20 minutes post-download) on our users' computers.

With that said, I've determined that our WPF application has two dependencies that don't exist in the client profile:

  • JavaScriptSerializer
  • HttpUtility (specifically the UrlEncode() method)
Are there any alternatives to these classes in the client profile that I could use instead?

View Complete Post

More Related Resource Links

WinInet: Enable HTTP Communication in Windows-Based Client Applications


The Internet provides the infrastructure for applications to communicate, and that can include non-UI communication between Win32-based applications. If you think beyond the standard browser usage of HTTP, you can use this protocol to retrieve information from Win32-based applications and save it to a Web server. After explaining how HTTP can be used in this way, this article shows how to use Microsoft SQL Server, ASP, IIS, WinInet, and Visual Basic to implement two examples. The first reports usage data-how often an application is used and by whom. The second monitors application errors and reports error details for use by helpdesk staff or engineers in the debugging process.

Todd Meister

MSDN Magazine June 2001

Why does .NET Framework 4 client profile slow down boot time network creation?

I've been running a Windows XP sp3 KVM virtual machine for a long time now, and some recent update made the initial network startup go from a few seconds at boot time to around 90 seconds. Using Add/Remove program to uninstall recent updates points the finger at .NET Framework 4 client profile. With it installed, if I right click on network and ask for properties right after booting, there is a 90 second delay before the network dialog with the list of network interfaces finally appears. In addition, the network drive I have automounted at login is not accessible for the same 90 seconds. As an experiment, I tried going into the device manager and deleting the network interface, and if I reboot after that it takes 90 seconds for the new hardware wizard to appear. All these 90 second delays vanish if I remove this .NET update. The network comes up as soon as the system boots.

Microsoft .NET Framework 4 Client Profile

I changed from Vista to Windows 7.  Every time I start my computer it says I need to install Microsoft .NET Framework 2.0  When I do that, the installation says it's already in my computer. I have looked and what's installed is Microsoft .NET Framework 4 Client Profile.  What should I do?  Also, my bluetooth has stopped working. Is this why?

How to bind a WCF Http client to a specific outbound IPAddress before making the request

I want my request to go out through a specific IP Addresses. Is there a way to do that in WCF. The explanation of why I need this is a little long winded so i'd rather not get into that. Here is sample code string ipAddress = ""; IService service; ChannelFactory<IOmlService> factory = new ChannelFactory<IService>(new BasicHttpBinding(), new EndpointAddress("http://" + IPAddress + ":6996/IService")); service = factory.CreateChannel(); service.Test(); Here is an example scenario to explain exactly what i'm looking for. Let's say I have two IPs on my machine ( and Both of them can hit If i run this code now, it will hit the IP (.32) from any of my IPs (.30 or .31). How can i force it to go through a specific IP of mine (say .30). Is there any way to do that using WCF? Thanks

Project builds for .NET 4.0 but not 4.0 Client Profile

Hi, I'm converting some class library projects from .NET 2.0 to 4.0. I've gone through the wizard to get the solution and projects into Visual Studio 2010 and it builds. When I open the project properties for any of my class library projects and set the target framework to .NET 4.0 it still builds, but if I change it to .NET 4.0 Client profile, which is what I want, it doesn't. What is confusing me is that the errors are that a referenced namespace in one of my own class libraries doesn't exist. E.G. I have a class library named IGLT.SMO.Data. Its default namespace is IGLT.SMONET.Data with several classes in that namespace. A second class library named Common references IGLT.SMO.Data and uses it throughout. When I change Common to target .NET 4.0 Client Profile I get errors like "The type or namespace 'SMONET' does not exist in the namespace 'IGLT' (are you missing an assembly reference?)".   I'm not missing a reference or it wouldn't build for any framework. What am I missing?

The HTTP request is unauthorized with client authentication scheme 'Anonymous'

I am trying to do a soap request from a WebCTRL server. I went to add a service reference, entered the URL to my wsdl and (after prompting me for a username and password) it added the reference and I can create an instance of the service object and makes calls against it.   Dim eval As New WebCTRL_Eval.EvalClient eval.Open() Debug.Print(eval.getValue("#reception_40/lstat"))   I get this back from the server, on open and getvalue.   The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Basic realm="SOAP Access"'.   I understand that it is the HTTP authentication that I need to setup or configure, but just dont understand how to do it.   I have tried eval.ClientCredentials.UserName.UserName = "myusername" eval.ClientCredentials.UserName.Password = "mypassword"   How do I change the client authentication scheme and provide my credentials to it?   Here is what is on my app.config file.   <system.serviceModel>  <bindings>   <wsHttpBinding>    <binding name="EvalSoapBinding"     bypassProxyOnLocal="false"     transactionFlow="false"     hostNameComparisonMode="StrongWildcard"     maxBufferPoolSize="524288"     maxReceivedMessageSize="65536"     messageEncoding="Text"

User Profile Service Synchronization Connection: Client Timout

Hi, I have scenario on configuring User Profile Synchronization service on customer site as below. Window AD Server 2003 Domain NetBIOS: foo FDQN: foo.bar.com  User Account to connect: foo\ad-connect This account already set permission as describe in http://technet.microsoft.com/en-us/library/ee721049.aspx  when I try to create connection, system took long time to process then return error as "Client Timeout". I try to check FIM and it's seems to work fine (no error return and can get users data). So could anyone told me what's wrong? Since I've didn't have much knowledge on Network and AD, please advice.Theeraphat.P SharePoint Information Worker

.net 4.0 Client Profile installs, Extended fails

After uninstalling all .net versions, I tried to reinstall them. All available versions were installed including .net 4.0 Client Profile but .net 4.0 Extended did not install. Suggestions? The error log was VERY long so here's the summary: Final Result: Installation failed with error code: (0x80070643), "Fatal error during installation.

Cannot deploy .net framework 4.0. client profile via wsus


I would like to deploy .NET framework 4.0. client profile via wsus.

I failed to import .NET framework 4.0. via Windows Update.

Does anybody try to deploy it via WSUS? Is it possible?

WCF Client Behind ISA: HTTP Error 407


I am moving this thread to WCF from .NET Networking and Communication


We have to connect to a 3rd party XML Web Service outside our LAN by adding a WCF Service Reference to a simple console application


When attempting to invoke any of the generated client class methods, we recieve the following error: "The remote server returned an unexpected response: (407) Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.  )."

In old style ASMX Web Reference:

TheServiceWse client = new TheServiceWse();

client.Proxy = new System.Net.WebProxy("ISA Server Name", 800);


The HTTP request was forbidden with client authentication scheme 'Anonymous'

I am trying to build a proof of concept of a WCF service utilisting a
wsHttpBinding with Transport Certificate security. I am having problems
connecting to it with a console client - everytime I try to open the channel
I get the following error: The HTTP request was forbidden with client authentication scheme 'Anonymous'.

can any one help me?
Thanks a lot
Frank Xu Lei--????,????
Focus on Distributed Applications Development and EAI based on .NET
?????????????:Welcome to My Chinese Technical Blog
??????WCF??????:Welcome to Microsoft Chinese WCF Forum
??????WCF??????:Welcome to Microsoft English WCF Forum

The HTTP request is unauthorized with client authentication scheme 'Anonymous'.




I am receiving an error when i am callign the WCF service which is hosted in the IIS,


The HTTP request is unauthorized with client authentication scheme 'Anonymous'.The authentication header received from the server was 'Negotiate,NTLM' while calling service hosted in IIS.


Both check boxes are checkd in the properties->DirectorySecurity->Edit...

Anonymus and Integrated Windows.


Can anybody help me regarding thsi issue...






Newbie Can a HTTP client recieve MSMQ messages from a queue?


Can a HTTP client recieve MSMQ messages from a queue?

Thats the question. I see examples on sending messages via HTTP but how do I get messages via HTTP from a queue.

If it supports getting messages via HTTP is it a normal get HTTP request that would be blocked by a firewall or ??




Can I use managed client OM to retrieve user profile?

I don't think managed client object model can be used to get user profile. I don't see anything similar to Microsoft.Office.Server.UserProfile namespace...

Microsoft .net framwork 4.0. client profile



I have just encountered problem with Microsoft .NET framework 4.0. client profile for Windows XP.

The feature pack is approved and the right one Microsoft .NET framework file is in right one directory.

But in WSUS 3.0. SP1 interface is in column install 6% and approved  (1/67).

I can send printscreens.

Have anyone solve this problem , could it be wsus bug?


can the .NET 4 client profile run 3.5 client profile?



What if a person has only .NET 4 client profile installed on a old OS which does not has any other version of .NET installed

Can that computer run my application, mostly designed for .NET 4 client profile but some assemblies had to be .NET 3.5 client profile


Thanks in advance


Edit: I have found something about backwards compatibility http://msdn.microsoft.com/en-us/library/ff602939.aspx 
I need to be sure this works for client profile installations, too

The HTTP request is unauthorized with client authentication scheme 'Anonymous' The authentication


Hi all,

The scenario is as follows.

I need to connect to a webservice hosten in a JBOSS server.

The server provides a certificate, besides it requires username and password to validate against an LDAP.

My part is to develop a client in .NET WCF that uses the constraints defined above.

Here is my client code:


service.ServiceModificarDomicilioContactoPersonasClient servicioJboss = new service.ServiceModificarDomicilioContactoPersonasClient();

service.ClientCredentials.Windows.AllowedImpersonationLevel = System.Security.Principal.TokenImpersonationLevel.Impersonation;

service.ClientCredentials.UserName.Password = "******";
service.ClientCredentials.UserName.UserName = "******";

service.ClientCredentials.Windows.ClientCredential.UserName = "********";
service.ClientCredentials.Windows.ClientCredential.Password = "********";

service.modificarDomicilioResponse resp = new service.modificarDomicilioResponse();
service.modificarDomicilio metodo = new service.modificarDomicilio();
metodo.arg0 = 1;

metodo.arg1 = 1402251;

metodo.arg2 = 506907;

metodo.arg3 = 1;

metodo.arg4 = 999999;

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend