473,320 Members | 2,146 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,320 software developers and data experts.

Security Issue

I have created a console application which run fine on my workstation. I
have move the code to a shared drive and I have created a "bat" file which
will invoke the application. When I double click on this file and attempt to
run, I get a security error. If I log on to the shared drive an run it from
there, then it runs just fine.

So what do I need to do so that I can runn the application from a shared
drive rather then having to log on to the server which owns the shared drive?

Thanks!!
Nov 21 '05 #1
4 958
Hi,

Have you tried impersonation?

http://www.dotnet247.com/247referenc...28/144136.aspx

Ken
--------------
"Jim Heavey" <Ji*******@discussions.microsoft.com> wrote in message
news:44**********************************@microsof t.com...
I have created a console application which run fine on my workstation. I
have move the code to a shared drive and I have created a "bat" file which
will invoke the application. When I double click on this file and attempt
to
run, I get a security error. If I log on to the shared drive an run it from
there, then it runs just fine.

So what do I need to do so that I can runn the application from a shared
drive rather then having to log on to the server which owns the shared
drive?

Thanks!!
Nov 21 '05 #2
Is this for both windows and ASP.Net environments? I am running the
application in the windows environment and the provided references the
ASP.Net features...but pehaps they can be used in both environments????

"Ken Tucker [MVP]" wrote:
Hi,

Have you tried impersonation?

http://www.dotnet247.com/247referenc...28/144136.aspx

Ken
--------------
"Jim Heavey" <Ji*******@discussions.microsoft.com> wrote in message
news:44**********************************@microsof t.com...
I have created a console application which run fine on my workstation. I
have move the code to a shared drive and I have created a "bat" file which
will invoke the application. When I double click on this file and attempt
to
run, I get a security error. If I log on to the shared drive an run it from
there, then it runs just fine.

So what do I need to do so that I can runn the application from a shared
drive rather then having to log on to the server which owns the shared
drive?

Thanks!!

Nov 21 '05 #3
Jim,
By default shared drives are not "trusted" by the framework as any one can
place an executable on the shared drive, hence it could contain a virus...

You can use "Control Panel - Administrative Tools - Microsoft .NET Framework
Configuration" to adjust the settings.

For an overview of using the above tool see:

http://msdn.microsoft.com/library/de...figuration.asp

I would consider using Group Policy to deploy the new settings to all
desktops.

Hope this helps
Jay

"Jim Heavey" <Ji*******@discussions.microsoft.com> wrote in message
news:44**********************************@microsof t.com...
I have created a console application which run fine on my workstation. I
have move the code to a shared drive and I have created a "bat" file which
will invoke the application. When I double click on this file and attempt
to
run, I get a security error. If I log on to the shared drive an run it
from
there, then it runs just fine.

So what do I need to do so that I can runn the application from a shared
drive rather then having to log on to the server which owns the shared
drive?

Thanks!!

Nov 21 '05 #4
Hi,

It can be used in both.

Ken
------------
"Jim Heavey" <Ji*******@discussions.microsoft.com> wrote in message
news:C6**********************************@microsof t.com...
Is this for both windows and ASP.Net environments? I am running the
application in the windows environment and the provided references the
ASP.Net features...but pehaps they can be used in both environments????

"Ken Tucker [MVP]" wrote:
Hi,

Have you tried impersonation?

http://www.dotnet247.com/247referenc...28/144136.aspx

Ken
--------------
"Jim Heavey" <Ji*******@discussions.microsoft.com> wrote in message
news:44**********************************@microsof t.com...
I have created a console application which run fine on my workstation. I
have move the code to a shared drive and I have created a "bat" file which
will invoke the application. When I double click on this file and attempt
to
run, I get a security error. If I log on to the shared drive an run it
from
there, then it runs just fine.

So what do I need to do so that I can runn the application from a shared
drive rather then having to log on to the server which owns the shared
drive?

Thanks!!

Nov 21 '05 #5

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

Similar topics

28
by: grahamd | last post by:
Who are the appropriate people to report security problems to in respect of a module included with the Python distribution? I don't feel it appropriate to be reporting it on general mailing lists.
11
by: TC | last post by:
Hello All, I have recently had the pleasure of installing Norton Internet Security 2005 and finding that I can no longer create or open a web-based application in Visual Studio .Net. The IDE...
5
by: Ken Cox [Microsoft MVP] | last post by:
MS has posted this here: http://www.asp.net/faq/ms03-32-issue.aspx Fix for: 'Server Application Unavailable' Error after Applying Security Update for IE...
1
by: Earl Teigrob | last post by:
Background: When I create a ASP.NET control (User or custom), it often requires security to be set for certain functionality with the control. For example, a news release user control that is...
5
by: cdlipfert | last post by:
Our intranet is running under windows integrated security. We have domain users that want to access our intranet site via ssl vpn. SSL VPN can not authenticate against services that run under...
0
by: Charles Leonard | last post by:
I am having yet another issue with Windows Server 2003. This time, the web service (a file import web service) appears to run except for one odd message: "ActiveX component can't create object". ...
0
by: Jay C. | last post by:
Jay 3 Jan. 11:38 Optionen anzeigen Newsgroups: microsoft.public.dotnet.framework.webservices.enhancements Von: "Jay" <p.brunm...@nusurf.at> - Nachrichten dieses Autors suchen Datum: 3 Jan...
10
by: Richard MSL | last post by:
I am having problems working with .net security. I have been attempting to use the Microsoft .Net Framework 2.0 Configuration tool (version 2.0.50727.42), but it won't work for me. I have a simple...
1
by: WebServiceSecurity | last post by:
The issue involves the following technologies: - 1. .NET 2.0 Framework 2. WSE2.0 (WS-Security) 3. X.509 certificates 4. BEA Weblogic 8.1.5
0
by: Anthony Baxter | last post by:
SECURITY ADVISORY Buffer overrun in repr() for UCS-4 encoded unicode strings http://www.python.org/news/security/PSF-2006-001/ Advisory ID: PSF-2006-001 Issue Date: October 12, 2006...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
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: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.