Winforms 용 SmartClient 로
개발 중입니다.
win 2003에서 com+, remoting 방식으로 되어 있고요.
db서버와 웹서버가 모두 하나의 머신에 있습니다.
remoting host 는 iis 6.0 을 사용하고 있습니다.
트랜잭션은 [AutoComplete] 로 자동트랜잭션을 사용하고 있습니다.
다른것들은 모두 문제 없이 작동하고 있습니다.
트랜잭션 없는 것은 supported , 있는것은 required 로 설정했고여.
문제는 실행시간이 좀 걸리는 함수 약 10 분정도...
인것을 실행하게 되면...
"삭제된 개체에 액세스 할수 없습니다."
serviced component
라는 메세지가 나오는데...문제가 무엇인지 감을 못잡고 있습니다.
혹시나 해서
MSDTC 의 타임아웃 속성도 0 으로 설정해보고
COM+ 트랜젝션 타이아웃을 0 으로 잡아보기도 했는데
안되네요..
근데 시간이 10분 이내의 것들은 문제없이 실행이 되고
그보다 더 걸리는 것은 타임아웃이 걸리는거 같은데.....
비즈니스 객체의 com+ 속성
[JustInTimeActivation(true)]
[EventTrackingEnabled(true)]
[Transaction(TransactionOption.Required, Isolation = TransactionIsolationLevel.ReadCommitted, Timeout=0)]
[ClassInterface(ClassInterfaceType.AutoDual)]
데이타베이스 전담 com+ 속성
[JustInTimeActivation(true)]
[EventTrackingEnabled(true)]
[Transaction(TransactionOption.Supported, Isolation = TransactionIsolationLevel.ReadCommitted, Timeout=0)]
[ClassInterface(ClassInterfaceType.AutoDual)]
어디를 찾아봐야 할지....조언 좀 부탁 드립니다.
== web.config
<?xml version="1.0"?>
<!--
참고: 이 파일을 직접 편집하는 대신 웹 관리 도구를 사용하면
사용 중인 응용 프로그램에 대한 설정을 구성할 수 있습니다.
Visual Studio에서 [웹 사이트]의 [Asp.Net 구성] 옵션을 사용하십시오.
설정 및 주석에 대한 전체 목록은 일반적으로
\Windows\Microsoft.Net\Framework\v2.x\Config의
machine.config.comments에 있습니다.
-->
<configuration>
<!--리모팅 관련 설정-->
<system.runtime.remoting>
<application>
<channels>
<channel ref="http"/>
</channels>
<service>
<!-- type = 네임스페이스, 클래스 objectUri=클램스.rem -->
<wellknown mode="SingleCall" type="Smart.BL.Mba01.MBA100N_nTx,Smart.BL.Mba01" objectUri="MBA100N_nTx.rem"/>
<wellknown mode="SingleCall" type="Smart.BL.Mba01.MBA100N_Tx,Smart.BL.Mba01" objectUri="MBA100N_Tx.rem"/>
</service>
<lifetime leaseTime="30M" sponsorShipTimeout="20M" renewOnCallTime="20M" leaseManagerPollTime="10M"/>
</application>
<customErrors mode="Off"/>
</system.runtime.remoting>
<appSettings/>
<connectionStrings/>
<system.web>
<authentication mode="Windows"/>
<globalization requestEncoding="euc-kr" responseEncoding="euc-kr"/>
<httpRuntime executionTimeout ="1800" shutdownTimeout="1800"/>
</system.web>
</configuration>
위와 같은 오류 때문에
임시로 해당 비즈니스 객체는
대략 12분정도 걸리지만..
따로 db connection 객체를 만들어서 사용을 해보면 정상 작동합니다.
[최초 등록일: ]
[최종 수정일: 9/29/2007]