Question: How can I use any available version of an assembly on an ASP .NET page?

For example, I use this tag before adding a Crystal Reports control on a web page on my computer:

```
<%@ Register Assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
Namespace="CrystalDecisions.Web" TagPrefix="CR" %>

```

However, if I install this web page on a computer that has a different version of Crystal Reports, I would have to change the version part of the assembly attribute:

```
<%@ Register Assembly="CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
Namespace="CrystalDecisions.Web" TagPrefix="CR" %>

```

Is there any way I can avoid this by instructing ASP .NET to use the newest available version or specify the minimum required version?

Answer: 
You need to use the **assemblyBinding** section in your web.config file. See [this article](http://msdn.microsoft.com/en-us/library/twy1dw1e.aspx).
You need to make sure you download the correct CR version. Since you are using VS 2010, you need to refer to CRforVS\_redist\_install\_64bit\_13\_0\_1.zip (for 64 bit machine) or CRforVS\_redist\_install\_32bit\_13\_0\_1.zip (for 32 bit machine). These two are the redistributable packages. You can download full package as well: CRforVS\_13\_0\_1.exe