DVBBSインストール
8221 ワード
IIS,SQLSERVER 2000および.NET Framework 1.1以降、次のエラーが発生しました。
Server Error in '/' Application.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS0246: The type or namespace name 'Dvbbs' could not be found (are you missing a using directive or an assembly reference?)Source Error: Line 1: <%@ Page Debug="True" %>
Line 2: <%@ Import Namespace="Dvbbs.Utils" %>
Line 3: <script language="C#" runat="server">
Line 4: protected override void OnInit(EventArgs e)
Source File: c:/inetpub/wwwroot/bbn/install/environment_test.aspx Line: 2 Show Detailed Compiler Output: C:/WINXP/system32> "c:/winxp/microsoft.net/framework/v1.1.4322/csc.exe" /t:library /utf8output /R:"c:/winxp/assembly/gac/system.enterpriseservices/1.0.5000.0__b03f5f7f11d50a3a/system.enterpriseservices.dll" /R:"c:/winxp/assembly/gac/system.data/1.0.5000.0__b77a5c561934e089/system.data.dll" /R:"c:/winxp/assembly/gac/system.web.mobile/1.0.5000.0__b03f5f7f11d50a3a/system.web.mobile.dll" /R:"c:/winxp/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll" /R:"c:/winxp/assembly/gac/system.xml/1.0.5000.0__b77a5c561934e089/system.xml.dll" /R:"c:/winxp/assembly/gac/system.web.services/1.0.5000.0__b03f5f7f11d50a3a/system.web.services.dll" /R:"c:/winxp/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll" /R:"c:/winxp/assembly/gac/system.web/1.0.5000.0__b03f5f7f11d50a3a/system.web.dll" /R:"c:/winxp/microsoft.net/framework/v1.1.4322/mscorlib.dll" /out:"C:/WINXP/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/root/2135a508/8d69a834/adzeuf9o.dll" /D:DEBUG /debug+ /optimize- /warnaserror /w:1 "C:/WINXP/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/root/2135a508/8d69a834/adzeuf9o.0.cs"
Microsoft (R) Visual C# .NET Compiler version 7.10.3052.4
for Microsoft (R) .NET Framework version 1.1.4322
Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.
c:/inetpub/wwwroot/bbn/install/environment_test.aspx(2,11): error CS0246: The type or namespace name 'Dvbbs' could not be found (are you missing a using directive or an assembly reference?)
Show Complete Compilation Source: Line 1: //------------------------------------------------------------------------------
Line 2: // <autogenerated>
Line 3: // This code was generated by a tool.
Line 4: // Runtime Version: 1.1.4322.573
Line 5: //
Line 6: // Changes to this file may cause incorrect behavior and will be lost if
Line 7: // the code is regenerated.
Line 8: // </autogenerated>
Line 9: //------------------------------------------------------------------------------
Line 10:
Line 11: namespace ASP {
Line 12: using System;
Line 13: using System.Collections;
Line 14: using System.Collections.Specialized;
Line 15: using System.Configuration;
Line 16: using System.Text;
Line 17: using System.Text.RegularExpressions;
Line 18: using System.Web;
Line 19: using System.Web.Caching;
Line 20: using System.Web.SessionState;
Line 21: using System.Web.Security;
Line 22: using System.Web.UI;
Line 23: using System.Web.UI.WebControls;
Line 24: using System.Web.UI.HtmlControls;
Line 25:
Line 26: #line 2 "c:/inetpub/wwwroot/bbn/install/environment_test.aspx"
Line 27: using Dvbbs.Utils;
Line 28:
Line 29: #line default
Line 30: #line hidden
Line 31:
Line 32:
Line 33: [System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
Line 34: public class environment_test_aspx : System.Web.UI.Page, System.Web.SessionState.IRequiresSessionState {
Line 35:
Line 36: private static bool __initialized = false;
Line 37:
Line 38: private static System.Collections.ArrayList __fileDependencies;
Line 39:
Line 40:
Line 41: #line 3 "c:/inetpub/wwwroot/bbn/install/environment_test.aspx"
Line 42:
Line 43: protected override void OnInit(EventArgs e)
Line 44: {
Line 45: //
Line 46: if ("forum_install_directory_test" == Request.QueryString["install_action"])
Line 47: {
Line 48: if (null != Config.Settings)
Line 49: {
Line 50: Response.Write("OK");
Line 51: }
Line 52: }
Line 53: else if (false)
Line 54: {
Line 55: }
Line 56: }
Line 57:
Line 58: #line default
Line 59: #line hidden
Line 60:
Line 61: public environment_test_aspx() {
Line 62: System.Collections.ArrayList dependencies;
Line 63: if ((ASP.environment_test_aspx.__initialized == false)) {
Line 64: dependencies = new System.Collections.ArrayList();
Line 65: dependencies.Add("c://inetpub//wwwroot//bbn//install//environment_test.aspx");
Line 66: ASP.environment_test_aspx.__fileDependencies = dependencies;
Line 67: ASP.environment_test_aspx.__initialized = true;
Line 68: }
Line 69: this.Server.ScriptTimeout = 30000000;
Line 70: }
Line 71:
Line 72: protected override bool SupportAutoEvents {
Line 73: get {
Line 74: return false;
Line 75: }
Line 76: }
Line 77:
Line 78: protected System.Web.HttpApplication ApplicationInstance {
Line 79: get {
Line 80: return ((System.Web.HttpApplication)(this.Context.ApplicationInstance));
Line 81: }
Line 82: }
Line 83:
Line 84: public override string TemplateSourceDirectory {
Line 85: get {
Line 86: return "/bbn/install";
Line 87: }
Line 88: }
Line 89:
Line 90: private void __BuildControlTree(System.Web.UI.Control __ctrl) {
Line 91: }
Line 92:
Line 93: protected override void FrameworkInitialize() {
Line 94: this.EnableViewState = false;
Line 95: this.__BuildControlTree(this);
Line 96: this.FileDependencies = ASP.environment_test_aspx.__fileDependencies;
Line 97: this.EnableViewStateMac = true;
Line 98: }
Line 99:
Line 100: public override int GetTypeHashCode() {
Line 101: return 5381;
Line 102: }
Line 103: }
Line 104: }
Line 105:
function OnToggleTOCLevel1() { var elemSrc = window.event.srcElement; var elemLevel2 = document.all(elemSrc.level2ID); if (elemLevel2.style.display == 'none') { elemLevel2.style.display = ''; if (elemSrc.usesGlyph == '1') elemSrc.innerHTML = '6'; } else { elemLevel2.style.display = 'none'; if (elemSrc.usesGlyph == '1') elemSrc.innerHTML = '4'; } } Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
最後にこのように解決しました.
WebをconfigファイルとbinフォルダをWebサイトのルートディレクトリの下に配置
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS0246: The type or namespace name 'Dvbbs' could not be found (are you missing a using directive or an assembly reference?)Source Error:
Line 1: <%@ Page Debug="True" %>
Line 2: <%@ Import Namespace="Dvbbs.Utils" %>
Line 3: <script language="C#" runat="server">
Line 4: protected override void OnInit(EventArgs e)
Source File: c:/inetpub/wwwroot/bbn/install/environment_test.aspx Line: 2 Show Detailed Compiler Output:
C:/WINXP/system32> "c:/winxp/microsoft.net/framework/v1.1.4322/csc.exe" /t:library /utf8output /R:"c:/winxp/assembly/gac/system.enterpriseservices/1.0.5000.0__b03f5f7f11d50a3a/system.enterpriseservices.dll" /R:"c:/winxp/assembly/gac/system.data/1.0.5000.0__b77a5c561934e089/system.data.dll" /R:"c:/winxp/assembly/gac/system.web.mobile/1.0.5000.0__b03f5f7f11d50a3a/system.web.mobile.dll" /R:"c:/winxp/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll" /R:"c:/winxp/assembly/gac/system.xml/1.0.5000.0__b77a5c561934e089/system.xml.dll" /R:"c:/winxp/assembly/gac/system.web.services/1.0.5000.0__b03f5f7f11d50a3a/system.web.services.dll" /R:"c:/winxp/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll" /R:"c:/winxp/assembly/gac/system.web/1.0.5000.0__b03f5f7f11d50a3a/system.web.dll" /R:"c:/winxp/microsoft.net/framework/v1.1.4322/mscorlib.dll" /out:"C:/WINXP/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/root/2135a508/8d69a834/adzeuf9o.dll" /D:DEBUG /debug+ /optimize- /warnaserror /w:1 "C:/WINXP/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/root/2135a508/8d69a834/adzeuf9o.0.cs"
Microsoft (R) Visual C# .NET Compiler version 7.10.3052.4
for Microsoft (R) .NET Framework version 1.1.4322
Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.
c:/inetpub/wwwroot/bbn/install/environment_test.aspx(2,11): error CS0246: The type or namespace name 'Dvbbs' could not be found (are you missing a using directive or an assembly reference?)
Show Complete Compilation Source:
Line 1: //------------------------------------------------------------------------------
Line 2: // <autogenerated>
Line 3: // This code was generated by a tool.
Line 4: // Runtime Version: 1.1.4322.573
Line 5: //
Line 6: // Changes to this file may cause incorrect behavior and will be lost if
Line 7: // the code is regenerated.
Line 8: // </autogenerated>
Line 9: //------------------------------------------------------------------------------
Line 10:
Line 11: namespace ASP {
Line 12: using System;
Line 13: using System.Collections;
Line 14: using System.Collections.Specialized;
Line 15: using System.Configuration;
Line 16: using System.Text;
Line 17: using System.Text.RegularExpressions;
Line 18: using System.Web;
Line 19: using System.Web.Caching;
Line 20: using System.Web.SessionState;
Line 21: using System.Web.Security;
Line 22: using System.Web.UI;
Line 23: using System.Web.UI.WebControls;
Line 24: using System.Web.UI.HtmlControls;
Line 25:
Line 26: #line 2 "c:/inetpub/wwwroot/bbn/install/environment_test.aspx"
Line 27: using Dvbbs.Utils;
Line 28:
Line 29: #line default
Line 30: #line hidden
Line 31:
Line 32:
Line 33: [System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
Line 34: public class environment_test_aspx : System.Web.UI.Page, System.Web.SessionState.IRequiresSessionState {
Line 35:
Line 36: private static bool __initialized = false;
Line 37:
Line 38: private static System.Collections.ArrayList __fileDependencies;
Line 39:
Line 40:
Line 41: #line 3 "c:/inetpub/wwwroot/bbn/install/environment_test.aspx"
Line 42:
Line 43: protected override void OnInit(EventArgs e)
Line 44: {
Line 45: //
Line 46: if ("forum_install_directory_test" == Request.QueryString["install_action"])
Line 47: {
Line 48: if (null != Config.Settings)
Line 49: {
Line 50: Response.Write("OK");
Line 51: }
Line 52: }
Line 53: else if (false)
Line 54: {
Line 55: }
Line 56: }
Line 57:
Line 58: #line default
Line 59: #line hidden
Line 60:
Line 61: public environment_test_aspx() {
Line 62: System.Collections.ArrayList dependencies;
Line 63: if ((ASP.environment_test_aspx.__initialized == false)) {
Line 64: dependencies = new System.Collections.ArrayList();
Line 65: dependencies.Add("c://inetpub//wwwroot//bbn//install//environment_test.aspx");
Line 66: ASP.environment_test_aspx.__fileDependencies = dependencies;
Line 67: ASP.environment_test_aspx.__initialized = true;
Line 68: }
Line 69: this.Server.ScriptTimeout = 30000000;
Line 70: }
Line 71:
Line 72: protected override bool SupportAutoEvents {
Line 73: get {
Line 74: return false;
Line 75: }
Line 76: }
Line 77:
Line 78: protected System.Web.HttpApplication ApplicationInstance {
Line 79: get {
Line 80: return ((System.Web.HttpApplication)(this.Context.ApplicationInstance));
Line 81: }
Line 82: }
Line 83:
Line 84: public override string TemplateSourceDirectory {
Line 85: get {
Line 86: return "/bbn/install";
Line 87: }
Line 88: }
Line 89:
Line 90: private void __BuildControlTree(System.Web.UI.Control __ctrl) {
Line 91: }
Line 92:
Line 93: protected override void FrameworkInitialize() {
Line 94: this.EnableViewState = false;
Line 95: this.__BuildControlTree(this);
Line 96: this.FileDependencies = ASP.environment_test_aspx.__fileDependencies;
Line 97: this.EnableViewStateMac = true;
Line 98: }
Line 99:
Line 100: public override int GetTypeHashCode() {
Line 101: return 5381;
Line 102: }
Line 103: }
Line 104: }
Line 105:
function OnToggleTOCLevel1() { var elemSrc = window.event.srcElement; var elemLevel2 = document.all(elemSrc.level2ID); if (elemLevel2.style.display == 'none') { elemLevel2.style.display = ''; if (elemSrc.usesGlyph == '1') elemSrc.innerHTML = '6'; } else { elemLevel2.style.display = 'none'; if (elemSrc.usesGlyph == '1') elemSrc.innerHTML = '4'; } } Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
最後にこのように解決しました.
WebをconfigファイルとbinフォルダをWebサイトのルートディレクトリの下に配置