By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,617 Members | 1,600 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,617 IT Pros & Developers. It's quick & easy.

How to logon into network?

P: n/a
A.M
Hi,

My WinForm.EXE app tries to write a file into network and it failes because
it doesn't have permission and I don't know how can I login into network
from my application.

How can i logon into network from my EXE file?

Any help would be appreciated,
Ali
Jul 21 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
On Thu, 20 Nov 2003 10:53:41 -0500, "A.M" <IH*******@sapm123.com> wrote:

Hi,

My WinForm.EXE app tries to write a file into network and it failes because
it doesn't have permission and I don't know how can I login into network
from my application.

How can i logon into network from my EXE file?

Any help would be appreciated,

You've probably already been authenticated on the network. What you need is to have your Network
Admin grant the appropriate permissions for the resource you are attempting to Access.
Paul ~~~ pc******@ameritech.net
Microsoft MVP (Visual Basic)
Jul 21 '05 #2

P: n/a
A.M
It actaully can't be permission, because using notepad, i can Create/write
text files on the same location that my WinForms.EXE can't !!!

"Paul Clement" <Us***********************@swspectrum.com> wrote in message
news:t0********************************@4ax.com...
On Thu, 20 Nov 2003 10:53:41 -0500, "A.M" <IH*******@sapm123.com> wrote:

Hi,

My WinForm.EXE app tries to write a file into network and it failes because it doesn't have permission and I don't know how can I login into network
from my application.

How can i logon into network from my EXE file?

Any help would be appreciated,

You've probably already been authenticated on the network. What you need is to have your Network Admin grant the appropriate permissions for the resource you are attempting to Access.

Paul ~~~ pc******@ameritech.net
Microsoft MVP (Visual Basic)

Jul 21 '05 #3

P: n/a
This should work, your Winform application is just another application like notepad. Could you post the exception message being
thrown?

Willy.
PS. You don't run this from a network share don't you?

"A.M" <IH*******@sapm123.com> wrote in message news:uz*************@tk2msftngp13.phx.gbl...
It actaully can't be permission, because using notepad, i can Create/write
text files on the same location that my WinForms.EXE can't !!!

"Paul Clement" <Us***********************@swspectrum.com> wrote in message
news:t0********************************@4ax.com...
On Thu, 20 Nov 2003 10:53:41 -0500, "A.M" <IH*******@sapm123.com> wrote:

Hi,

My WinForm.EXE app tries to write a file into network and it failes

because
it doesn't have permission and I don't know how can I login into network
from my application.

How can i logon into network from my EXE file?

Any help would be appreciated,

You've probably already been authenticated on the network. What you need

is to have your Network
Admin grant the appropriate permissions for the resource you are

attempting to Access.


Paul ~~~ pc******@ameritech.net
Microsoft MVP (Visual Basic)


Jul 21 '05 #4

P: n/a
Hi Ali,

I agree with Willy. And if you run your .NET application from a shared
network folder, you will have to give the file share FullTrust permission
as described in the MSDN article below.

http://msdn.microsoft.com/library/de...us/vsintro7/ht
ml/vxurfprojectfoldernotsecuredialogbox.asp

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.