473,586 Members | 2,792 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MS SQL Permissions issue with VB2005 app when ran from network share, runs fine locally

Hello,

I've written a Console application in VB 2005 which parses some files and
stores the results in an MS SQL database. It runs beautifully locally, but
as soon as I stick the compiled EXE on a network share and run it either via
mapped drive or UNC it fails.

Using a Try/Catch looking at Exceptions it shows the issue is SQL
permissions. My question though is why would it matter where I executed the
EXE from... I'm logged into the system and I have full access to the
database. I am using Trusted_Connect ion=Yes in my connection string so it
uses the locally logged in user's credentials. Why are these not passed
through if the EXE is ran remotely as opposed to locally? The same PC is
processing the EXE.

Thanks ...

Alex
Oct 22 '07 #1
1 1513
"Alex" <sa*****@gmail. comwrote in
news:O#******** ******@TK2MSFTN GP04.phx.gbl:
Hello,

I've written a Console application in VB 2005 which parses some files
and stores the results in an MS SQL database. It runs beautifully
locally, but as soon as I stick the compiled EXE on a network share
and run it either via mapped drive or UNC it fails.

Using a Try/Catch looking at Exceptions it shows the issue is SQL
permissions. My question though is why would it matter where I
executed the EXE from... I'm logged into the system and I have full
access to the database. I am using Trusted_Connect ion=Yes in my
connection string so it uses the locally logged in user's credentials.
Why are these not passed through if the EXE is ran remotely as
opposed to locally? The same PC is processing the EXE.

When a .NET app is run from a UNC Path it has different permissions - this
is due to how Code Access Security (CAS) works:

http://www.15seconds.com/issue/040121.htm

Oct 22 '07 #2

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

Similar topics

7
2548
by: Kim Lots | last post by:
Hi Sorry to disturb you again but i really like to know what's the NTFS folder permissions on a "virtual directory" folder for a public webserver iis 5.x running ASP 3.0 with an Access DB on a w2k pro machine with anonymous access. Fyg this is non commercial website for neighbour members in a carpool with booking possibility. No file...
2
1381
by: brian | last post by:
I've created an asp.net application that uses vb.net code behind pages. This application runs fine on my local machine (I have IIS installed locally for testing). However, when I place the application on the destination server and attempt to run it, I receive the error message: "File or Assembly Name System or one of it's dependencies,...
2
3357
by: Rick Strahl [MVP] | last post by:
I'm having problems with installation of a Web app on my Win 2003 server. I copy up the app configure the virtual. But when I access any ASPX pages I now get: CS0016: Could not write to output file 'd:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\company_mywebapp\e792bb5e\ed91474e\nupdhhtj.dll' -- 'Access is denied. '
8
5478
by: Al Kaufman | last post by:
I have a simple console app that uses: regSubKey = <some registry key> Dim reg As RegistryKey = Registry.ClassesRoot.OpenSubKey(regSubKey) Dim path As String path = CStr(reg.GetValue(""))
2
1994
by: Kirk | last post by:
My web page needs to start a process on the server that runs as a domain user so it can access the network. I'm using web services and the new feature in .NET 2.0 that lets you start a process as a different user. The following web service works fine until I uncomment the lines setting UserName and Password. Then, Process.Start throws an...
8
13855
by: Bryan Dickerson | last post by:
The full message is: Request for permission of the type 'System.Security.Permissions.RegistryPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. It happened while trying to execute a small program, from a network share, that will tests the correct installation of some ODBC/OLE drivers. It...
12
2238
by: =?Utf-8?B?R2VyaGFyZA==?= | last post by:
I am using .Net 2.0, writing a directory on a network share using My.Computer.FileSystem.CreateDirectory. This works fine as long a USERS have full share permissions on that directory. My administrator has been unable to figure out which account to grant permissions to so that we can lock down the security and not allow everyone access. Can...
8
7694
by: jporter188 | last post by:
Hello, I am working on a project to manipulate XML files. All of the files, the code, and the output are on network drives. When I run my program I get an exception (see below). I tried giving the LocalIntranet_Zone full permissions in the .NET Framework 2.0 Configuration msc. This had no effect whatsoever. What do I need to do to fix this?...
3
4432
by: palepimp | last post by:
Hello all, I have searched far and wide for a solution to my issue. In short, here is the problem: 1. 3 PC's enter data into an Access 2003 database (PC's are running Vista w/ Office 2007 pro). The database has been used for a long time and we haven't upgraded it to a 2007 version database. 2. One of the PC's hosts the "master"...
0
7908
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...
0
7836
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...
0
8336
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...
0
8212
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6606
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...
0
5389
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...
0
3835
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...
1
1447
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1175
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.