关于 .text 0.95 的Could not load type 'Dottext.Global'问题的解决方法

王朝asp·作者佚名  2006-01-09
窄屏简体版  字體: |||超大  

I am a lucky guy to have been able to spend quality time with ScottW's .text 0.94 release and am eager to get deep into his 0.95 release. I started working with it yesterday (Sunday) and continue to be dazzled with his coding ability.

I am running on a W2K3 Server and encountered some share permission issues and IIS 6.0. A VS.NET-related share permissions issue and fix is described here.

When configuring the .SLN and adding http://localhost/dottextweb, I was getting a runtime error: Could not load type Dottext.Global. This was fixed by giving full trust to the dottext.web, dottext.web.admin, dottext.framework, dotext.common dlls. Then RESTARTING IIS SERVICES. Here's the google post that led me to that course of action. I started with just upping the assembly trust of dottext.web, but then got a runtime Request for the permission of type System.Web.AspNetHostingPermission... So it was necessary to increase the assembly trust of all dottext dlls in the \serverdottextdottextwebadmin directory.

To increase assembly trust go to Programs-->Admin Tools-->MS .NET Framework 1.1 Config, then Runtime Security Policy and task: Increase Assembly Trust. Here's a screenpic.

下载的“宝玉”.Text 0.95版的问题还有:

假设我的工程的虚拟路径设置为了http://localhost/dottextweb/,那么需要首先将DottextWeb.csproj.webinfo

改成这个样子:

<VisualStudioUNCWeb>

<Web URLPath = "http://localhost/dottextweb/DottextWeb.csproj" />

</VisualStudioUNCWeb>

然后将Dottext.Common、Dottext.Framework重新编译。并且将编译好的DLL拷贝到DottextWeb的bin

目录下。然后打开DottextWeb.csproj并且编译。

在编译好以后在浏览器中打开http://localhost/dottextweb/,会出现下面的错误:

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentException: Keyword not supported: 'localhost;database'.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航