VS 2008不会更新设计器 [英] VS 2008 Won't Update the Designer

查看:74
本文介绍了VS 2008不会更新设计器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

在我出了什么问题之前,我会为您介绍我正在运行的内容的一些背景知识:

我正在运行VS 2008 SP1,.NET 3.5,使用C#开发,使用ASP.NET和AJAX,并在Windows Vista中运行(不幸的是).

我遇到了一个问题,即每次我尝试创建控件时,设计器都不会更新,也不会让我访问后面代码中的控件.这只会在我的机器上发生.当我将代码提交到颠覆工具(SVN)时,我的同事可以在更新设计器后运行我的代码.他们正在运行与我的机器相同的映像.

我已经用谷歌找到了问题,并提出了解决方案"的观点,但没有一个起作用.这是我尝试过的:

-在设计视图中打开以强制设计师重新渲染.

-删除.designer.cs文件,然后右键单击该项目以转换为Web应用程序.当我这样做时,我会收到此错误:

Hello All,

Before I go into what''s wrong I''ll give you a little bit of background on what I''m running:

I''m running VS 2008 SP1, .NET 3.5, developing in C#, using ASP.NET and AJAX, and running in windows vista (unfortunately).

I''ve got a problem where every time I try to create a control, the designer doesn''t update and will not give me access to the control in the code behind. This only happens on my machine. When I commit my code to our subversioning tool (SVN) my co-workers can run my code after they update their designers. They are running the same image as my machine.

I''ve google''d the problem and came up with a view "solutions," none of which have worked. Here''s what I''ve tried:

-Opening up in design view to force the designer to re-render.

-Deleting the .designer.cs file and then right-clicking on the project to convert to web application. When I do that I get this error:

Error   1   Generation of designer file failed: Unable to create type 'AJAX:ValidatorCalloutExtender'. Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.\wucManageTeamMember.ascx   1



-我的参考资料中有system.web.extensions.

-我尝试将各种DLL移到我的bin文件夹(system.web.extensions.design.dll和system.web.extensions.dll)中,但我没有microsoft.web.etc DLL"已被推荐,但我的同事都无法运行该应用.

-我尝试卸载并重新安装.NET框架以及Visual Studio.

我们认为我的system.web.extensions在我的计算机上注册或以某种方式损坏的方式出了问题.正如您在错误消息中看到的那样,即使我将其包含在引用和bin中,Visual Studio仍无法加载它.缺少重新格式化,没有人知道我该如何纠正?谢谢您的帮助.



-I have the system.web.extensions in my references.

-I''ve tried moving various DLL''s into my bin folder (system.web.extensions.design.dll and system.web.extensions.dll) I don''t have the microsoft.web.etc DLL''s that have been recommended but neither do my co-workers who can run the app.

-I''ve tried uninstalling and reinstalling the .NET framework as well as visual studio.

We''re thinking that there''s something wrong with the way my system.web.extensions is registered to my machine or corrupted in some way. As you saw in the error message, visual studio is saying that it could not load it even though I have it in my references and in my bin. Short of a reformat, does anyone know how I can correct this?? Any help is appreciated.

推荐答案

只是想一想:您说您拥有System.Web.Extensions,但您是否检查过它是否为正确的版本;您是否拥有System.Web.Extensions?即要求的版本?因此,它正在寻找版本1.0.61025.0,其中您可能拥有版本1.0.61024.1或类似版本.
Just a thought: you say you have System.Web.Extensions but have you checked to see that it is the correct version; i.e. the version that is being asked for? So it is looking for version 1.0.61025.0 where you might have version 1.0.61024.1 or similar.


这篇关于VS 2008不会更新设计器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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