473,734 Members | 2,788 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Job Fails - Security Issue

Hello, I have a console application which I run from a server. When I
remotely log on to the server and sumit the application it runs just fine.
When I schedule the job and use my login ID and password, the job fails when
it attempts to access a shared drive. I'm not sure why. There must be some
difference which being experience for this mapped drive when I am directly
logged on vs. when the scheduled job runs.

On the server, I have a mapped drived "D:" which is the drive which is
failing. Is this drive not mapped when the scheduled job uses my login ID
and password? What should I be looking for?
Nov 17 '05 #1
1 1184

"Jim Heavey" <Ji*******@disc ussions.microso ft.com> wrote in message
news:6F******** *************** ***********@mic rosoft.com...
Hello, I have a console application which I run from a server. When I
remotely log on to the server and sumit the application it runs just fine.
When I schedule the job and use my login ID and password, the job fails
when
it attempts to access a shared drive. I'm not sure why. There must be
some
difference which being experience for this mapped drive when I am directly
logged on vs. when the scheduled job runs.

On the server, I have a mapped drived "D:" which is the drive which is
failing. Is this drive not mapped when the scheduled job uses my login ID
and password? What should I be looking for?


Don't use mapped drives, use UNC paths to do file IO. The reason why it's
failing is that drve mappings are session bound, that means a drive is
mapped for a single logon session only, so your 'D' drive which is mapped
for your interactive session isn't 'visible' in your scheduled task even if
the logon ID is the same.

Willy.
Nov 17 '05 #2

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

Similar topics

6
4022
by: Mike | last post by:
Any help would be greatly appreciated. Based on MS KB article Q248187 (HOWTO: Impersonate a User from Active Server Pages), I developed an ActiveX DLL (using VB6.0 Enterprise SP5), and deployed to a corporate web site under NT Server 4.0 SP6a /IIS4.0, expressly to retrieve Office documents contained on the server's DASD, but outside the "view" of the web site, which uses home-grown ASP session security. Works great! However, migrating...
0
1280
by: Jason Smirnow | last post by:
I posted this to the SQL Server group but got no good responses, so I'm trying here... I have a DTS package I am kickig off from a C#.Net applcation that imports a tab delimited text file created by the C# app. I can successfully kick off the DTS package from my development machine, run the package, and everything works great. When I install the app on another machine, it successfully kicks off the DTS package, but the package fails...
36
16406
by: Thomas | last post by:
after spending countless hours trying, i give up and hope to get some help in here. on server1 i got the web myweb.com with my test.asp. in the test.asp, i'm trying to read a file from an UNC path with a FSO: Set myFile = Server.CreateObject("Scripting.FileSystemObject").GetFile("\\server2\myshare\myfile.txt") this fails with an Permission Denied. here's the deal:
2
1277
by: Niloday | last post by:
Hi All, I have COM dll developed in VB.6 that exposes a method to print a word document. The method accepts the name of the printer and the fully qualified name of the document to be printed. In the DLL, it loops through the printers collection to check if the printer name is valid and sets the requested printer as default printer. Secondly it uses late binding for Word Application and prints the document on the default printer. ...
29
3411
by: Ken Allen | last post by:
I have a number of services developed in C# (.Net), and they have been working fine for the most part. Recently someone reported that ipon occassion (originally rarely, but more frequently on some systems of late), there is an entry in the Event Log immediately after a boot indicating that the service failed to start after 30,000 milliseconds. Usually it starts fine when attempting manually after the boot. I instrumented the code to...
14
7236
by: Jasonkimberson | last post by:
Currently I am having a problem creating a windows service that monitors a mapped drive for events (using the FileSystemEventHandler). The service complies but fails to start: "The XMLWatcher service on Local Computer started and then stopped. Some services stop automatically if they have no work to do, for example, the Preformance Logs and Alerts service." The Service has no problem starting if i point the folder to be monitored to...
0
828
by: Vinod Shanbhag | last post by:
Under heavy load, wSE fails to validate the security token and fails with invalid security token issue. Does any one know how to fix this issue >
8
2261
by: VB Programmer | last post by:
I would appreciate your assistance on this ASP.NET 2.0 site.... This is the wierd problem: While accessing the built in .NET functions for 'profiling' or 'membership' an error is generated (see following 2 examples): ---- EXAMPLE 1 -------- OK --> Dim p As New ProfileCommon OK --> p = Profile.GetProfile(Me.ddlRacer.SelectedItem.Text) FAILS --> Me.lblDebug.Text = p.FirstName.ToString
0
3201
by: kkos | last post by:
I noticed the following issue posted as a double-hop issue in many discussion boards but found no answers that explain how to pass the second hop with windows auth from IIS ASPX page to remote SQL Server. Problem: -------------- I am trying to create an asp.net website with integrated windows authentication to access SQL databases. IIS resides on WinXP and SQL Server on Win2000 SRV. Both are in the same NT Domain. IIS and SQL Server...
5
1161
by: Marc Castrechini | last post by:
We are currently using impersonation with constrained delegation to run a dual server environment for ASP.NET 2.0 and SQL Server 2005. Everything is up and running great, however, we have the following issue and are not sure where to look. If a user is logged into our Application Server and is inactive for a certain amount of time (to be determined) the connection to the Application Server is still authenticated because it will serve...
0
8946
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8776
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9449
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9310
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9236
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8186
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6735
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6031
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...

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.