7 Replies Latest reply on Nov 7, 2008 4:05 PM by Tom Nicholson

    An unknown network error occurred. (40)

      I am extremely new to Solidworks products so forgive the "very basic" question. I cannot get a valid connection to PDMWorks and need some help. Here is what I've done:

      1. I have PDMWorks running on a machine called DEV-SOLIDWORKS and had created two users: admin and rodney. This was installed using defaults.

      2. On my local machine, I created a view to the "vault" on DEV-SOLIDWORKS. (vault_setup.gif)

      3. I can then access the vault in windows explorer ... appears to be no issues. (vault_access.gif & vault_view.gif)

      4. When trying to access the vault in code however, I get an exception raised (An unknown network error occurred. (40)). I've even installed SolidWorks and dev studio on the PDMWorks box in an attempt to isolate network traffic to the local machine but have received the same results. I have tried administrator as well as admin and Rodney for the login

      Here is the code when run from the DEV-SOLIDWORKS machine (localhost):


      Imports Pdmworks
      Imports System.Windows.Forms

      Public Class Form1

          Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
              Try
                  Dim conn As PDMWorks.PDMWConnection
                  conn = CreateObject("PDMWorks.PDMWConnection")
                  conn.Login("admin", "admin", "localhost") <-- blows right here
                  conn.Logout()
                  conn = Nothing
              Catch ex As Exception
                  MsgBox(ex.Message)
              End Try
          End Sub
      End Class




        • An unknown network error occurred. (40)
          Blake Dahle
          If the name of the machine is "DEV-SOLIDWORKS" then try replacing "localhost" with the machine name, see if that works.
          • An unknown network error occurred. (40)
            unfortunately localhost doesn't work either ... but thanks for trying!
            • An unknown network error occurred. (40)
              IP didnt work either. The ports are open (per netstat) and I have no firewall enabled ...


              Active Connections

              Proto Local Address Foreign Address State
              TCP dev-solidworks:http dev-solidworks:0 LISTENING
              TCP dev-solidworks:epmap dev-solidworks:0 LISTENING
              TCP dev-solidworks:microsoft-ds dev-solidworks:0 LISTENING
              TCP dev-solidworks:1025 dev-solidworks:0 LISTENING
              TCP dev-solidworks:ms-sql-s dev-solidworks:0 LISTENING
              TCP dev-solidworks:2383 dev-solidworks:0 LISTENING
              TCP dev-solidworks:3030 dev-solidworks:0 LISTENING
              TCP dev-solidworks:3389 dev-solidworks:0 LISTENING
              TCP dev-solidworks:netbios-ssn dev-solidworks:0 LISTENING
              TCP dev-solidworks:1045 dev-solidworks:ms-sql-s ESTABLISHED
              TCP dev-solidworks:1048 dev-solidworks:3030 ESTABLISHED
              TCP dev-solidworks:1052 dev-solidworks:ms-sql-s ESTABLISHED
              TCP dev-solidworks:1054 dev-solidworks:ms-sql-s ESTABLISHED
              TCP dev-solidworks:1055 dev-solidworks:ms-sql-s ESTABLISHED
              TCP dev-solidworks:1066 VM-HARRIS-ILNK:netbios-ssn TIME_WAIT
              TCP dev-solidworks:ms-sql-s dev-solidworks:1045 ESTABLISHED
              TCP dev-solidworks:ms-sql-s dev-solidworks:1052 ESTABLISHED
              TCP dev-solidworks:ms-sql-s dev-solidworks:1054 ESTABLISHED
              TCP dev-solidworks:ms-sql-s dev-solidworks:1055 ESTABLISHED
              TCP dev-solidworks:3030 dev-solidworks:1048 ESTABLISHED
              TCP dev-solidworks:ms-sql-m dev-solidworks:0 LISTENING
              UDP dev-solidworks:microsoft-ds *:*
              UDP dev-solidworks:isakmp *:*
              UDP dev-solidworks:3030 *:*
              UDP dev-solidworks:4500 *:*
              UDP dev-solidworks:ntp *:*
              UDP dev-solidworks:netbios-ns *:*
              UDP dev-solidworks:netbios-dgm *:*
              UDP dev-solidworks:ntp *:*
              • An unknown network error occurred. (40)
                Tom Nicholson
                maybe add a pointer to the hosts file?

                DEV-SOLIDWORKS 192.168.0.5
                • An unknown network error occurred. (40)
                  I *think* the machine knows who it is (after confirming w/ipconfig)

                  Windows IP Configuration

                  Host Name . . . . . . . . . . . . : dev-solidworks
                  Primary Dns Suffix . . . . . . . :
                  Node Type . . . . . . . . . . . . : Unknown
                  IP Routing Enabled. . . . . . . . : No
                  WINS Proxy Enabled. . . . . . . . : No

                  Ethernet adapter Local Area Connection:

                  Connection-specific DNS Suffix . :
                  Description . . . . . . . . . . . : VMware Accelerated AMD PCNet Adapter
                  Physical Address. . . . . . . . . : 00-0C-29-5A-EF-92
                  DHCP Enabled. . . . . . . . . . . : No
                  IP Address. . . . . . . . . . . . : 10.10.10.177
                  Subnet Mask . . . . . . . . . . . : 255.255.255.0
                  Default Gateway . . . . . . . . . : 10.10.10.254
                  DNS Servers . . . . . . . . . . . : 10.10.10.151

                  The only other thing I can think of is that it is in a virtual machine. The WHOLE ENVIRONMENT is in it though including PDMWorks, Visual Studio, SQL Server, etc. It is completely self contained.
                  • An unknown network error occurred. (40)
                    Tom Nicholson
                    I thought the problem was connecting to dev-solidworks from another machine.. Guess I misunderstood. Sorry about that..