Login  
Search All Forums
Dart Home | PowerTCP WebServer for ActiveX | Custom Development Reply | PowerTCP WebServer for ActiveX Topics | Forums   
AuthorForum: PowerTCP WebServer for ActiveX
Topic: Vista Issue
polive96
phil@theolivefamily.com

From: cedar park, TX USA
Posts: 9
Member Since: 08/23/07
posted May 21, 2008 5:19 PM

Hi,

We are using your product PowerTCP webserver for ActiveX.

This error occurs when we compile and deploy our product, ONLY ON VISTA.
NOTE:  ONLY ON VISTA (Not on any combination of XP)

http://www.harmony-home.com/Downloads/error/error-1.jpg



The error happens when you run the start() method of the webserver.
We have patched the dev environment and the vista machine and no combination of patches fixes this problem.
The code used to work, and we don't know why it stopped honestly.
Your support forums do not have a fix, so we need you to look into this as quickly as you can.
We have now run out of solutions and really need your help with this.

I have included the dartnostics report and the source code of the problem.
The program is a vb.net executable that deploys a website onto any machine installed.

Thanks for your help,

-Phillip Olive
Harmony Solutions













Source Code:
########################################
'start method
   Public Sub ws_start()
       Try
           Try
               Dim SERIAL As String = ""
               serv = New AxDartWebServer.AxWebServer()
               Dim fieldInfo As System.Reflection.FieldInfo
               fieldInfo = GetType(System.Windows.Forms.AxHost).GetField("licenseKey", Reflection.BindingFlags.NonPublic Or Reflection.BindingFlags.Instance)
               fieldInfo.SetValue(serv, SERIAL)
               serv.CreateControl()
               serv.Hide()
               ' Set the directories
               serv.RootDirectory = HSPI.hs.getAppPath & "\html"
               serv.LogDirectory = HSPI.hs.getAppPath & "\weblogs"
               serv.MaxIdleTime = 1
               serv.ClientAuthentication = False
               serv.Protocol = ProtocolConstants.secureNone
               serv.Certificate = Nothing
               ' Attempt to start the server and set status
               If (CInt(My.Settings.ipaddy) > 0) Then
               Else
                   My.Settings.ipaddy = "8080"
               End If
               Dim ip As IPAddress = MMS.getIP()
               Try
                   serv.Start(CInt(My.Settings.ipaddy), -1, ip.ToString(), "", 0, 0)
               Catch ex As Exception
                   MsgBox("Error: " & ex.Message & " <> " & ex.StackTrace, MsgBoxStyle.Critical)
               End Try
           Catch ex3 As System.AccessViolationException
               Throw New Exception(ex3.Message)
           End Try
       Catch ex2 As Exception
           Throw ex2
       End Try
       nostart = False
   End Sub
polive96
phil@theolivefamily.com

From: cedar park, TX USA
Posts: 9
Member Since: 08/23/07
posted May 22, 2008 2:04 PM

Just fyi.... we found the cause of this.... apparently you HAVE to compile a visual studio 2005 project using this component.... ONLY on a Windows XP HOME installation.... for this not to occur.

This problem occurred on all windows xp installs and patches, and vista.... except xp home installs.

This makes me very wary of this product..... just fyi...
Reply | PowerTCP WebServer for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX