473,382 Members | 1,692 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

development with source on a intra network

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

Apr 24 '06 #1
7 1827
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.)

Apr 25 '06 #2
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...

"Kevin Yu [MSFT]" wrote:
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.)

Apr 25 '06 #3
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.)

Apr 27 '06 #4
I do. Infact i am local administrator. I have done a similar coding with VB 6
and never faced any such problems.

"Kevin Yu [MSFT]" wrote:
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.)

Apr 27 '06 #5
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.)

Apr 28 '06 #6
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?

"Kevin Yu [MSFT]" wrote:
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.)

Apr 29 '06 #7
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.)

May 1 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Evan Smith | last post by:
We recently upgraded the box that hosts our main DB2 database to an 8-CPU machine with 8 GB of memory. With all the extra horsepower, we were eager to test performance with intra-parallelism turned...
8
by: Rod | last post by:
I have been working with ASP.NET 1.1 for quite a while now. For some reason, opening some ASP.NET applications we wrote is producing the following error message: "The Web server reported...
5
by: Shawn Berg | last post by:
I have just finished reading the "Team Development with Visual Studio .NET and Visual SourceSafe" patterns & practices white paper. I just wanted to get a good feel from others if what they suggest...
4
by: Richard Levasseur | last post by:
(Forewarning, most of these problems and solutions come from being the only developer in a 1 server department with no budget, few resources, unresponsive IT, and non-technical managers, so thats...
29
by: Tony Girgenti | last post by:
Hello. I'm developing and testing a web application using VS.NET 2003, VB, .NET Framework 1.1.4322, ASP.NET 1.1.4322 and IIS5.1 on a WIN XP Pro, SP2 computer. I'm using a web form. How do I...
1
by: Laurence | last post by:
Hi folks, As I konw: database partition (aka data partition?), the database can span multiple machines; table partition, the data within a table can seperate by certain condition. How about...
1
by: marcroy.olsen | last post by:
Hi Python list, I have been struggleling with this before, but have never been able to find a good solution. The thing I dont understand is, I follow the guide here:...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.