.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

The XML Files: Writing XML Providers for Microsoft .NET

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

More Related Resource Links

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


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

.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

Bad Format when writing rejected rows to flat files when developing in Windows 7 64 bit

Our SSIS 2008 developers recently moved from Windows XP 32 bit PC's to Windows 7 64 bit PC's.   Our test and production execution environments are Windows Server 2008 32 bit servers.  We have existing jobs that write rejected rows from FACT loads to a flat files, these flat files are then emailed to business users so they can clean up data in the source systems.  We ahve modified a few of these jobs since the developers have move to Windows 7 64bit for development.  When we run the jobs from BIDS on the Windows 7 64bit machines the flat files look as we would expect.  When migrate them to test or production and run them the flat file is in the format below.  I have read some articles that states the <none> in the Text Qualifier property of the flat file definition is causing the problem, but  I don't think that is true.  I have removed the <none> and se the text quailfier to '  or "  and there is still garbage in the output file.  If I use a single quote as the Text Qulaifier the string _x0027_EmployeeFirstName_x0027_ is put in the flat file. Thanks in advanced for any suggestions.  Run from BIDS on Windows 7 64 bit EmployeeFirstName,EmployeeLastName,ActivityDate,FacilityID,Facility Name FIRST,LAST,2010-07-10,48,FACILITY Run on Windows 2008 32 bit _x003C_none_x003E_EmployeeFirstN

Microsoft ole provider for oracle is not available in my VS 2008 list of providers when setting up C

Hi, Trying to set up a connection manager using Microsoft OLE Provider for Oracle, but it is not in the list of Providers. I do have Oracle Provider for OLE DB. But I need the former. I tried installing MDAC 2.8 but I get a message saying that it cannot be installed because it is part of the OS already. So, how do I get Microsoft OLE Provider for Oracle as an available provider? Thanks!--ACG

Opening non-Microsoft files in SharePoint


Hi, I wonder if anyone has any idea on this...? My guess is it's something quite simple.

We're using SharePoint 2007 to store shared documents. Some of the documents are Acrobat PDFs. When I click on them, they open up in Acrobat Reader, when another user clicks on them (from his workstation), they open in a web-page. If he opens up other Office document types (Word, Excel), they open in the application as expected.

If he opens Acrobat on his desktop, and then selects the file from the SharePoint folder, it opens up in Acrobat as normal. Any ideas on what could be the cause of this?

Sorry if this question is rather unsophisticated, I'm not all that technical....

Thanks in advance for any assistance.


Microsoft Office Excel cannot access the file 'C:\inetpub\wwwroot\ProjectWebSite\Files\ROUTINE_MCA.


Hello everybody.

I am in a critical situation. I first tried to make a project (file->new->project) using visual studio, where I displayed the content of a excel file by GridView. I was successful then, but when I attach it to my website located in inetpub I am getting this error :

Microsoft Office Excel cannot access the file 'C:\inetpub\wwwroot\ProjectWebSite\Files\ROUTINE_MCA.xlsx'. There are several possible reasons:

. The file name or path does not exist.
. The file is being used by another program.
. The workbook you are trying to save has the same name as a currently open workbook.

At first I faced some COM related problem and found solution in Google, but this particular problem is not solving. Is there any way to access Excel document in asp.net website?

In my application there is a facility of uploading excel document to the server and then display its content. But I have failed to do this display operation, is there any turn around way, like store the excel document as dataset and then access it as required.

Please help. I am in great trouble. Thanks in advance.

Not able to see microsoft oledb provider for oracle in sql server 2005 providers



can any one help me, environment window server 2003  64 bit and sql server 2005 sp3 64 bit and i have installed oracle client  10g 32 bit. problem is, I am not able to see the provider name  while creating linked server.

Writing files to disk


I'm populating a generic list from an excel file that contains names of pdf files. Now I want to take each item in the list and create a file from it.

Here's what I have so far:

const string fileName = @"C:\Backups\myFile.txt"; 
            List<string> lines = new List<string>(); 

 So now, the list called lines contains names of 900 pdf files. How would I take those names out of the list and create files from them?


Microsoft SQL server 2005 database LDF MDF files attaching issue


Dear all,

Last month our Windows 2003 server hardware raid was failed, all live databases available on this raid partition, now we have recover all databases which MDF and LDF files.

 Below is the error snap link. http://cid-51b01a6564f704c6.photos.live.com/self.aspx/Kamran/Error%20Snap.png

We are in the process of attaching the Recovered Database “nice_interactions ” using .MDF and .LDF files; it prompts the Following error [Please view the snapshot below for reference]. Kindly advise further how to restore or attach database using .MDF and .LDF files which is not cleanly shutdown.

Microsoft SQL forwarding to following URL in the Detail of below  listed Error while we are trying to attach the recovered .mdf file.



Need help in this regards.

Kamran Khan


Reading and Writing Files in SQL Server using T-SQL

SQL Server has never been short of ways to read from and write to files and it is always better to use the standard techniques provided by SQL Server where possible. However, most of them are really designed for reading and writing tabular data and aren't always trouble-free when used with large strings or relatively unstructured data.

For reading tabular data from a file, whether character-delimited or binary, there is nothing that replaces the hoary old Bulk Copy Program (BCP), which underlies more esoteric methods such as Bulk Insert. It is possible to read text-based delimited files with ODBC, simple files can be read and written-to using xp_cmdshell, and you will find that OSQL is wonderful for writing results to file, but occasionally I've found I need to do more than this.

Thankfully, when armed with OLE Automation and the FileSystem Object (FSO), all sorts of things are possible. The FileSystem Object was introduced into Windows to provide a single common file-system COM interface for scripting languages. It provides a number of handy services that can be accessed from TSQL. In this article, I provide examples of stored procedures that use this interface to allow you to:

Stack Dump being sent to C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG\SQLDump0026.txt

Hello all,

I found on one of our server restart automatically after show stack dum error.
some part of log is given below any help will be appreciate.

MemoryLoad = 46%                    
Total Physical = 4094 MB            
Available Physical = 2172 MB        
Total Page File = 5971 MB           
Available Page File = 4226 MB       
Total Virtual = 2047 MB             
Available Virtual = 306 MB          
**Dump thread - spid = 51, PSS = 0x3D859580, EC = 0x3D859588                                                    
***Stack Dump being sent to C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG\SQLDump0026.txt             
* *******************************************************************************                               
* BEGIN STACK DUMP:                                                                                             
*   07/21/09 11:05:01 spid 51                                                                                   
* e

Clean Web.Config Files (VS 2010 and .NET 4.0 Series)

.NET 4 includes a new version of the CLR, and a new .NET 4 specific machine.config file (which is installed side-by-side with the one used by .NET 2, .NET 3 and .NET 3.5).

The new .NET 4 machine.config file now automatically registers all of the ASP.NET tag sections, handlers and modules that we've added over the years, including the functionality for:

.ASP.NET Dynamic Data
.ASP.NET Routing (which can now be used for both ASP.NET WebForms and ASP.NET MVC)
.ASP.NET Chart Control (which now ships built-into ASP.NET V4)
What this means is that when you create a new "Empty ASP.NET application" project in VS 2010, you'll find that the new default application-level web.config file is now clean and simple:

Microsoft AJAX CDN

Content delivery networks (CDNs) are composed of "edge cache" servers that are strategically placed around the world at key Internet network points. These "edge cache" servers can be used to cache and deliver all types of content - including images, videos, CSS and JavaScript files.

Using a CDN can significantly improve a website's end-user performance, since it enables browsers to more quickly retrieve and download content. For example, instead of having a browser request for an image traverse all the way across the Internet to your web server to download, a CDN can instead serve the request directly from a nearby "edge cache" server that might only be a single network hop away from your customer (making it return much faster - which makes your pages load quicker).
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