I had my app using the
Windows.Forms.Application.EnableVisualStyles()
Windows.Forms.Application.DoEvents()
And I was receiving some errors, so I want to go to a manifest file, but I
copied one off a newsgroup -- see below
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-cÂ*om:asm.v1" manifestVersion="1.0">
<assemblyIdentity
version="1.0.0.0"
processorArchitecture="X86"
name="MyApp"
type="win32"
/>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.CommonÂ*-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1Â*df"
language="*"
/>
</dependentAssembly>
</dependency>
</assembly>
When you have this as a file do the following in the VS .NET IDE:
1. Select File>Open File
2. Open your executable file
3. Right click the parent node and select 'Add Resource'
4. Choose Import and select the manifest file
5. When the box appears asking for the type of resource type RT_MANIFEST
6. The resource identifier needs to be 1, so select '101' in the
RT_MANIFEST folder and change it to 1
I followed these steps and when I try to run my application in debug or
right from the exe I get.
"This application has failed to start because the application configuration
is incorrect. Reinstalling the application may fix this problem.
Any help would be appreciated. 12 1528
Just name your manifest file the same name as your exe file except add
a .manifest extension to it. So if your exe is name Form1.exe, your
manifest file should be named Form1.exe.manfiest and should reside in
the same directory as the exe file. When you add it as a resource to
the exe, you are embedding it in the exe, which I have done before and
haven't had any problems.
Just name your manifest file the same name as your exe file except add
a .manifest extension to it. So if your exe is name Form1.exe, your
manifest file should be named Form1.exe.manfiest and should reside in
the same directory as the exe file. When you add it as a resource to
the exe, you are embedding it in the exe, which I have done before and
haven't had any problems.
If you read my explaination I did all that and I'm coming up with an error.
So I need some help with what I put in my manifest file and the directions I
followed to embed the manifest file with the exe.
"Jamin Guy" wrote: Just name your manifest file the same name as your exe file except add a .manifest extension to it. So if your exe is name Form1.exe, your manifest file should be named Form1.exe.manfiest and should reside in the same directory as the exe file. When you add it as a resource to the exe, you are embedding it in the exe, which I have done before and haven't had any problems.
If you read my explaination I did all that and I'm coming up with an error.
So I need some help with what I put in my manifest file and the directions I
followed to embed the manifest file with the exe.
"Jamin Guy" wrote: Just name your manifest file the same name as your exe file except add a .manifest extension to it. So if your exe is name Form1.exe, your manifest file should be named Form1.exe.manfiest and should reside in the same directory as the exe file. When you add it as a resource to the exe, you are embedding it in the exe, which I have done before and haven't had any problems.
MasterBlaster, If you read my explaination I did all that and I'm coming up with an error.
Where, when you want help, than this are really the replies you would have
to give.
Cor
MasterBlaster, If you read my explaination I did all that and I'm coming up with an error.
Where, when you want help, than this are really the replies you would have
to give.
Cor
Hi MasterBlaster,
Thanks for your post.
Do you use .Net Framework 1.1? Can you show us which error generate when
you are using EnableVisualStyles() method?
Do you use a Appname.exe.config file in your project? Normally, this
problem may be caused by placing encoding="Windows-1252" statement in your
application config file, which is conflicted with the encoding setting in
the manifest file. So we should just remove this encoding statement. This
may get rid of your problem.
Hope this helps.
Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
Hi MasterBlaster,
Thanks for your post.
Do you use .Net Framework 1.1? Can you show us which error generate when
you are using EnableVisualStyles() method?
Do you use a Appname.exe.config file in your project? Normally, this
problem may be caused by placing encoding="Windows-1252" statement in your
application config file, which is conflicted with the encoding setting in
the manifest file. So we should just remove this encoding statement. This
may get rid of your problem.
Hope this helps.
Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
Try putting "Microsoft.Winweb" in front of your applications name (I assume
Myapp is the name of your .exe):
<assemblyIdentity
version="1.0.0.0"
processorArchitecture="X86"
name="Microsoft.Winweb.Myapp"
type="win32"
/>
As someone else has pointed out, you do not need to embed the manifest file
in your exe. You can just rename the manifest file to Myapp.exe.manifest and
deploy it in the same directory as your exe.
HTH, Jakob.
-- http://www.dotninjas.dk http://www.powerbytes.dk
"MasterBlaster" wrote: If you read my explaination I did all that and I'm coming up with an error. So I need some help with what I put in my manifest file and the directions I followed to embed the manifest file with the exe.
"Jamin Guy" wrote:
Just name your manifest file the same name as your exe file except add a .manifest extension to it. So if your exe is name Form1.exe, your manifest file should be named Form1.exe.manfiest and should reside in the same directory as the exe file. When you add it as a resource to the exe, you are embedding it in the exe, which I have done before and haven't had any problems.
Try putting "Microsoft.Winweb" in front of your applications name (I assume
Myapp is the name of your .exe):
<assemblyIdentity
version="1.0.0.0"
processorArchitecture="X86"
name="Microsoft.Winweb.Myapp"
type="win32"
/>
As someone else has pointed out, you do not need to embed the manifest file
in your exe. You can just rename the manifest file to Myapp.exe.manifest and
deploy it in the same directory as your exe.
HTH, Jakob.
-- http://www.dotninjas.dk http://www.powerbytes.dk
"MasterBlaster" wrote: If you read my explaination I did all that and I'm coming up with an error. So I need some help with what I put in my manifest file and the directions I followed to embed the manifest file with the exe.
"Jamin Guy" wrote:
Just name your manifest file the same name as your exe file except add a .manifest extension to it. So if your exe is name Form1.exe, your manifest file should be named Form1.exe.manfiest and should reside in the same directory as the exe file. When you add it as a resource to the exe, you are embedding it in the exe, which I have done before and haven't had any problems.
I'm all set I figured it out last night.
Thanks
"Cor Ligthert" wrote: MasterBlaster,
If you read my explaination I did all that and I'm coming up with an error.
Where, when you want help, than this are really the replies you would have to give.
Cor
I'm all set I figured it out last night.
Thanks
"Cor Ligthert" wrote: MasterBlaster,
If you read my explaination I did all that and I'm coming up with an error.
Where, when you want help, than this are really the replies you would have to give.
Cor This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Full Decent |
last post by:
Hey again!
In my quest to make proper use of OO PHP I would like to ask for a
critique of the current method of doing themes in the Camera Life
(http://fdcl.sf.net) software and see if an OO...
|
by: Sean |
last post by:
My experience now working with master pages on and off for 6 months is that
they can be very dangerous when working with themes.
One example in particular is the changes I made to my banner menu...
|
by: Clinton Farleigh |
last post by:
Hi,
I was going to ask a question, but I think I've answered it so now I am
going to rant about how crappy ASP.NET themes are instead.
As I've indicated above, my problem today is with themes....
|
by: WT |
last post by:
Hello,
I need to list all available themes for a .NET app, is there any API in
..NET2 for this or should I explore the folder files using IO methods ?
Thanks for indication
CS
|
by: New Bee |
last post by:
Hi,
I have been looking at Themes and Skins today and now resonably understand
how they work at a ground level. But I have a couple of questions.
1. ) StyleSheetTheme
I dont understand...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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
|
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...
|
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,...
|
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...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
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...
|
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...
| |