Amir Mirkamali

امیر میرکمالی

What is the Differnce between wsdl and asmx?

You use an *.asmx file to create an ASP.NET Web Service.  This file contains your service implementation and is needed for hosting the service.

ASP.NET automatically generates the WSDL or "service description" for your service by reflecting over the types in your service.  You can see the WSDL for your service by browsing to your ASMX file, which should show you a help page for your service containing a link to the service description for the service.  The WSDL can also generally be reached by appending "?wsdl" to the address of the asmx file.


Which Content-Type you must set for binary stream, to download when using Response.Binarywrite

Response.ContentType = "application/force-download";

Response.AddHeader("Content-Disposition", "attachment;filename=\"" + Filename + "\"");



WPF Browser Application VS ASP.Net

A WPF browser project is the same as writing a java applet/application, only you use IE and .net instead. you would do it for the same reasons you would write a java application.

The main wpf cons are:

  1. User must have .net installed, and use IE to access the app.
  2. Slow load time (.net vm must be loaded and app jit'd)

the main wpf pros:

  1. Rich UI (winforms)
  2. Coding understood by windows programers

the main cons:

  1. Programmer must learn web model
  2. Somewhat limited UI
  3. Cross browser testing required

the main pros:

  1. Cross browser compatiability (universal access)

Reinstall Visual Studio 2003 Remote debugger

Run  RemoteComponents.hta from your installation cds. navigate and find "install full remote debugging on all operating systems" and push the install full button. I had to many probems with my remote debugger and this solved my problem.

this link was very usefull to understand what is my debugger problem:

Error Access to path denied when use File.Copy when file exists!

I got this strange error when tried to overwrite file. I had full control access but i got this error.

The error occured when the file is read only! change the attribute of existing file and you will be able to copy the file!

Create ASP Net Website Administration Link

  • Create a virtual directory at the root of your default website
  • Name the virtual WebAdmin
  • Set the Path of the Virtual Directory to "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\ASP.NETWebAdminFiles" where 50215 is the appropriate build version for your installed .NET 2.0 framework.
  • After the Virtual Directory has been created, right click on the Virtual Directory and got to properties.  Select the ASP.NET tab and make sure the ASP.NET version is set to a 2.0 version.
  • Open a browser and browse to the following url:
  • Make sure to change the applicationPhysicalPath and applicationUrl querystring parameters to match whatever they are on your system.