ASP.NET问题 [英] ASP.NET Problem

查看:107
本文介绍了ASP.NET问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我在遇到一些问题后安装了VS 2008 SP1.在安装3.5 Framework SP 1之前,我必须使用Windows Vista的系统更新准备工具将注册表设置为正确的状态.我以为我可以正常工作,但是现在我的VS安装遇到了几个问题:

1)当我进入ASPX页面或ASCX控件的源代码视图时,看到的错误是"Element'xxxx '不是已知元素.如果网站中存在编译错误,或者Web.config文件丢失,则会发生这种情况.好吧,这两种情况都不是.自定义控件和标准ASP.NET控件会发生这种情况(请参见图像 http://www.file-upload.net/view-1104872/VS-2008-Error.png.html ).

2)我现在在打开解决方案中的CSS文件时遇到问题.这给出错误操作无法完成. 未指定的错误".

3)现在,将控件从工具箱中拖动到需要装配引用的源"视图中,现在会错误地添加该引用.例如,将AJAX扩展添加到控件中将生成以下指令:<% @ 汇编 =""AjaxControlToolkit" 命名空间 ="AjaxControlToolkit" 注册 =&";" tagprefix ="cc1" %>而不是正确的:<% @ 注册 程序集 =" AjaxControlToolkit" 命名空间 =&; AjaxControlToolkit" TagPrefix ='"cc1" %>

以前,我在遇到问题时已经卸载并重新安装了VS 2008,所以我真的不想再做一次....是解决这些问题的一种方式,还是我要忍耐不住d是否尝试重新安装?

I recently got VS 2008 SP1 installed after some issues.  I had to use the System Update Readiness Tool for Windows Vista to get my registry to proper state before the 3.5 Framework SP 1 would install.  I thought I had everything working, but now I am seeing several issues with my VS install:

1)  When I go into Source view for an ASPX page or ASCX control, I see the error "Element 'xxxx' is not a known element. This can occur if there is a compilation error in the Web site, or the Web.config file is missing".  Well, neither of these is the case.  This happens with custom controls AND standard ASP.NET controls (see image http://www.file-upload.net/view-1104872/VS-2008-Error.png.html ). 

2)  I am now having issues opening CSS files that are in the solution.  This gives the error "The operation could not be completed.  Unspecified error".

3) Dragging a control from the toolbox into the Source view that requires an assembly reference now adds the reference incorrectly.  For example, adding an AJAX Extenstion to control generates the following directive: <%@ assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" register="" tagprefix="cc1" %>  instead of the correct one: <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

I already uninstalled and reinstalled VS 2008 when I was having issues before, so I really don't want to do it again...  Anyone know if there is a way to fix these things, or am I going to hafta bite the bullet and attempt reinstall yet again?

推荐答案

感谢您的发帖!我建议在一个MS论坛中发布您的问题,

首页ASP.NET论坛

位于此处: http://forums.asp.net/.

located here:  http://forums.asp.net/.

祝您度过愉快的一天!


这篇关于ASP.NET问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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