創建一個 WEB FORM Application后,Deploy,Run 出現錯誤如下:
不知道是什么原因?
Server Error in '/' Application.
--------------------------------------------------------------------------------
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: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
Source Error:
Line 404: <!-- <roleManager enabled="true" /> -->
Line 405:
Line 406: <membership>
Line 407: <providers>
Line 408: <clear/>
Source File: c:\inetpub\wwwroot\abcd\web.config Line: 406
Show Additional Configuration Errors:
It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. (c:\inetpub\wwwroot\abcd\web.config line 443)
It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. (c:\inetpub\wwwroot\abcd\web.config line 488)
uj5u.com熱心網友回復:
IIS (asp.net), net framework 2.0, net framework 2.0SDK都是在安裝PB11之前安裝好的嗎?uj5u.com熱心網友回復:
IIS 是在安裝PB11之后安裝的,有問題嗎?uj5u.com熱心網友回復:
你用的是哪一個PB11 build?uj5u.com熱心網友回復:
IIS如果在PB11之后安裝,就必須手工注冊一下asp的用戶。具體是先找到ms的framework安裝目錄,如C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727、,然后在該目錄下執行dos命令 aspnet_regiis.exe /i -ga IUSER_(iis user),自己查一下,或者看看help
uj5u.com熱心網友回復:
Source Error:Line 381: <compilation defaultLanguage="c#" debug="true">
Line 382: <assemblies>
Line 383: <add assembly="Sybase.PowerBuilder.Core, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b76b10796def6a00"/>
Line 384: <add assembly="Sybase.PowerBuilder.Common, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b76b10796def6a00"/>
Line 385: <add assembly="Sybase.PowerBuilder.Web, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b76b10796def6a00"/>
Source File: c:\inetpub\wwwroot\dazong\web.config Line: 383
想問問大家這個錯誤是什么意思,如何解決?
謝謝,謝謝!
uj5u.com熱心網友回復:
Assembly Load Trace: The following information can be helpful to determine why the assembly 'Sybase.PowerBuilder.Core, Version=11.0.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].
uj5u.com熱心網友回復:
你的源程式路徑中有漢字吧?在轉換的時候,如果路徑中有漢字,在組態檔web.config中不能正常轉換,會以*替代,把組態檔中的路徑資訊中的*替換成源程式的路徑中的漢字就OK了
uj5u.com熱心網友回復:
看看IIS中ASP.NET的版本號是2.0的嗎uj5u.com熱心網友回復:
wonitazansa1:你的問題是pb.net的dll沒注冊到c:\windows\assembly目錄,估計你用的是vista,pb11早期版本還沒正式支持vista。
你可以手工把C:\Program Files\Sybase\PowerBuilder 11.0\DotNET\bin下的23個以sybase.xxx開頭的dll拖拽到c:\windows\assembly目錄就行了。
樓主的問題主要是環境沒配置好,IIS, .net framework 2.0/SDK都裝了,再運行aspnet_regiis -i 試試,還有iis的設定里.net2.0是不是當前默認的framwork。。。
uj5u.com熱心網友回復:
的確,我試過,安裝多一次PB11即可成功uj5u.com熱心網友回復:
請問你轉換的web程式能連上資料庫嗎我的pb11程式在沒轉換web時連接資料庫正常
可是一旦轉換成web了就無法連接資料庫了
都說轉換成web要用ado.net連接資料庫
我就是使用ado.net
可是無法連接db2資料庫呀
請指教
uj5u.com熱心網友回復:
不知,幫頂uj5u.com熱心網友回復:
不會,幫頂uj5u.com熱心網友回復:
是 這樣的 , 如果先安裝的pb , 后安裝的.net ,則在c:\windows\assembly 下面沒有system.powerbulder 的一些dll ,好像copy 不了 , 重新安裝一下pb 就可以了uj5u.com熱心網友回復:
重新安裝一下pb 就可以了么?我還是一樣的郁悶/
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/110604.html
標籤:Web 應用
