code working in asp but not working in VB.nethttp://forums.asp.net/t/842860.aspx/1?code+working+in+asp+but+not+working+in+VB+netTue, 01 Mar 2005 11:14:21 -0500842860842860http://forums.asp.net/p/842860/842860.aspx/1?code+working+in+asp+but+not+working+in+VB+netcode working in asp but not working in VB.net I have the following code in a .asp file The same code in a VBasp.net page Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim obj1 obj1 = CreateObject("MYOBJ") End Sub returns the error: "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" "aspnet_wp.exe (PID=3768) stopped unexpectedly" and this is a very bad error ,only in .NET, which does not provide any clue. The event log shows: . I've tried everything, including changes threads in .NET setup files, reinstalled the framework. Nobody seems to have a clue. Any help will be appreciated. I could provide the dll containg the COM object, if someone is interested, but if you have one in C++, you can test with that. It is happening for every COM. Any help will be appreciated. Thanks! 2005-03-01T00:20:12-05:00843196http://forums.asp.net/p/842860/843196.aspx/1?Re+code+working+in+asp+but+not+working+in+VB+netRe: code working in asp but not working in VB.net you have to use the Type Library importer to create a Runtime Callable Wrapper. 2005-03-01T11:14:21-05:00