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

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.

对于上面的问题,需要修改web.config里面的数据库连接字符串,将
   <DbProvider type = "Dottext.Framework.Data.SqlDataProvider, Dottext.Framework"
      connectionString = "localhost;database=DotTextDB;uid=sa;pwd=123;App=Blog" />

改成
   <DbProvider type = "Dottext.Framework.Data.SqlDataProvider, Dottext.Framework"
      connectionString = "server=localhost;database=DotTextDB;uid=sa;pwd=eddi1ch1n;App=Blog" />

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值