ASP

本类阅读TOP10

·asp常用数据库连接方法和技巧
·无组件生成BMP验证码
·一些常用的辅助代码 (网络收藏)
·JavaScript实现的数据表格:冻结列、调整列宽和客户端排序
·VisualStudio.NET_2003及其 MSDN 下载地址
·ASP模拟MVC模式编程
·图片以二进制流输出到网页
·MD5加密算法 ASP版
·ASP.NET编程中的十大技巧
·改进 ASP 的字符串处理性能

分类导航
VC语言Delphi
VB语言ASP
PerlJava
Script数据库
其他语言游戏开发
文件格式网站制作
软件工程.NET开发
关于 .text 0.95 的Could not load type 'Dottext.Global'问题的解决方法

作者:未知 来源:月光软件站 加入时间:2005-2-28 月光软件站

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 \\server\dottext\dottextweb\admin 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.




相关文章

相关软件