472,994 Members | 1,891 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,994 software developers and data experts.

Vista development, the do's and don't???

OK, it is finally time for me to clean up my application so that it
will run on Vista. Does Microsoft have a web page out there somewhere
that will point me in all the right directions?

One thing the C# program is doing is starting a web server that is
trying to connect to port 80. Right now Vista is throwing up a warning
about the web server, how might I stop that from happening? Conceding
VS2008 needs to run with admin privileges and it does not prompt you,
I am assuming there is a way.
Jul 19 '08 #1
6 1018
MC
"Cartoper" <ca******@gmail.comwrote in message
news:8f**********************************@56g2000h sm.googlegroups.com...
OK, it is finally time for me to clean up my application so that it
will run on Vista. Does Microsoft have a web page out there somewhere
that will point me in all the right directions?
Mostly the things that have been good practices all along: Don't write in
Program Files at run time; instead write in the per-user Application Data
area. Don't make unwarranted assumptions about where directories are; ask
the OS. Some tips:
http://www.covingtoninnovations.com/...ex.html#040401
One thing the C# program is doing is starting a web server that is
trying to connect to port 80. Right now Vista is throwing up a warning
about the web server, how might I stop that from happening? Conceding
VS2008 needs to run with admin privileges and it does not prompt you,
I am assuming there is a way.
Web server or web client? Can't the user simply give it permission the
first time Vista asks? But in any case I leave this for others to answer.
You may be talking about Windows Firewall rather than Vista itself.
Jul 19 '08 #2
MC
>One thing the C# program is doing is starting a web server that is
trying to connect to port 80. Right now Vista is throwing up a warning
about the web server, how might I stop that from happening? Conceding
VS2008 needs to run with admin privileges and it does not prompt you,
I am assuming there is a way.

Web server or web client? Can't the user simply give it permission the
first time Vista asks? But in any case I leave this for others to answer.
You may be talking about Windows Firewall rather than Vista itself.
By the way, the answer has to be: the user *must* give permission after your
program is installed on his computer. (I think he can say "yes, and don't
ask me again.") If you could get around this, it would be a security hole.
Jul 19 '08 #3
Web server or web client? *

Web Server that listens on Port 80.
Can't the user simply give it permission the first time Vista asks?
They can, but my C# program is starting the web server and not when
the C# program first starts.
By the way, the answer has to be: the user *must* give permission after your
program is installed on his computer. *(I think he can say "yes, and don't
ask me again.") *If you could get around this, it would be a security hole.
Well, Vistual Studio 2008 gets around it. I quickly discovered that
Visual Studio 2005 always needs the user to run it as an Administrator
on Vista, which is logical because of the debugging, but Visual Studio
2008 does NOT. During the install of VS2008, it asks the user to run
with Administrator permissions. I was simply hoping to be able to do
the same thing as Microsoft;)
Jul 20 '08 #4
Cartoper wrote:
>Web server or web client?

Web Server that listens on Port 80.
You'll need to write a service.
>Can't the user simply give it permission the first time Vista asks?

They can, but my C# program is starting the web server and not when
the C# program first starts.
>By the way, the answer has to be: the user *must* give permission after your
program is installed on his computer. (I think he can say "yes, and don't
ask me again.") If you could get around this, it would be a security hole.

Well, Vistual Studio 2008 gets around it. I quickly discovered that
Visual Studio 2005 always needs the user to run it as an Administrator
on Vista, which is logical because of the debugging, but Visual Studio
2008 does NOT. During the install of VS2008, it asks the user to run
with Administrator permissions. I was simply hoping to be able to do
the same thing as Microsoft;)
VS2008 doesn't do anything clever there - it's a normal app. You don't
need admin rights to debug programs running as the same user as you.

Alun Harford
Jul 20 '08 #5
On Jul 20, 1:07*pm, Alun Harford <devn...@alunharford.co.ukwrote:
Cartoper wrote:
Web Server that listens on Port 80.

You'll need to write a service.
Don't you need admin rights to start/stop services?
VS2008 doesn't do anything clever there - it's a normal app. You don't
need admin rights to debug programs running as the same user as you.
Then why does VS2005 require you run it as an administrator?
Jul 21 '08 #6
On Jul 20, 1:07*pm, Alun Harford <devn...@alunharford.co.ukwrote:
Cartoper wrote:
Web Server that listens on Port 80.

You'll need to write a service.
Don't you need admin rights to start/stop services?
VS2008 doesn't do anything clever there - it's a normal app. You don't
need admin rights to debug programs running as the same user as you.
Then why does VS2005 require you run it as an administrator?

Cartoper
Jul 24 '08 #7

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

Similar topics

1
by: m | last post by:
We have a rather large application, perhaps a million lines of code doing everything from database access to gui to painting items on the screen, all built in VC++/MFC. There are some heavy...
0
by: salad | last post by:
I took the Bart down to San Francisco and joined a couple thousand other nerds to watch the Vista/Office launch. The receptionist was quite pleasant and getting the event packets a smooth...
6
by: j2ee.singh | last post by:
Hi, I'm looking to buy a new laptop primarily to learn & practice .NET and C#. My Question is: Is there any requirement for .NET and C# in terms of the following Operating Systems: -...
62
by: Tony Ciconte | last post by:
I have a rather complex commercial Acc2003 application (tab controls, 50K+ lines of VBA code, etc.) that will not run well at all on Windows Vista Ultimate. I have seen posts indicating that...
4
by: Viviana Vc | last post by:
Hi all, I've read the WindowsVistaUACDevReqs.doc documentation and I have done different small tests on Vista to understand the bahaviour and now I have a few questions. 1) If I create a...
11
by: =?Utf-8?B?VG9tIE5vd2Fr?= | last post by:
I wanted to know if Windows Vista Home Premium edition comes with some sort of web server, so I can continue to do web development using Visual Studio 2005.
1
by: Brendon Bezuidenhout | last post by:
Evening, I have a slight erk with the ComboBoxRenderer running under Vista and was hoping someone could shed some light on this for me. I've created a custom control that inherits from Button...
9
by: Lloyd Sheen | last post by:
For all those who don't think that a recursive search of files in folders is a good thing in the Microsoft.VisualBasic.FileIO.FileSystem namespace listen to this. I am reorg my mp3 collection. ...
1
by: techtonator | last post by:
Hi, I have a laptop with Vista Home Premium 64 bit installed. It also has a recovery partition. Now since this can be used to restore the system back to its factory state, HP/Microsoft didn't...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...
3
SueHopson
by: SueHopson | last post by:
Hi All, I'm trying to create a single code (run off a button that calls the Private Sub) for our parts list report that will allow the user to filter by either/both PartVendor and PartType. On...

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.