Click here to Skip to main content
15,908,015 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: WebRequest or ??? Pin
Patrick Etc.8-Jan-08 12:08
Patrick Etc.8-Jan-08 12:08 
Questionsource of the event log associated to a windows service Pin
Mohammed El-Afifi8-Jan-08 1:11
professionalMohammed El-Afifi8-Jan-08 1:11 
GeneralRe: source of the event log associated to a windows service Pin
led mike8-Jan-08 6:47
led mike8-Jan-08 6:47 
AnswerQuickest/Best way to get lots of data into SQL/Acess etc... Pin
DrTip7-Jan-08 22:31
DrTip7-Jan-08 22:31 
GeneralRe: Quickest/Best way to get lots of data into SQL/Acess etc... Pin
Dave Kreskowiak10-Jan-08 8:53
mveDave Kreskowiak10-Jan-08 8:53 
GeneralRe: Quickest/Best way to get lots of data into SQL/Acess etc... Pin
DrTip10-Jan-08 10:04
DrTip10-Jan-08 10:04 
GeneralRe: Quickest/Best way to get lots of data into SQL/Acess etc... [modified] Pin
Dave Kreskowiak10-Jan-08 10:11
mveDave Kreskowiak10-Jan-08 10:11 
GeneralRunning .NET applications on Vista without admin privileges [modified] Pin
Patrick Etc.7-Jan-08 9:51
Patrick Etc.7-Jan-08 9:51 
I was going to ask this in the Vista forum but that appeared to refer more to the Vista win API than to how the .NET framework runs on Vista, so I'm asking here..

Maybe my Google-fu sucks, but I can't seem to find any pointers on how to write applications to ensure they'll run on Vista without elevated privileges.

In particular, I'm interested in the following things that will trigger the elevated permissions system:

* Which P/Invoke functions to avoid
* Which .NET namespaces to avoid (the Cryptography namespace forces elevated privileges?!?!?!?!?!?!)
* Which files and directories to avoid (I know, \Program Files\ and %WINDIR%\system. Any others?)

Also, a bonus would be some kind of tool that will tell me specifically which of these areas will cause Vista to refuse to run my application. I found this tool[^], but all that does is report errors from the low-level operating system API that mean very little to me.


Fundamentally my issue is that I'm writing an application that RUNS fine on XP, INSTALLS fine on Vista using a VS2005 setup project, (but it DOES request elevated permissions), but it will not RUN on Vista (UAC does ask to allow the program to run). And even when the user selects ALLOW, the program still crashes.

For the life of me I can't seem to pinpoint why. The best I seem to be able to find are recommendations of embedding a manifest file to demand admin privileges. Well, that isn't what I want to do. I want my application to run under normal user permissions, but I can't figure out WHAT in my application is triggering the request to elevated privileges.

Pointers are appreciated... this is pretty aggravating.


It has become appallingly obvious that our technology has exceeded our humanity. - Albert Einstein

modified on Monday, January 07, 2008 4:03:11 PM

GeneralRe: Running .NET applications on Vista without admin privileges Pin
Mark Salsbery7-Jan-08 10:25
Mark Salsbery7-Jan-08 10:25 
GeneralRe: Running .NET applications on Vista without admin privileges Pin
Patrick Etc.7-Jan-08 11:13
Patrick Etc.7-Jan-08 11:13 
GeneralRe: Running .NET applications on Vista without admin privileges Pin
Mike Dimmick7-Jan-08 11:17
Mike Dimmick7-Jan-08 11:17 
GeneralRe: Running .NET applications on Vista without admin privileges Pin
Patrick Etc.8-Jan-08 8:08
Patrick Etc.8-Jan-08 8:08 
QuestionUse of .Net 2.0 class in MSVS 2003 project Pin
boemie7-Jan-08 4:36
boemie7-Jan-08 4:36 
GeneralRe: Use of .Net 2.0 class in MSVS 2003 project Pin
Luc Pattyn7-Jan-08 6:44
sitebuilderLuc Pattyn7-Jan-08 6:44 
GeneralRe: Use of .Net 2.0 class in MSVS 2003 project Pin
boemie7-Jan-08 19:49
boemie7-Jan-08 19:49 
GeneralApplication/Configuration Data Pin
Dave Moor (the real one)7-Jan-08 4:21
Dave Moor (the real one)7-Jan-08 4:21 
GeneralRe: Application/Configuration Data Pin
Mark Salsbery7-Jan-08 9:38
Mark Salsbery7-Jan-08 9:38 
GeneralBackward Compatibility in Visual Studio .NET 2003 Pin
Ashraf Tirawi6-Jan-08 23:40
Ashraf Tirawi6-Jan-08 23:40 
QuestionHow to copy a reference type ? Pin
devboycpp6-Jan-08 21:15
devboycpp6-Jan-08 21:15 
AnswerRe: How to copy a reference type ? Pin
Urs Enzler7-Jan-08 3:08
Urs Enzler7-Jan-08 3:08 
GeneralThreading in c# Pin
Prabhat0036-Jan-08 17:36
Prabhat0036-Jan-08 17:36 
GeneralRe: Threading in c# Pin
Steppo7-Jan-08 0:52
Steppo7-Jan-08 0:52 
GeneralRe: Threading in c# Pin
Prabhat0037-Jan-08 17:42
Prabhat0037-Jan-08 17:42 
GeneralRe: Threading in c# Pin
Luc Pattyn7-Jan-08 18:04
sitebuilderLuc Pattyn7-Jan-08 18:04 
GeneralRe: Threading in c# Pin
Prabhat0037-Jan-08 18:37
Prabhat0037-Jan-08 18:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.