473,387 Members | 1,582 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,387 software developers and data experts.

How to logon into network?

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
4 1323
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: cwnewbe1 | last post by:
I would like to be able to add environment symbols to the Microsoft XP registry. I tried the example in the Python Cookbook by Orielly by running the script locally and it worked fine. Although I...
1
by: Ivaylo | last post by:
Hello, Can someone help me in my C# program: I am just trying to deal with files stored on the shared network server- to create, read and write operations. If the user is authenticated from...
3
by: rfontaine | last post by:
I have a virtual directory on IIS 5.0 to a remote share on a Windows 2003 file server. The "connect as" is a domain user account. The share as read permission for everyone and the NTFS permission...
0
by: robpimentel | last post by:
Hi, I've been using DB2 for about 1 week, so please bear with me. DB2 Connect Enterprise Edition v8.1 FixPack 5 Windows Server 2003 Standard Edition SP1 Here is an error that continues to...
8
by: HDI | last post by:
Hi, We are working with Office 2003 and for our access apps we logon with the classic access security. The username and password is the same as windows logon. Is it possible that access check...
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
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.