473,657 Members | 2,763 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

About .Net FrameWord Component AutoUpdater didnt work??

i have a winform program that need automatic upgrade.I see and follow an
article£¨http://windowsforms.net/articles/appupdater.aspx£© to build my own
program,but it didnt work.
show me a error message like following:
/*--------------------------------------------------------------------------
-------
Unable to auto-download the missing parts of the application from:
http://localhost/SampleApp_ServerSet....resources.dll

Make sure your connected to the network.If the problem persists re-install
the application.
----------------------------------------------------------------------------
---------*/

my IIS setting is right!

thanks for you help!!!!very,ve ry,thank you!
Nov 18 '05 #1
1 1229

Its been awhile but maybe this can help others.

I had a similar problem. What I discovered is that the appupdater
control was trapping resource exeptions in the application. In my
particular case I had included a graphic and an icon in my application.
When the form that used these resources loaded it would trigger the
exception. However I found that if I clicked Ok on the alert that the
form loaded anyway and it found the resource. I also examined the
resources embedded in the app execuatable and found that the resources
were there. By all accounts it should have worked but I was still
getting this dang exception. I am not sure what caused the original
exception but the way I solved the problem was to include the two files
in my project and to change their build properties to "embedded". I then
modified the form code that loaded those resouces as follows:

---->>>>replace this vvvvvvvvvvvvvvv vvvvvvv
this.pictureBox 1.Image =
((System.Drawin g.Image)(resour ces.GetObject(" pictureBox1.Ima ge")));
---->>>with this vvvvvvvvvvvvvvv
Bitmap image = new Bitmap (GetType (), "logogr-b.gif");
this.pictureBox 1.Image = image;
AND

---->>>replace this vvvvvvvvvvvvvvv vvvvvv
this.Icon =
((System.Drawin g.Icon)(resourc es.GetObject("$ this.Icon")));

---->>>>with this vvvvvvvvvvvvvvv vvvvvvvvvvv
Icon icon = new Icon(GetType(), "ball.ico") ;
this.Icon = icon;
The problem will go away.

Hope this helps. But if it doesn't you can setup you debugging
environment to trap on the exception and step through the code and see
what is going on.

--
gkochanowsky
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1393
by: Mark Broadbent | last post by:
Please guys save me from throwing my laptop throught the window grrr. No one answered my original post so here is a reworded version. I am working through some study material but have hit a brick wall. Im sure this is simple. I have a dot net component that I have imported into the COM+ catalog via regsvcs. My study text says that I need to make the dot net dll available to COM by adding it to the GAC (which I have done ....GACUTIL). ...
0
900
by: Lucrefy | last post by:
i have a winform program that need automatic upgrade.I see and follow an article£¨http://windowsforms.net/articles/appupdater.aspx£© to build my own program,but it didnt work. show me a error message like following: /*-------------------------------------------------------------------------- ------- Unable to auto-download the missing parts of the application from:...
2
1276
by: Mark Olbert | last post by:
I'm confused about the behavior of inherited WebForms under VS/NET 2003. In the Windows.Forms world, if I create a UserControl with a protected component on it, that protected component is visible (albeit locked) and accessible in any class derived from the custom control. But in ASP.NET, if I create a WebForm1 class and add, say, a DataSet component to it, it's not visible in any derived classes, even though it, too, is protected. ...
16
4542
by: LP | last post by:
Hello, I am trying to use .NET with Excel. I installed Office 2003 and selected ..NET programming suport option, so it installed all those PIA, as MS sugests. But I can not find a way to destroy Excel process, it still hangs in the taks manager' Processes as running. I am trying very simple code (see below), but Excel wont go away, I tried just about anything I could find on MSDN or by Google. Even calling WIN32 API to destroy Excel. But...
0
227
by: Sudharsan | last post by:
Hello, I posted this last week and didnt get any reply from anyone. Out team is developing a GUI Application. This application will display multiple images at a time. These images must be rotated, zoomed and do various post processing tools. One of the requirement is to play back multiple images at a time. I have few queries here,
3
1204
by: C#Newbie | last post by:
HI all, Just a simple question about c# dll. Out of curiousity, if I create a dll from c# and I want another non-.net application to use it, do I still need to include .net framework in the installation package? Thanks.
6
1513
by: Bri | last post by:
I've just started checking this out. I've got it to work alright with one exception. It is a secured MDE, so I've setup all the INI file options for it. The problem is that the UserID I setup for it to use to do the version test, seems to need more than the claimed 'minimum rights'. I haven't figured out what specifically it needs rights to, but it is somewhere between our base level (does not have access to sensitive data) and our Manager...
12
1310
by: Gilbert | last post by:
H, i'm starting with asp.net/vb.net and have some questions about arrays and collections: 1) what's the difference between: dim x() as string and dim x as array
1
1220
by: fxtao | last post by:
how to judge a node doesn't contain one attribute like <?xml version="1.0" encoding="GB2312" ?> <AutoUpdater> <folder> <file name="a.txt" date="2007-12-21 12:37" size="16K" /> <file name="b.rar" date="2008-1-12 20:30" /> <file name="c.doc" date="2004-7-5 19:10" size="245K" /> </folder>
0
8394
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8825
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8503
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8605
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5632
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4152
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4304
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1955
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1615
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.