먼저 dll은 vb6로 만들어진 파일입니다.
이 dll를 서버의 구성요소서비스에 등록하고, asp.net 페이지에서 로드해서 사용하려 합니다.
예전에는 닷넷페이지에서 로드하는법을 몰라 asp페이지를 사용했는데.
interop를 알게되어 aspx.cs페이지에서 이 객체를 참조해서 로컬이나 개발서버에서는 성공했습니다.
그런데..서버에서는 아래같은 에러가 나네요.
구성요소서비스 제대로 돌아가고, 소스도 전부 업로드했는데..
호스팅을 하기땜에..서버에 맘대로 들어가보지 못하네요..
무슨원인이지 몰겠네요.;.참조 dll도 전부 맞췄고, 그랬는데..음..
로컬이나 개발서버랑 호스팅서버와 다른점이 있다면, 소스의 절대위치정보와
참조하는 dll의 위치입니다...이것땜에 그럴리가 없다고 생각하는데,
암튼..조언 부탁드립니다..
QueryInterface for interface debate._decision failed.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidCastException: QueryInterface for interface debate._decision failed.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
아래에러부분중...3번째 줄 경로는 로컬의 소스위치입니다..
이 에러는 서버에서 나오는 에러입니다..로컬이나..개발서버에서는 이러한 문제가 없습니다..
서버에서는 다른데, 이것땜에 그런건지..이상하네요...
로컬에서 vs.net에서 빌드해서 dll모두 업로드했는데..음....서버에서 다시 빌드를 해야하나요? 아님
다른 문제가 있는지...
[InvalidCastException: QueryInterface for interface debate._decision failed.]
debate.decisionClass.GetChairmanID(String strDebateID) +0
localhost.Debate.ExecuteDecision.Page_Load(Object sender, EventArgs e) in d:\project\accordroot\debate\executedecision.aspx.cs:29
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +750