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

2016-01-29 18:47 1 1 收藏

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

【 tulaoshi.com - ASP 】

 

    开发基于Asp.Net的系统,最初使用R.a.d Treeview 2.5,经常会出现控件无法加载的情况。原以为是控件本身的问题,可后来将R.a.d Treeview升级到3.0版,还是无法解决。去Terelik官方网站看了F.A.Q,也没有提到这个问题。

    后来发现,当出现控件无法加载的情况之后,只要Restart系统,或者等一会儿重新编译执行程序,控件无法加载的情况即消失了。难道是Framework的问题?怕我们编程太累,让我们中间休息一下?郁闷.......

(本文来源于图老师网站,更多请访问https://www.tulaoshi.com/asp/)

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


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

(本文来源于图老师网站,更多请访问https://www.tulaoshi.com/asp/)

 

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.NETFrameworkTemporary 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.

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

 

来源:https://www.tulaoshi.com/n/20160129/1507287.html

延伸阅读
利用ASP.NET输出指定内容的WORD、EXCEL、TXT、HTM等类型的文档很容易的。主要分为三步来完成。  一、定义文档类型、字符编码    Response.Clear();   Response.Buffer= true;   Response.Charset="utf-8";    //下面这行很重要, attachment 参数表...
标签: Web开发
Asp.Net 2.0 中实现了IButtonControl接口的控件都有一个PostBackUrl属性,可以进行跨页面提交,就是用的POST方法。那么在1.x中费了一番周折的POST提交就很简单了,只要把PostBackUrl设置为提交页,在那提交页用Request.Params[]就能拿到POST的表单参数了。还能用PreviousPage.FindControl去取前一页的控件。这里用Request和PreviousPage去...
标签: ASP
  关于Namespace(命名空间)的使用 在前面的程序中我们看到,我常用<% @ Import Namespace="System.Data" %,这是在引用M$为我们提供的Namespace,这和ASP不同的,我们在ASP.net必须先引用与我们操作有关的Namespace后才能使用相应的功能。其实说白了,一个Namespace; 就是一个组件。这个是关于ASP.net的高级应用,我会在后面...
标签: ASP
  ASP+出来都快半年了,我们站点也做了不少的介绍,但是今天飞刀我才终于有了心思来写一下关于这个ASP+的文章了。呵呵,让大家久等了。     首先我得申明,本教程适用于有一定网络编程经验的人,比如asp,php,cgi,jsp开发者,如果你对网络编程一点也不了解,那么您还是先去学学其它的语言,不然以下的文章您会有很多看...
标签: ASP
  上一节 ,我们简单介绍了ASP+的配制环境,我们这一节来谈谈ASP+的语法.其实当你装好NGWS后,他所带的文档是最好的学习ASP+的教程,要你E文足够好,以及很好的耐性,学习ASP+不是难事啦.我们这些家伙也是从这里学了很多的,这篇关于ASP+语法的文章,大多数也来自于M$的原文,最可惜的就是我们的服务器不能装上NGWS,有些例子,大家不能看...

经验教程

133

收藏

23
微博分享 QQ分享 QQ空间 手机页面 收藏网站 回到头部