Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Application Identity not set
 

Application Identity not set

i just started to get InvalidDeploymentExceptions out of nowhere. each time i call 'Application.LocalUserAppDataPath', the exception box pops up.

the 'localuserappDataPath' is returned nonetheless.

how can get rid of this? can i at least get rid of the exception message box? i get about 20 of them each time a run the app, which is extremely annoying.

WM_THX
thomas woelfer
thomas woelfer  Saturday, September 17, 2005 1:29 PM
If you still have the problem can you pass a code snippet so we can debug.
I assume the applicaiton is deployed by ClickOnce.
what is the .Net run time being used ?
By any chance have you updated the .Net version on your client and using the app the built and published with the older run time.
Is it possible to republish and use the app with the newer run time and you use the the same run time on your client too ?
InvalidDeploymentException usually comes when the deployment is syntactically/semantically perceived incorrect by ClickOnce that is on your client machine
kanthb  Wednesday, September 21, 2005 6:41 PM
If you still have the problem can you pass a code snippet so we can debug.
I assume the applicaiton is deployed by ClickOnce.
what is the .Net run time being used ?
By any chance have you updated the .Net version on your client and using the app the built and published with the older run time.
Is it possible to republish and use the app with the newer run time and you use the the same run time on your client too ?
InvalidDeploymentException usually comes when the deployment is syntactically/semantically perceived incorrect by ClickOnce that is on your client machine
kanthb  Wednesday, September 21, 2005 6:41 PM
yes i still have the problem, and sorry, no code 'snippet'. (this is a rather largish solution with 45+ project etc.etc.)

and no, the application is _NOT_ deployed by ClickOnce. this is a standard windows forms application, and it has never been deployed anywhere - it's just beeing run inside the debugger. i have never done anything to make it use clickOnce and we also do not intend to do this in future.

i'm using the .net runtime that came with rc1.

this happens on a machine that has a fresh install of xp x64 and rc1. that's it. the app has never been build against version 1.1 of the runtime on that machine.

i don't think i can 'republish', because i haven't published before.

any other ideas?

WM_THX
thomas woelfer
thomas woelfer  Wednesday, September 21, 2005 6:55 PM

Is this issue resolved?

Thanks,

Varun Gupta  Saturday, May 05, 2007 1:49 AM

You can use google to search for other answers

Custom Search

More Threads

• How to get installation directory path?
• Application not found
• web deployement of a winform containing an activex
• How to create Trail version setups using MSI (Visual Studio)?
• Publisher info in ClickOnce manifest
• .NET 3.5 SP1 Prerequisite understood but not enforced (kind of).. why?
• Plz help. Click Once is not updating my app
• How do you publish an app. using VBE 2008 to a CD?
• System.deployment.dll Version 2.0.50727.103
• Problem running Setup MSI from C# project on x86 machines, but it works on x64 machines.