Asp.Net控件加载错误的解决方法

 开发基于Asp.Net的系统,最初使用R.a.d Treeview 2.5,经常会出现控件无法加载的情况。原以为是控件本身的问题,可后来将R.a.d Treeview升级到3.0版,还是无法解决。去Terelik官方网站看了F.A.Q,也没有提到这个问题。
    后来发现,当出现控件无法加载的情况之后,只要Restart系统,或者等一会儿重新编译执行程序,控件无法加载的情况即消失了。难道是Framework的问题?怕我们编程太累,让我们中间休息一下?郁闷.......

    今天偶然间发现如下一篇文章,照之做了之后,问题解决~哈

PRB: Access Denied Error When You Make Code Modifications with Index Services Running
http://support.microsoft.com/default.aspx?scid=kb;en-us;329065

CAUSE
If you run Index Server (Cisvc.exe), then Index Server may rescan the Temporary ASP.NET Files directory while it requests a Microsoft ASP.NET page. Cisvc.exe then holds a lock on the Temporary ASP.NET Files directory for one to five minutes. The length of time of the lock depends on the size of the directory that causes the Aspnet_wp.exeprocess (or W3wp.exe process for applications that run on Microsoft Internet Information Services [IIS] 6.0) to not load the particular DLL.
RESOLUTION
If you do not use Index Server on the server, you can disable it. To do so, follow these steps:

Click Start, and then click Services.
Locate Indexing Service from the list of services, and then click Indexing Service Properties from the subform.
On the General tab of the Indexing Service Properties dialog box, in the Startup type drop-down item list, click Disabled.
Click OK.

If you use Index Server, you can exclude the Temporary ASP.NET Files directory from the folders that the Index Server scans. To do so, follow these steps:

Click Start, point to All Programs, point to Administrative Tools, and then click Computer Management.
Expand the Services and Applications node, expand the Indexing Service node, and then expand the System node.
Right-click the Directories folder, point to New, and then click Directory from the subform to open the Add Directory dialog box.
Click Browse, and then locate the Temporary ASP.NET Files directory. You typically find the Temporary ASP.NET files in the following path: c:\\Microsoft.NET\Framework\\Temporary ASP.NET Files
Note is the version of .NET Framework installed on your computer.
Click No under the Include in Index? option buttons.
Click OK to close.
Close the Computer Management dialog box.
Restart the Indexing Services service.
MORE INFORMATION
Other software that is designed to scan directories at regular intervals may lock the files that are located in the Temporary ASP.NET Files directory in a manner that is similar to how the Indexing Service locks the files. Examples of such software include virus scanners and backup software. Microsoft recommends that you see the manufacturers' manuals for the individual software for information about how to disable or to exclude the Temporary ASP.NET Files from these services.

原来是索引服务引起的故障~~

时间: 2024-07-30 10:25:53

Asp.Net控件加载错误的解决方法的相关文章

一个gridview控件加载在updatepanel里面,单一点机GRIDVIEW删除按纽旧出现12030错误?

问题描述 一个gridview控件加载在updatepanel里面,但一点机GRIDVIEW删除按纽旧出现12030错误?怎么回事怎么解决?(我在AJAX中的TABS控件中的按钮点击也出现过类似现象?) 解决方案 解决方案二:是不是用中文起的项目名称?解决方案三:不是中文起的项目名称是英文的解决方案四:谁能帮我一下呀?解决方案五:难道这个问题很难吗旧每人会吗解决方案六:看看项目的其他地方是否还有中文命名的特别是和ajax相关的地方

asp.net控件加載

asp.net|控件 1. 使用Page.ParseControl2. 使用base.LoadControl第一部分:加载模板 下面是一个模板"<table width=100%><tr><td width=100% colspan=2 runat=server id=ContainerTop></td></tr><tr><td width=30% runat=server id=ContainerLeft>&l

menu控件加载有错误,并且鼠标滑过时报“当前页的脚本发生错误”

问题描述 我的程序使用menu控件导航,前两天突然menu控件加载时有错误,表现为有下拉菜单项的小图片无法显示.而且鼠标放在menu上,页面提示"当前页的脚本发生错误,是否继续运行".同样的代码在别人的机器上没有问题.用我的ie访问别人发布的相同的程序也没有问题.请问是什么原因造成的?谢谢帮忙!!!! 解决方案 解决方案二:请高手指教,很急,在线等!!!解决方案三:已经解决了重装了framework解决方案四:有问题请先GOOGLE,BAIDU

VB中使用lead控件加载jpg图片报错

问题描述 VB中使用lead控件加载jpg图片报错 调用LEAD1.BitmapDataPath = "111.jpg"时报错,换成111.bmp就没有问题,这种现象其他电脑没有,是什么问题 解决方案 这个不好说,你的图片没法解析,建议先转换成标准的位图格式再加载.

webview-WebView控件加载失败 求大神帮忙解决

问题描述 WebView控件加载失败 求大神帮忙解决 public class MainActivity extends AppCompatActivity { private WebView webView; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); webVi

哪位大神知道如何在C#中arcgis mapcontrol控件加载gst格式的地图

问题描述 哪位大神知道如何在C#中arcgismapcontrol控件加载gst格式的地图,求相关代码

在C# winfrom项目,form窗体Picturebox控件加载的图片有闪动现象

问题描述 在C# winfrom项目,form窗体Picturebox控件加载的图片有闪动现象 在C# winfrom项目中,有两个form窗体(form1.form2),在form1中显示监控视频图像实时画面. 在form1窗体中居中弹出form2窗体(form2窗体不透明度设置为Opacity:80%),在form2窗体有一个Picturebox控件(设置充满整个form2窗体),在Picturebox中放置一张图片. 目前遇到一个问题:在form1窗体中居中显示form2窗体的过程中,fo

VB.NET通过配置文件给控件加载初始值

问题描述 本来是做java的,现在有一vb.net的项目,,需求大致如下..窗体加载的时候给控件加载一些初始值(比如下拉列表),但是不能写死,必须用配置文件加载.帮忙说下大致的实现思路就行,不用落实到代码. 解决方案 解决方案二:加载时候,读取xml配置文件,赋值给控件.参考:DimxReaderAsXmlReaderDimshopCodeAsString=""DimcNumAsString=""DimdDateAsString=""xReade

FlashFXP加载慢的解决方法

  FlashFXP是很多网站编辑都在使用的一款工具,把制作好的文件或者软件包一键上传,非常方便.当然,小编也是FlashFXP的用户,不过最近,小编发现FlashFXP变得很卡,选择一个目录之后,要加载很久,排除了网速慢的问题之后,小编发现:FlashFXP加载慢的问题出在参数的设置上,下面就一起来看看FlashFXP加载慢的解决方法吧! 1.首先打开属性>>参数设置,或者直接按快捷键F6 FlashFXP参数设置 2.找到>>连接>>FTP,然后进行数据连接模式选择