如何在AJAX Toolkit v4中使用web.config中的ajax Toolkit前缀? (未组装) [英] How do you use ajax Toolkit prefix in web.config with AJAX Toolkit v4? (without assembly)

查看:95
本文介绍了如何在AJAX Toolkit v4中使用web.config中的ajax Toolkit前缀? (未组装)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的,所以即使我只安装了.net framework 4,您也从GAC删除了AJAX工具包v1.0(您可能认为.net framework 4会随ajax工具包v4一起提供)。我删除了它,是因为我认为这样我就可以使用gacutil来插入我所拥有的v4 AjaxControlToolkit.dll。

Alright, so I deleted AJAX toolkit v1.0 from the GAC even though I had only installed .net framework 4 (you would think .net framework 4 would come with ajax toolkit v4). I deleted it because I thought then I would be able to use gacutil to insert to assembly the v4 AjaxControlToolkit.dll I have.

但是,在Windows 7中,不允许

However, in Windows 7, it's not allowing me to do that.

现在我丢失了我的ajax工具包安装。虽然我可以从msi重新安装旧版本v1。

Now I lost my ajax toolkit install. Though I can reinstall the old version v1, from msi.

而且我的web.config中有一个引用会引发错误:

And I have a reference in my web.config that is throwing errors:

<add assembly="AjaxControlToolkit, Version=4.1.40412.2, Culture=neutral, PublicKeyToken=28F01B0E84B6D53E" namespace="AjaxControlToolkit" tagPrefix="ajaxToolkit"/>

我需要使用ajaxToolkit标签,因此需要tagprefix。但是我没有程序集,经过数小时的尝试,它拒绝添加程序集。

I need to use the ajaxToolkit tags so I need the tagprefix. But I don't have an assembly, and for hours I tried, and it refuses to add to assembly.

所以我只需要将其包括在项目箱中即可一个dll。现在,它与web.config冲突了。

So I have to just include it in the project bin as a dll. Well now it conflicts with the web.config.

我应该怎么办?

推荐答案

只是从提供的msi全新安装了AJAX工具包。然后在web.config中匹配正确的版本号。

Just made a fresh install of AJAX Toolkit from the msi that is provided. Then match the correct version number in the web.config.

这篇关于如何在AJAX Toolkit v4中使用web.config中的ajax Toolkit前缀? (未组装)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆