471,350 Members | 2,030 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,350 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 989
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by m | last post: by
reply views Thread by salad | last post: by
11 posts views Thread by =?Utf-8?B?VG9tIE5vd2Fr?= | last post: by
1 post views Thread by Brendon Bezuidenhout | last post: by
9 posts views Thread by Lloyd Sheen | last post: by
reply views Thread by XIAOLAOHU | last post: by

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.