473,385 Members | 2,210 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 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 1028
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
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...
0
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,...

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.