Author: ayhanpe | Posted on: 4/22/2009 11:20:19 PM | Views : 579

The following text when running in run VS2008 but does not run under IIS.
 
 Imports VB = Microsoft.VisualBasic
Imports GenKwe
Imports HybridShapeTypeLib
Imports INFITF
Imports KnowledgewareTypeLib
Imports MECMOD
Imports Microsoft
Imports NavigatorTypeLib
Imports PARTITF
Imports ProductStructureTypeLib
Imports SPATypeLib
Imports System

Partial Public Class _Default
Inherits System.Web.UI.Page

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

End Sub

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click

VB.Interaction.AppActivate("CATIA V5")
Dim CATIA As INFITF.Application
Try
CATIA = System.Runtime.InteropServices.Marshal.GetActiveObject("CATIA.Applicatio ...

Go to the complete details ...