development with source on a intra network

G

Guest

I have two issues to address:

a) The source code lies in the network path. I am trying to use windows
sockets for making a mail client. On execution of this program in debug mode,
i get an error as below:

An unhandled exception of type 'System.IO.FileNotFoundException' occurred in
SendMail.exe

Additional information: File or assembly name Interop.MSWinsockLib, or one
of its dependencies, was not found.

b) We also develop for handhelds (smart device apps). Unless we are a
minimum of local administrator, we are not able to run in debug mode - Is
this required?

thanks
 
K

Kevin Yu [MSFT]

Hi,

a) Maybe the interop wrapper assembly was not created properly for
SendMail.exe. Please check in the bin folder to see if
Interop.MSWinsockLib.dll is in the same folder as SendMail.exe. Also, are
your interoping with the Microsoft Winsock control in VB 6.0? If so, you
have MSWINSCK.OCX under c:\windows\system32 on your local machine. If not
please copy that ocx and register it using regsvr32.

b) If you're not an administrator on your local machine, you must be a
Debugger using on it. HTH.

Kevin Yu
Microsoft Online Community Support

============================================================================
==========================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
============================================================================
==========================

(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
G

Guest

If I have the same code in the local drive and execute it - it works. I tried
following the instructions given in help when opening the project from the
network drive to no avail. I have used winsock controls with Visual Foxpro
(yes VFP) and VB (did FTP) without much problem. BTW, did I tell you that
this is the first one I am trying with VB .net so it is possible that i am
missing something obvious...
 
K

Kevin Yu [MSFT]

Hi,

Since Winsock control is an ActiveX control, using it in .NET app is a
little different. Since you can open the project without any problem if you
copy it onto you local hard drive, so you have enough permission (write
permisson) on the shared folder?

Kevin Yu
Microsoft Online Community Support

============================================================================
==========================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
============================================================================
==========================

(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
G

Guest

I do. Infact i am local administrator. I have done a similar coding with VB 6
and never faced any such problems.
 
K

Kevin Yu [MSFT]

Hi,

This is little weird. But local administrator is not enough to access a
network shared folder. For workaround, you can copy all the files onto your
local drive and copy them back to the network folder.

Kevin Yu
Microsoft Online Community Support

============================================================================
==========================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
============================================================================
==========================

(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
G

Guest

This beats me...I created the folder in network and created the new
project..it didn't work. I copied to local drive, removed and added the
winsock reference, it worked. Now as per your suggestion i copied it back to
network..and it seem to WORK (i removed and added the reference here too) -
WHY?
 
K

Kevin Yu [MSFT]

Hi,

It's hard to decide why this happens. I tried to create a project on my
shared folder but I didn't find the similar situation here. Could you
please create a small sample project which references the winsock activeX
control that can reproduce the problem? So that I can do more research on
it. Thank you!

Kevin Yu
Microsoft Online Community Support

============================================================================
==========================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
============================================================================
==========================

(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top