473,472 Members | 2,224 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

ClickOnce how to set: processorArchitecture="msil" ?

2 New Member
Hello,

I am using Visual Studio 2008 to build and deploy a C# ClickOnce Application for .NET 3.5. Yesterday, I had to find out that all a sudden, my ClickOnce deployment breaks. The users now get the error message that the identity of the application changed.

I already googled a lot and found out what belongs to the identity of the application. Comparing the new ".application" file in the publishing location to a backup of an old one, the only thing that changed is the processorArchitecture. It used to be "msil" and now it is "x86".

I did not change it on purpose nor should there be any reason why it must now be "x86" but I simply don't manage to change it back.

I compared the Build tab settings for the last deployment to the ones for the current deployment.
"Target Plattform" is in both cases "Any CPU" and also in the configuration manager all the project of the solution are set to (Release)"Any CPU".

The settings might have been different in between, because I accidentally changed something - but now they should be back to what they were, however the output of the ".application" file is still changed.

Do you have any clues where I need to check for additional settings ? Or is there a way (from withing Visual Studio or otherwise) the set the processorArchitecture back to "msil" ???

Cheers, Christian
Aug 15 '10 #1
2 10426
Alex Papadimoulis
26 Recognized Expert New Member
This happened to me at least once or twice.

I wish I could be more specific as to how or why, but as I recall, the problem was that the project file got munged somehow. Looking at the XML of the .csproj, there were a whole bunch of publishing settings that were added, but that I couldn't change/modify from the UI.

The way that I solved it was reverting to a previons version of the .csproj file and re-adding in whatever I needed to add in.

Are you using ClickOnce through Visual Studio, or are you generating the manifest files through mage.exe?
Aug 15 '10 #2
CRS1
2 New Member
Thanks a million for pointing me at the .csproj file - I already looked at this file, but the changes were so minor, I simply didnt't realized that they were essential. In my case, the fix was quite easy. The .csproj file has several sections like:

Expand|Select|Wrap|Line Numbers
  1.   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
  2.     <DebugType>none</DebugType>
  3.     <Optimize>true</Optimize>
  4.     <OutputPath>bin\Release\</OutputPath>
  5.     <DefineConstants>TRACE</DefineConstants>
  6.     <ErrorReport>prompt</ErrorReport>
  7.     <WarningLevel>4</WarningLevel>
  8.     <PlatformTarget>AnyCPU</PlatformTarget>
  9.   </PropertyGroup>
  10.  
The relevant section is the one you select in Visual Studio by Configuration | Platform either in the Build tab of the Project or in the Standard Toolbar.

Here somehow this line got added here:
<PlatformTarget>AnyCPU</PlatformTarget>

My wild guess would be that any changes you make to be Plattform setting causes the adding of such a line. You can change the <PlatformTarget> via Visual Studio's Build settings, but it seems, you cannot delete it - this is what you have to do manually in the .csproj file.

ps. I don't use mage - just Visual Studio's dialogs.
Aug 16 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Steve Franks | last post by:
I'm using Visual Studio 2005 RC and cannot figure out how to produce a "release" build. Am I doing something wrong? I'm wondering if perhaps MS locked out the ability to produce a release build...
7
by: relient | last post by:
Question: Why can't you access a private inherited field from a base class in a derived class? I have a *theory* of how this works, of which, I'm not completely sure of but makes logical sense to...
3
by: filip.norrgard | last post by:
Hi All! I've been developing an ASP.Net 2.0 web application using the Visual Studio 2005 tools. Currently datagrids on a page are filled with data from a dataset (a .xsd file in the "project")...
3
by: John | last post by:
Hi Is there an easy way to allow user to change application settings at run time short of editing the configuration file manually? Thanks Regards
1
by: John | last post by:
Hi I am looking for an editor that will allow a user to edit application configuration easily and I have found below; http://www.codeproject.com/KB/cs/configeditor.aspx Unfortunately it...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.