Ans : open command prompt and type "edit /70
/70 tell the command prompt to open the file in the Binary mode.
http://www.15seconds.com/issue/040630.htm
In ASP.NET 2.0, you should generally use the Eval method. And, to make this easier, the DataBinder object that exposes it has been made the default context for all non-hierarchical (rows and columns) data binding expressions. This means that you can use a much simpler syntax. If you just want to display a value without formatting it, use the Eval method directly:
Or, if you need to format the value, use the second overload that accepts a format string:
<%# Eval("expression") %>
The format parameter works here just like it does in v1.x. So, for example, you can format the value in a column named Price as currency using:
<%# Eval("expression"[, "format"]) %>
And, as in v1.x, you can use more complex format strings to display text as well as the current row value:
<%# Eval("Price", "{0:C}") %>
<%# Eval("Price", "Special Offer {0:C} for Today Only!") %>
Today I spent almost 2 hours trying to run a WCF service hosted in IIS7. After I read a lot of blog and forum posts I finally got a solution which works. Basically, you just need to do this four steps:
Step1: Change the C:\Windows\System32\inetsrv\config\applicationHost.config file. You must add handlers section and one mimeMap tag.
<location path="Default Web Site" overrideMode="Allow">Step2: Then you should run servicemodelreg with a -i option:
C:\Windows\Microsoft.NET\Framework\v3.0\Windows Communication Foundation>ServiceModelReg -i
Step3: Turn a Windows Communication Foundation HTTP Activation feature on. Go to Add/Remove programs, Turn Windows Features on/off and install Windows Communication Foundation HTTP Activation (it is in a Microsoft .NET Framework 3.0 section).
Step4: Go to IIS Manager and add new application to your web site (you must choose Add Application ... option, I also tried with a Add Virtual Directory ..., but it didn't work for me) which physical path will point to your WCF service.
That's all. I hope it will help you if you run in a similar problem.