Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Setup / February 2008

Tip: Looking for answers? Try searching our database.

oneclick deployment - VS2008 versus VS2005

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jimmer - 11 Feb 2008 15:46 GMT
I have a C# fulltrust application that uses one-click deployment,
When I build it and deploy in VS2005, it installs and runs fine in XP and in
Vista.
When I build it and deploy exactly the same thing in VS2008, it runs fine in
XP, but in Vista it installs and then silently refuses to run unless I turn
off Vista UAC.

I've diffed all of the sources and only find 3 files with differences after
conversion for VS2008 (solution and C# project settings). Nothing in the
source differences looks like it would cause this problem.  

I can deploy the two examples to a tempory public website if that helps
diagnose what is happening.

Questions:
1. How can I see what is happening when the installed app silently refuses
to start with UAC turned on?
2. How can I use VS2008 and still do oneclick full-trust deployments?

Thanks,
Jim
Steven Cheng[MSFT] - 12 Feb 2008 06:20 GMT
Hi Jim,

As for the one click deployment, do you mean the .NET click-once winform
application deployment model?   As for windows vista UAC related deployment
issue, based on my experience, one thing is that you'll need to embed an
application manifest for your application and put UAC execution level info
in it. This will let the VISTA know what kind of privilege will your
appliction require at runtime.  

#ClickOnce Deployment on Windows Vista
http://msdn2.microsoft.com/en-us/library/bb384098.aspx

Does your click once application access some certain resource that may
require elevation of the privilege token. Or have you checked to see
whether the embeded manifest (the UAC level declared in it) varies from the
VS 2005 built on and VS 2008 built one.

For general test, you can also try building a simple click-once project(do
not put much complex code as your original one) and deploy through the two
means to see whether it will suffer the same issue.

Below is a general troubleshooting reference for vista UAC:

#Troubleshooting UAC
http://msdn2.microsoft.com/en-us/library/bb756955.aspx

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead



==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.



Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.

==================================================
   

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------

>From: =?Utf-8?B?SmltbWVy?= <JimmerNet@newsgroup.nospam>
>Subject: oneclick deployment - VS2008 versus VS2005
>Date: Mon, 11 Feb 2008 07:46:01 -0800

>I have a C# fulltrust application that uses one-click deployment,
>When I build it and deploy in VS2005, it installs and runs fine in XP and in
[quoted text clipped - 17 lines]
>Thanks,
>Jim
Steven Cheng[MSFT] - 14 Feb 2008 10:03 GMT
Hi Jim,

Have you got any progress on this issue? If there is anything else we can  
help, welcome to post here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
>From: stcheng@online.microsoft.com (Steven Cheng[MSFT])
>Organization: Microsoft
>Date: Tue, 12 Feb 2008 06:20:13 GMT
>Subject: RE: oneclick deployment - VS2008 versus VS2005

>Hi Jim,
>
[quoted text clipped - 82 lines]
>>Thanks,
>>Jim

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.