.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

C# and the Web: Writing a Web Client Application with Managed Code in the Microsoft .NET Framework

Posted By:      Posted Date: August 21, 2010    Points: 0   Category :ASP.Net

When the author wanted to build a middleware Web client to connect to other applications over the Internet, he realized that the XMLHttpRequest COM object was not sufficient for his purposes. In order to build a Web client using managed code, the author had to use the HTTPWebRequest and HTTPWebResponse classes provided by the Microsoft .NET framework. These classes are used in the sample project as a substitute for the less powerful XMLHttpRequest COM object, allowing the author to build a full-featured Web client. They also take advantage of all the benefits that the CLR and managed code have to offer.

Avi Ben-Menahem

MSDN Magazine September 2001

View Complete Post

More Related Resource Links

.NET P2P: Writing Peer-to-Peer Networked Apps with the Microsoft .NET Framework


Peer-to-peer applications such as Napster, Gnutella, and Scour that communicate as peers sharing and receiving information are becoming commonplace as a means for users connected on large networks to take advantage of the vast resources available to them. The Microsoft .NET Framework provides a rich platform for building P2P apps. This article explains the concepts that make up peer-to-peer applications. The peer-to-peer application model, discovering other peers, and querying peers for information are discussed. The article goes on to cover the System.Net namespace for the use of Internet protocols, the System.Web.Services namespace for exposing Web Services, and firewall and port issues. Finally, the role of the .NET Framework in simplifying the design of powerful peer-to-peer applications is outlined.

Lance Olson

MSDN Magazine February 2001

Avoiding DLL Hell: Introducing Application Metadata in the Microsoft .NET Framework


The Microsoft .NET platform uses metadata and assemblies to store information about components, enabling cross-language programming and resolving the infamous DLL Hell problem. This article describes the use of metadata for easy linking and loading of assemblies, the relationship between metadata and concepts such as IDL and type libraries, and the metadata hierarchy. The process of reading metadata from assemblies for easy versioning is also described. Although Microsoft provides the MSIL disassembler, IDLASM, and MetaInfo.exe for accessing metadata, the author provides two sample programs that read metadata using the unmanaged metadata interfaces and the Reflection API.

Matt Pietrek

MSDN Magazine October 2000

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?

Microsoft .NET Framework installation error code 0x80070009


Installation Did Not Succeed

.NET Framework 4 has not been installed because

The storage control block address is invalid.

For more information about this problem, see the log file.

Final Result: Installation failed with error code:

(0x80070009), "The storage control block address is invalid. "

(Elapsed time: 0 00:03:20).

Help with this is appreciated.  I cannot upgrade from Microsoft .NET Framework 3.5 SP1 to 4, and due to this problem, I cannot install Visual Studio or Web Expression.

Thank you.

Installation Error of Microsoft .NET Framework 4.0 Error code: (0x800B010B), "Generic trust failure.



I having problems installing Microsoft .NET Framework 4.0. Here is my log file:

OS Version = 6.1.7600, Platform 2
OS Description = Windows 7 - x64 Ultimate Edition 
CommandLine = "C:\Program Files (x86)\MicrosoftNET\Setup.exe" /x86 /x64
TimeZone = W. Europe Daylight Time
Initial LCID = 1053
Using Simultaneous Download and Install mechanism

Distributing application with Microsoft.Xna framework (Microsoft game studio)


Dear all,

Am sorry if this is not the appropriate forum to post this. Couldnt find the right one.

I have an application where I used the gamepad to direct robotic movement. I have found out that the gamepad cannot be used if install my application on a customer's computer without installing the microsft XNA framework redistributable file. I am wondering if there is a better way to get the gamepad to work on the computer without having to install this file, that is, if there is a .dll file I need to package and include with my application, and if there is an additional thing I have to do to get the .dll registered.

NB: At the moment, I use visual studio deployment project, and it doesnt automatically include the .dll file.



Solved: Microsoft XNA Framework Redistributable 1.0 Refresh Install = Error Code 2908


UPDATE:: I managed to fix the problem by renaming mscoree.dll in the system32 folder, installing the XNA Framework, and then changing mscoree.dll back to its original state. The game runs just fine now.


Original Post:

I recently purchased a game from Impulse and when I try to launch it, I get the following message:


System.TypeInitializationException: The type initializer for 'd5' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Xna.Framework, Version=, Culture=neutral, PublicKeyToken=6d5c3888ef60e27d' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.Xna.Framework, Version=, Culture=neutral, PublicKeyToken=6d5c3888ef60e27d'
   at d5..cctor()

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

   --- End of inner exception stack trace ---
   at d5.a()
   at iu.Main(String[] args)


After that it says "

Does, "Microsoft .NET Framework 4 Client Profile (Web Installer)" = "Microsoft .NET Framework 4 Web


I have the 1st of the two programs (above), and wondered if I should have it (the, "Client Profile" version); or instead, should uninstall it, and download the 2nd (above), the one (without, the words "Client Profile")?  OR, are they essentially the same?  I'm an intermediate computer user but don't have alot of experience with deciphering between the types of .NET Frameworks (like the 2 above).  Anyone familiar with this area, please advise.  (P.S.:  I never actually went to the download center and downloaded the (1st) item (above).  I just noticed it is installed (under, installed programs).

Specs: Windows 7 Home Premium, 32-bit, PC desktop, cable modem, Dell Inspiron 531s.  Installed RAM= 2 GB.  Total disk (C:) space = 218 GB. (About 1/2 of this is free, and 1/2 is used).



Microsoft .Net Framework 4 Client Profile installation error: (0x800B010B), "Generic trust failure "


I'm currently using a window 7 64 bit operating system fujitsu laptop and I've been trying to install a update: 'Security Update for Microsoft .NET Framework 4 on Windows XP, Windows Server 2003, Windows Vista, Windows 7, Windows Server 2008, Windows Server 2008 R2 for x64-based Systems (KB2160841)'. However, upon many tries of installing the update, i still couldn't get it install. The error details for the update is Code 66A.

Therefore, after searching on Windows forum for solution for that error, i've tried to repair the Microsoft .Net Framework 4 Client Profile by following these steps:

A. Click on Start and click on Control panel.

B. Go to Program and Features.

C. Scroll down to Microsoft.Net Framework 4 Client Profile, right click it.

D. It will give you a choice of Uninstall/Change, click it.

E. Then, it will give a choice to repair.

After following the above steps, the repair did not succeed because: Generic trust failure.

Part of the log:

Action: Downloading and/or Verifying Items...

Get error code 1603:Error installing Microsoft.net framework. What is this?

Installing software for kids game. Disc won't install. Get this pop up: Error 1603: Error installing Microsoft.net framework. Game people say this is not their problem but one with microsoft. Went to their website and got lost. Any help identifying code and what to do would be appreciated.

Microsoft's Collaborative Application Markup Language (CAML) Loop

discovered an interesting error recently while working with Microsoft's Collaborative Application Markup Language (CAML) that, surprisingly, had received no ink. Partly what surprises me about this is that the error may require you to rewrite large sections of your code if you haven't previously considered this SharePoint limitation. I'll start with some context, but first of all the error is:

MVC architecture in ASP.Net using C# and Microsoft Data Access Application block

The Model-View-Controller (MVC) pattern separates the modeling of the domain, the presentation, and the actions based on user input into three separate classes [Burbeck92]:

Model. The model manages the behavior and data of the application domain, responds to requests for information about its state (usually from the view), and responds to instructions to change state (usually from the controller).

View. The view manages the display of information.

Controller. The controller interprets the mouse and keyboard inputs from the user, informing the model and/or the view to change as appropriate.

Microsoft StyleCop: Source Code Analyzer for C#

StyleCop is similar in many ways to Microsoft Code Analysis (specifically FxCop), but there are some important distinctions. FxCop performs its analysis on compiled binaries, while StyleCop analyzes the source code directly. For this reason, FxCop focuses more on the design of the code, while StyleCop focuses on layout, readability and documentation. Most of that information is stripped away during the compilation process, and thus cannot be analyzed by FxCop.

Bar Code Scanners with the .NET Compact Framework

Summary: Learn how to make your applications use bar code scanners in a generic way-ndependent of the specific bar code scanners that are used on different devices. Using the design patterns Façade and Factory, the implementation not only supports multiple bar code scanners, but it also makes it easy to add support for other bar code scanners. After a brief discussion about bar code scanners and the bar code scanner pattern, a download code sample, written in C#, demonstrates the use of the pattern and technologies.

How to set up microsoft application blocks 4.0 to talk to event viewer


I need to set up the microsoft application blocks 4.0 on the server and connect it to my web project.  I need to set it up so that all the errors are logged in the event viewer.  So far I have found out how to set up a flat file listener and send the error to a log file but, not to the event viewer.  Any suggestions would be helpful.

    Microsoft Application Block for Data Access in .NET


    Hi all,

    I was rummaging the internet learning aspx and came across the concept of: Microsoft Application Block for Data Access in .NET

    It seems great of course. The articles are all early 2003-5 such as


    So the question is - is this tech still relevant and should I be using it?



    Ho to fire the Application Error in asax from the code?


     Hi All,

    I have this code in Global.asax but it not firing once an error occured:


    void Application_Error(object sender, EventArgs e)
            // Get the error details
            HttpException lastErrorWrapper = Server.GetLastError() as HttpException;
            Exception lastError = lastErrorWrapper;
            if (lastErrorWrapper.InnerException != null)
            lastError = lastErrorWrapper.InnerException;
            string lastErrorTypeName = lastError.GetType().ToString();
            string lastErrorMessage = lastError.Message;
            string lastErrorStackTrace = lastError.StackTrace;

    Please help me so I can call this method from any page?

    Thaxxxxxxxxxxxxx a lot,



    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