PB B/S模式数据库连接问题。

悠游天下 2009-11-16 04:06:11
我把原来的C/S程序用PB11.5转换成B/S模式程序,原先数据连接使用INI文件连的,在PB中调用INI文件。但是现在转换成B/S后连接就不行了,INI文件还在。请问各位该怎么办那,有人说在webconfig中配置数据库但是那样做的话,PB中如何调用呢?难道还要改转换后的aspx文件吗?
...全文
358 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
qvestx 2010-05-10
  • 打赏
  • 举报
回复
请教高手:
在pb11.5开发的BS中如何读取配置文件?
希望知道的大虾不吝赐教!谢谢!
pb8 2010-01-27
  • 打赏
  • 举报
回复
呵呵,在你想问题之前了解一下PB虚拟文件系统~~
我的也用INI,pb webform的,一切正常~~
waklly 2010-01-27
  • 打赏
  • 举报
回复
把INI文件直接放在程序根目录下,发布时引用。
悠游天下 2009-11-18
  • 打赏
  • 举报
回复
报错:Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Could not load file or assembly 'Sybase.PowerBuilder.Core, Version=11.5.0.0, Culture=neutral, PublicKeyToken=b76b10796def6a00' or one of its dependencies. 系统找不到指定的文件。

Source Error:


Line 421: <compilation defaultLanguage="c#" debug="true">
Line 422: <assemblies>
Line 423: <add assembly="Sybase.PowerBuilder.Core, Version=11.5.0.0, Culture=neutral, PublicKeyToken=b76b10796def6a00"/>
Line 424: <add assembly="Sybase.PowerBuilder.Common, Version=11.5.0.0, Culture=neutral, PublicKeyToken=b76b10796def6a00"/>
Line 425: <add assembly="Sybase.PowerBuilder.Web, Version=11.5.0.0, Culture=neutral, PublicKeyToken=b76b10796def6a00"/>


Source File: c:\inetpub\wwwroot\kcxy2\web.config Line: 423

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Sybase.PowerBuilder.Core, Version=11.5.0.0, Culture=neutral, PublicKeyToken=b76b10796def6a00' could not be loaded.


WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42

google翻译:
配置错误
说明:错误时的配置处理发生提供服务所需的申请文件。请检查下面的特定错误详细信息并修改配置文件正确。

分析器错误信息:未能加载文件或程序集'Sybase.PowerBuilder.Core,版本= 11.5.0.0,文化=非特定,PublicKeyToken = b76b10796def6a00'或其依赖项之一。系统找不到指定的文件。

源错误:


行421:<compilation defaultLanguage="c#" debug="true">
行422:<assemblies>
行423:<添加assembly="Sybase.PowerBuilder.Core, Version=11.5.0.0, Culture=neutral, PublicKeyToken=b76b10796def6a00"/>
行424:<添加assembly="Sybase.PowerBuilder.Common, Version=11.5.0.0, Culture=neutral, PublicKeyToken=b76b10796def6a00"/>
行425:<添加assembly="Sybase.PowerBuilder.Web, Version=11.5.0.0, Culture=neutral, PublicKeyToken=b76b10796def6a00"/>


源文件:c:\ inetpub \ wwwroot的\ kcxy2 \ web.config行:423

程序集加载跟踪:下列信息有助于确定程序集'Sybase.PowerBuilder.Core,版本= 11.5.0.0,文化=非特定,PublicKeyToken = b76b10796def6a00'无法加载。


警告:程序集绑定日志记录被关闭。
要启用程序集绑定失败日志记录,请将注册表值[HKLM \软件\微软\融合!EnableLog](DWORD)设置为1。
注意:有一些性能损失与程序集绑定失败日志记录关联。
要关闭此功能,删除注册表值[HKLM \软件\微软\融合!EnableLog]。
sunjie7777 2009-11-18
  • 打赏
  • 举报
回复
你的ini 可以放在 easerver/bin 下面,这样 pb就能找到了

662

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder Web 应用
社区管理员
  • Web 应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧