几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量  


返回   几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 » 仿射空间:CAX软件开发(三)二次开发与程序设计 » CAD二次开发 » SolidWorks二次开发
用户名
密码
注册 帮助 会员 日历 银行 搜索 今日新帖 标记论坛为已读


 
 
主题工具 搜索本主题 显示模式
旧 2009-04-13, 08:51 AM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】an unknown network error occurred. 9400

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
edited: 11/06/2008 at 02:59 pm by rodney mccabe
click for full image
if the name of the machine is "dev-solidworks" then try replacing "localhost" with the machine name, see if that works.
unfortunately localhost doesn't work either ... but thanks for trying!
well the only time you should be getting that error, is if the pointer to the server is invalid.
try using the the ip address for the vault machine in that place. according to help:
input:
(bstr) server
name of the server (dns name or ip address)
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: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 *:*
maybe add a pointer to the hosts file?
dev-solidworks 192.168.0.5
sw2009 sp3.0
pentium d 840-3.2 ghz
4gb ddr2 667
ati firegl v5600 - driver ver. 8.440.0.0
winxp pro 32bit
an understanding that without any understanding, we would all be misunderstood..
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.
edited: 11/06/2008 at 04:31 pm by rodney mccabe
i thought the problem was connecting to dev-solidworks from another machine.. guess i misunderstood. sorry about that..
sw2009 sp3.0
pentium d 840-3.2 ghz
4gb ddr2 667
ati firegl v5600 - driver ver. 8.440.0.0
winxp pro 32bit
an understanding that without any understanding, we would all be misunderstood..
quick
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
 


主题工具 搜索本主题
搜索本主题:

高级搜索
显示模式

发帖规则
不可以发表新主题
不可以回复主题
不可以上传附件
不可以编辑您的帖子

vB 代码开启
[IMG]代码开启
HTML代码关闭



所有的时间均为北京时间。 现在的时间是 06:25 PM.


于2004年创办,几何尺寸与公差论坛"致力于产品几何量公差标准GD&T | GPS研究/CAD设计/CAM加工/CMM测量"。免责声明:论坛严禁发布色情反动言论及有关违反国家法律法规内容!情节严重者提供其IP,并配合相关部门进行严厉查处,若內容有涉及侵权,请立即联系我们QQ:44671734。注:此论坛须管理员验证方可发帖。
沪ICP备06057009号-2
更多