2011-08-11 2 views
0

Windows 2003 서버가 있습니다.ASP.net 2를 실행하려면 IIS6을 구성하는 데 도움이 필요합니다. 응용 프로그램

나는 ASP 클래식 웹 사이트를 주로 사용하고 있습니다. 기본 웹 사이트 아래에 가상 디렉터리로 구성되어 있기 때문에 http://TheWebServer/TheOnlineApp으로 액세스 할 수 있습니다. ASP.net을 사용하여 새 사이트를 만들고이를 가상 디렉터리로 설정했습니다.

기본 웹 사이트의 ASP.NET 탭에서 내 버전 선택은 1, 2 및 4입니다. Oracle에서 쿼리를 실행 중이므로 ASP.Net 2로 실행해야합니다.

오라클 드라이버가 4에 포함되어 있지 않으므로 ASP.net 4로 실행할 수 없습니다. 오라클에서 드라이버를 가져올 수 있지만 사용중인 오라클의 이전 버전에서는 오라클의 새 버전이 아닙니다. 멀리 떨어진 하위 호환성. 나는 이름으로 특정 페이지에 액세스하기보다는 수

The resource cannot be found. 
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly. 
Requested URL: /TechCallCenter/eurl.axd/4e68f64d4066d244a27da9fff7bf3f0d/ 

그러나 : 나는 2로 가상 디렉터리에 대한 ASP.net 버전을 변경하고 4 그때 404 오류로 기본을두면

기본 문서에 따라 다릅니다. 플러스는 모든 내 다른 가상 디렉터리에 내가 얻을 :

Server Application Unavailable 
The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request. 
Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur." 

그리고 내 ASP 고전 가상 디렉터리에 액세스 할 수 없습니다입니다.

나는 기본 사이트와 그때 내 모든 페이지에 액세스 할 수있는, 일을 얻으려고 노력하고있는 가상 디렉터리에 모두 2 버전을 변경,하지만 난 오류는 Oracle 데이터베이스

[Exception: OCIEnvCreate failed with return code -1 but error message text was not available.] 
System.Data.OracleClient.OciHandle..ctor(OciHandle parentHandle, HTYPE handleType, MODE ocimode, HANDLEFLAG handleflags) +363 
System.Data.OracleClient.OciEnvironmentHandle..ctor(MODE environmentMode, Boolean unicode) +23 
System.Data.OracleClient.OracleInternalConnection.OpenOnLocalTransaction(String userName, String password, String serverName, Boolean integratedSecurity, Boolean unicode, Boolean omitOracleConnectionName) +122 
System.Data.OracleClient.OracleInternalConnection..ctor(OracleConnectionString connectionOptions) +135 
System.Data.OracleClient.OracleConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject) +36 
System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +28 
System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +424 
System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +68 
System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +519 
System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +82 
System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +104 
System.Data.OracleClient.OracleConnection.Open() +37 
ScratchPad.Button1_Click(Object sender, EventArgs e) +235 
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105 
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107 
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7 
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11 
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33 
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5087 
에 연결을 시도받을 경우

모든 것이 내 개발 컴퓨터에서 훌륭하게 작동하지만 Windows 7 컴퓨터이므로 IIS 용 인터페이스가 완전히 완전히 다릅니다.

답변

0

제 생각에는 IIS6에서 실제로 작동하지 않는 동일한 프로세스에서 .Net CLR (1.1, 2.0 또는 4.0)의 여러 버전을 사용하고있는 것 같습니다.

.Net 2.0 응용 프로그램 만 실행하는 데 사용할 새 응용 프로그램 풀을 만듭니다. 그런 다음 가상 디렉터리를 할당하여 가상 디렉터리 속성 대화 상자의 가상 디렉터리 -> 응용 프로그램 풀 설정을 통해 사용합니다. 이렇게 한 후에는 상위 웹 사이트를 사용중인 설정으로 되돌릴 수 있습니다.

가상 디렉터리는 부모의 web.config 값에서 설정을 상속 할 수 있으므로 필요한 경우 재설정 (예 : <connectionStrings><clear /></connectionStrings>)을 사용하십시오.

새로운 IP, 도메인 이름 또는 포트로 구분 된 환경/네트워크에서 작동하는 경우 자체 웹 사이트로 이동하는 것이 좋습니다. 가상 디렉터리를 귀하의 경우에 사용할 수있게해야하므로 큰 문제는 아니지만 귀하를 위해 가상 디렉터리를 단순화 할 수 있습니다.

관련 문제