|
Looking for just like thing
5
|
|
|
|
|
|
Hi just recently moved these codes to my server 2003 and i'm getting these errors. Any ideas how i can fix this problem??
"This network connection does not exist"
[Win32Exception (0x80004005): This network connection does not exist]
aejw.Network.NetworkDrive.zUnMapDrive(Boolean pfForce) +373
aejw.Network.NetworkDrive.UnMapDrive() +50
EyeModInfo._Default.img1btn_Click(Object sender, ImageClickEventArgs e) +1315
System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +98
System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +161
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +29
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2981
|
|
|
|
|
FYI: Tried to get the latest from your website but it's been down for at least a week or so.
"failed to init xml file 'aejw/data/portal.config' - Root element is missing. "
I'm sure you know about it. Is it on purpose?
|
|
|
|
|
|
The code works correctly on my WinXP development workstation. When I copy the compiled exe to a Windows 2003 Server machine, I get the following exception:
System.ComponentModel.Win32Exception: Attempt to access invalid address
Is there something that I need to register on my server machine?
|
|
|
|
|
This error tends to occur when the drive letter set is already in use or set incorrectly.
- aejw.com
|
|
|
|
|
|
Do I have to map the drive on every page that needs access? Can I just map once for a server? If so, where/how do I do it?
I have just downloaded and it says Build 015 Modified 14/05/2004. Is this the latest?
Thanks.
--kk
|
|
|
|
|
If you set the persistant flag, you only need to map the drive once. If you dont, for every time you boot windows...
Sorry need to update, the latest version is aejw.com
- aejw.com
|
|
|
|
|
Hi,
I tried the code using XP, it works great!
I tried it using Vista to map a server shared folder, it works great!
I tried it using Vista to map a network HD with a public shared folder, it fails (Access denied).
I so tried to check "ask credentials". I fullfil the credentials when asked. I works!
I then tried to uncheck "ask credentials" and give credentials in the form. It failed...
Does anyone have an idea of what's happening?
I tried using the windows vista interface to make my network drive. There's no problem.
I tried to make it using the "net use" function, the same problem as the code provided occured : "access denied" (Note : the same command works great on XP)
The network HD is a linux based interface. Does it change anything?
Any help would be really appreciate.
-----
Pierre Liétar
|
|
|
|
|
Well im quite lost for a solution without a linux share to test with. I assume you have tried passing the domain name, if not in a domain, try passing the machine name, or try not passing the domain and setting the username to "machinename\username"?
- aejw.com
|
|
|
|
|
Hello I have caught the CNEtworkdrive class in an web application, i use the same code that you in a aspx button but do me nothing,Do you Know what is the problem.Thanks and best Regards
|
|
|
|
|
Is this work on Windows XP Home?
Hugo Tomas
|
|
|
|
|
Yes it should...
- aejw.com
|
|
|
|
|
How you install the program?
|
|
|
|
|
This is an code sample, not an application... You could however should you wish, get Microsoft Visual Studio.net, compile the application, use NSIS or Install Shield, etc to package the application into an installer and then install it.
There are applications about which are installable applications for network drives. One application even uses my code todo this, its called NetPlace (Network Place Manager) http://sourceforge.net/projects/netplace/[^].
(aejw)
modified on Friday, June 20, 2008 5:39 AM
|
|
|
|
|
How do I handle the below exception when I call MapDrive?
Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed. Disconnect all previous connections to the server or shared resource and try again.
|
|
|
|
|
You have the following options....
1. Disconnect your previous connection to the resource first
2. Have your code use the same username and password as your previous connection
This error comes from Windows and as far as I know, there is no way around it.
(aejw)
|
|
|
|
|
To gain one more mapped drive, connect it to the IP of the server not the name
and to gain another one too, give your DNS an alias and connect throught the alias not the server name
Check this
http://support.microsoft.com/kb/173199/[^]
Hope this help
|
|
|
|
|
Thanks to aejw's work. I usesd it in my project, but unluckly my testers found it failed to map for one time and they could not reproduce it any more. It said the user has already mapped a network dirver for the same path. What a pitty!
I think maybe it will be perfect if the function WNetGetConnection is added to detect whether that network path has been mapped as a driver or not.
modified on Sunday, March 16, 2008 10:37 PM
|
|
|
|
|
Sorry... I have been meaning to update this code (when i get the time) from my site (http://www.aejw.com/) where there is a later version posted. Should it not fix the issue with the later version, it sounds like a logic fault from the calling application... You should read back if the drive is in use or try using "try{ }catch{ }".
(aejw)
|
|
|
|
|
This would be really great !
I'm looking forward to it.
Will this also be done on version on your site VB and C# ?
If help is needs, just yell
|
|
|
|
|
No problem , yes the new version will come in two flavors / articles... c# and vb.net, Each will cross link to show how c# vs vb.net API writing is compared...
and thanks, any testing will be a great aid...
(aejw)
|
|
|
|
|
Hi,
I still have your email and did not respond on it yet, I'm very sorry for that.
You said you already have a good ammount of code for the webdav part.
How far are you at the moment ?
I'm very exited about it !
Thanks.
|
|
|
|