本文介绍了设置DLL的常规应用程序路径并避免无法加载类型'&lt; project&gt;。&lt; class&gt;'错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我不确定这是否是一个专家问题,但我确信他们 就在那里。 我会的喜欢在我的Win2003.Net上设置一般应用程序或bin目录 服务器,它将保存一些有用的工具,使该服务器上的更多页面可以使用。 作为一个例子,我创建了一个Page Counter类,它打开一个Access .mdb 文件,计算该页面的当前条目,并添加一个带有 $的新条目b $ b有关当前请求的一些信息。该计数器在它开发的同一页面上非常有用,只要bin目录 与DLL就位于该路径下方。 现在,我想做的是在我的 Win2003.Net服务器上设置常规bin或app direcotry,我可以将counter.dll移动到想要使用该计数器的所有 页面都可以参考。我假设,要实现这一目标至少需要两步才能完成。 1)在Win2003.Net服务器上设置应用程序路径并以某种方式''发布'' 所有页面的应用程序路径 2)修改.aspx文件的第一行以引用该目录或 从其他地方加载它然后默认/ bin。 <%@ Page Language =" vb" AutoEventWireup =" false" Codebehind =" CounterPage.aspx.vb" Inherits =" Counter.CounterPage"%> 如何修改该行以引用其他目录然后是本地/ bin? 3)是否需要对Web.config进行修改,是否必须将 放在每个页面的路径中? 我非常感谢您的帮助和帮助描述了实现这一目标所需的步骤。 谢谢, 沃尔夫冈I am not sure if this is more of an expert question, but I am sure that theyare out there.I''d like to setup a general application or bin directory on my Win2003.NetServer that will hold some useful utils that more pages on that server canuse.As an example, I have created a Page Counter class that opens an Access .mdbfile, counts the current entries for that page, and adds a new entry withsome information regarding the current request. That counter works great onthat same page it has been developed for and as long as the bin directorywith the DLL sits right beneath that path.Now, what I''d like to do is to setup a general bin or app direcotry on myWin2003.Net Server where I can move that counter.dll to and to which all thepages that want to use that counter can refer to. I assume, that there wouldbe at least 2 steps necessary to accomplish that.1) setting up an app path on the Win2003.Net Server and somehow ''publishing''that app path for all the pages2) modifying the first line of the .aspx file to refer to that directory orload it from somewhere else then the default /bin.<%@ Page Language="vb" AutoEventWireup="false"Codebehind="CounterPage.aspx.vb" Inherits="Counter.CounterPage"%>How to modify that line to refer to some other directory then the local/bin?3) Are there modifications to Web.config necessary, and does it have to beplaced in every single page''s path?I''d really appreciate your help and describing the steps necessary toaccomplish that.Thanks,Wolfgang推荐答案 这篇关于设置DLL的常规应用程序路径并避免无法加载类型'&lt; project&gt;。&lt; class&gt;'错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
07-23 02:57
查看更多