473,320 Members | 2,024 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Custom downloader - UNC

Hi,

I am using the Updater Application Block Version 2.

I am trying to follow the instructions at
http://msdn.microsoft.com/library/de...ary/en-us/dnpa...
to build a custom downloader (UNC )

So far I was not successfull.
Firstly,
As it was stated I added
<includeTypes>
<includeType name="UNCDownloader"
type="MyApp.Downloaders.UNCDownloaderProviderData, MyApp" />
</includeTypesto app.config. But I am getting "Unrecognized element
IncludeTypes" error.

Secondly,
it says section
<downloaders>
<downloader xsi:type="UNCDownloaderProviderData"
name="UNCDownloader">
</downloader>
</downloaders>
should be added to Updaterconfiguration.config file. However I do not
have this file. Should I create it?

ServerManifest.xml
Looks like
....
<files base="\\MyApp\Server"
hashComparison="Yes" hashProvider="MD5CryptoServiceProvider" >
<file hash="a5aqUnlIyzu670VDJW8lSwXJdJM=" source="MyApp.exe"
transient="No" />
<file hash="0UOXi/+fNtBihjD9Vv8WS+1NBCo="
source="MyApp.Forms.dll" transient="No" />
</files>
<downloader name="UNCDownloader" />
....

App.Config file

....
<UpdaterConfiguration defaultDownloader="UNCDownloader"
applicationId="{345E1AD7-9ABA-432f-A458-24BABA556908}"
manifestUri="http://localhost/Servermanifest.xml">
<includeTypes>
<includeType name="UNCDownloader"
type="MyApp.UNCDownloaderProviderData, MyApp" />
</includeTypes>

</UpdaterConfiguration>
....
Has anybody had any idea what it can be wrong here...
Thanks in advance,

Olgu.

Dec 11 '06 #1
4 2136
Give a full msdn link.

chanmm

<ol********@yahoo.comwrote in message
news:11*********************@73g2000cwn.googlegrou ps.com...
Hi,

I am using the Updater Application Block Version 2.

I am trying to follow the instructions at
http://msdn.microsoft.com/library/de...ary/en-us/dnpa...
to build a custom downloader (UNC )

So far I was not successfull.
Firstly,
As it was stated I added
<includeTypes>
<includeType name="UNCDownloader"
type="MyApp.Downloaders.UNCDownloaderProviderData, MyApp" />
</includeTypesto app.config. But I am getting "Unrecognized element
IncludeTypes" error.

Secondly,
it says section
<downloaders>
<downloader xsi:type="UNCDownloaderProviderData"
name="UNCDownloader">
</downloader>
</downloaders>
should be added to Updaterconfiguration.config file. However I do not
have this file. Should I create it?

ServerManifest.xml
Looks like
...
<files base="\\MyApp\Server"
hashComparison="Yes" hashProvider="MD5CryptoServiceProvider" >
<file hash="a5aqUnlIyzu670VDJW8lSwXJdJM=" source="MyApp.exe"
transient="No" />
<file hash="0UOXi/+fNtBihjD9Vv8WS+1NBCo="
source="MyApp.Forms.dll" transient="No" />
</files>
<downloader name="UNCDownloader" />
...

App.Config file

...
<UpdaterConfiguration defaultDownloader="UNCDownloader"
applicationId="{345E1AD7-9ABA-432f-A458-24BABA556908}"
manifestUri="http://localhost/Servermanifest.xml">
<includeTypes>
<includeType name="UNCDownloader"
type="MyApp.UNCDownloaderProviderData, MyApp" />
</includeTypes>

</UpdaterConfiguration>
...
Has anybody had any idea what it can be wrong here...
Thanks in advance,

Olgu.
Dec 13 '06 #2
Here is the link.
http://msdn2.microsoft.com/en-us/library/ms978557.aspx

I get an error in the following section. ConfigurationNamespace should
be Configuration. But I also have problem with TypeName.

Thanks for in advance. I really need to make this work.
Olgu.

[XmlRoot("downloader",
Namespace=ApplicationUpdaterSettings.Configuration Namespace )]
public sealed class UNCDownloaderProviderData : DownloadProviderData
{
public UNCDownloaderProviderData()
{
}

public override string TypeName
{
get { return typeof( UNCDownloader ).AssemblyQualifiedName; }
set {}
}

ServerManifest looks like

<application applicationId="{215E1AD7-9ABA-432f-A952-24BABA556850}">
<entryPoint file="ExeName.exe" />
<location>C:\Client</location>
</application>
<files base="C:\Server"
hashComparison="Yes" hashProvider="MD5CryptoServiceProvider" >
<file hash="a5aqUnlIyzu670VDJW8lSwXJdJM=" source="ExeName.exe"
transient="No" />
<file hash="0UOXi/+fNtBihjD9Vv8WS+1NBCo="
source="ExeName.Forms.dll" transient="No" />
</files>
<downloader name="UNCDownloader" />
<activation>
<tasks>
<task name="WaitForApplicationExitProcessor"
type="Microsoft.ApplicationBlocks.Updater.Activati onProcessors.WaitForApplicationExitProcessor,
Microsoft.ApplicationBlocks.Updater.ActivationProc essors"/>
<task name="ApplicationDeployProcessor"
type="Microsoft.ApplicationBlocks.Updater.Activati onProcessors.ApplicationDeployProcessor,
Microsoft.ApplicationBlocks.Updater.ActivationProc essors"/>
</tasks>
</activation>
</manifest>

......
App.config
.....
<UpdaterConfiguration defaultDownloader="UNCDownloader"
applicationId="{215E1AD7-9ABA-432f-A952-24BABA556850}"
manifestUri="C:\Server\ServerManifest.xml">
<downloaders>
<add name="UNCDownloader"
type="ExeName.Forms.ManualUpdater.UNCDownloader,
ExeName.Forms.ManualUpdater"
/>
</downloaders>
.....

Chan Ming Man wrote:
Give a full msdn link.

chanmm

<ol********@yahoo.comwrote in message
news:11*********************@73g2000cwn.googlegrou ps.com...
Hi,

I am using the Updater Application Block Version 2.

I am trying to follow the instructions at
http://msdn.microsoft.com/library/de...ary/en-us/dnpa...
to build a custom downloader (UNC )

So far I was not successfull.
Firstly,
As it was stated I added
<includeTypes>
<includeType name="UNCDownloader"
type="MyApp.Downloaders.UNCDownloaderProviderData, MyApp" />
</includeTypesto app.config. But I am getting "Unrecognized element
IncludeTypes" error.

Secondly,
it says section
<downloaders>
<downloader xsi:type="UNCDownloaderProviderData"
name="UNCDownloader">
</downloader>
</downloaders>
should be added to Updaterconfiguration.config file. However I do not
have this file. Should I create it?

ServerManifest.xml
Looks like
...
<files base="\\MyApp\Server"
hashComparison="Yes" hashProvider="MD5CryptoServiceProvider" >
<file hash="a5aqUnlIyzu670VDJW8lSwXJdJM=" source="MyApp.exe"
transient="No" />
<file hash="0UOXi/+fNtBihjD9Vv8WS+1NBCo="
source="MyApp.Forms.dll" transient="No" />
</files>
<downloader name="UNCDownloader" />
...

App.Config file

...
<UpdaterConfiguration defaultDownloader="UNCDownloader"
applicationId="{345E1AD7-9ABA-432f-A458-24BABA556908}"
manifestUri="http://localhost/Servermanifest.xml">
<includeTypes>
<includeType name="UNCDownloader"
type="MyApp.UNCDownloaderProviderData, MyApp" />
</includeTypes>

</UpdaterConfiguration>
...
Has anybody had any idea what it can be wrong here...
Thanks in advance,

Olgu.
Dec 14 '06 #3
Here is the link.
http://msdn2.microsoft.com/en-us/library/ms978557.aspx

I get an error in the following section. ConfigurationNamespace should
be Configuration. But I also have problem with TypeName.

Thanks in advance. I really need to make this work.
Olgu.

[XmlRoot("downloader",
Namespace=ApplicationUpdaterSettings.Configuration Namespace )]
public sealed class UNCDownloaderProviderData : DownloadProviderData
{
public UNCDownloaderProviderData()
{
}

public override string TypeName
{
get { return typeof( UNCDownloader ).AssemblyQualifiedName; }
set {}
}

ServerManifest looks like

<application applicationId="{215E1AD7-9ABA-432f-A952-24BABA556850}">
<entryPoint file="ExeName.exe" />
<location>C:\Client</location>
</application>
<files base="C:\Server"
hashComparison="Yes" hashProvider="MD5CryptoServiceProvider" >
<file hash="a5aqUnlIyzu670VDJW8lSwXJdJM=" source="ExeName.exe"
transient="No" />
<file hash="0UOXi/+fNtBihjD9Vv8WS+1NBCo="
source="ExeName.Forms.dll" transient="No" />
</files>
<downloader name="UNCDownloader" />
<activation>
<tasks>
<task name="WaitForApplicationExitProcessor"
type="Microsoft.ApplicationBlocks.Updater.Activati onProcessors.WaitForApplicationExitProcessor,
Microsoft.ApplicationBlocks.Updater.ActivationProc essors"/>
<task name="ApplicationDeployProcessor"
type="Microsoft.ApplicationBlocks.Updater.Activati onProcessors.ApplicationDeployProcessor,
Microsoft.ApplicationBlocks.Updater.ActivationProc essors"/>
</tasks>
</activation>
</manifest>

......
App.config
.....
<UpdaterConfiguration defaultDownloader="UNCDownloader"
applicationId="{215E1AD7-9ABA-432f-A952-24BABA556850}"
manifestUri="C:\Server\ServerManifest.xml">
<downloaders>
<add name="UNCDownloader"
type="ExeName.Forms.ManualUpdater.UNCDownloader,
ExeName.Forms.ManualUpdater"
/>
</downloaders>
.....

Chan Ming Man wrote:
Give a full msdn link.

chanmm

<ol********@yahoo.comwrote in message
news:11*********************@73g2000cwn.googlegrou ps.com...
Hi,

I am using the Updater Application Block Version 2.

I am trying to follow the instructions at
http://msdn.microsoft.com/library/de...ary/en-us/dnpa...
to build a custom downloader (UNC )

So far I was not successfull.
Firstly,
As it was stated I added
<includeTypes>
<includeType name="UNCDownloader"
type="MyApp.Downloaders.UNCDownloaderProviderData, MyApp" />
</includeTypesto app.config. But I am getting "Unrecognized element
IncludeTypes" error.

Secondly,
it says section
<downloaders>
<downloader xsi:type="UNCDownloaderProviderData"
name="UNCDownloader">
</downloader>
</downloaders>
should be added to Updaterconfiguration.config file. However I do not
have this file. Should I create it?

ServerManifest.xml
Looks like
...
<files base="\\MyApp\Server"
hashComparison="Yes" hashProvider="MD5CryptoServiceProvider" >
<file hash="a5aqUnlIyzu670VDJW8lSwXJdJM=" source="MyApp.exe"
transient="No" />
<file hash="0UOXi/+fNtBihjD9Vv8WS+1NBCo="
source="MyApp.Forms.dll" transient="No" />
</files>
<downloader name="UNCDownloader" />
...

App.Config file

...
<UpdaterConfiguration defaultDownloader="UNCDownloader"
applicationId="{345E1AD7-9ABA-432f-A458-24BABA556908}"
manifestUri="http://localhost/Servermanifest.xml">
<includeTypes>
<includeType name="UNCDownloader"
type="MyApp.UNCDownloaderProviderData, MyApp" />
</includeTypes>

</UpdaterConfiguration>
...
Has anybody had any idea what it can be wrong here...
Thanks in advance,

Olgu.
Dec 14 '06 #4
HI-

I posted the link. But I have another question related to my other
questions.
On http://msdn2.microsoft.com/en-us/library/ms978557.aspx it says

"Even if your downloader does not require any configuration
information, you must still create the DownloadProviderData class and
override the TypeName method."

There is already a class called DownloaderProviderData in
Microsoft.ApplicationBlocks.Updater.Configuration. Am I supposed to
create a new one called DownloadProviderData or use the exising
DownloaderProviderData ?

Thank you,
Olgu.
Chan Ming Man wrote:
Give a full msdn link.

chanmm

<ol********@yahoo.comwrote in message
news:11*********************@73g2000cwn.googlegrou ps.com...
Hi,

I am using the Updater Application Block Version 2.

I am trying to follow the instructions at
http://msdn.microsoft.com/library/de...ary/en-us/dnpa...
to build a custom downloader (UNC )

So far I was not successfull.
Firstly,
As it was stated I added
<includeTypes>
<includeType name="UNCDownloader"
type="MyApp.Downloaders.UNCDownloaderProviderData, MyApp" />
</includeTypesto app.config. But I am getting "Unrecognized element
IncludeTypes" error.

Secondly,
it says section
<downloaders>
<downloader xsi:type="UNCDownloaderProviderData"
name="UNCDownloader">
</downloader>
</downloaders>
should be added to Updaterconfiguration.config file. However I do not
have this file. Should I create it?

ServerManifest.xml
Looks like
...
<files base="\\MyApp\Server"
hashComparison="Yes" hashProvider="MD5CryptoServiceProvider" >
<file hash="a5aqUnlIyzu670VDJW8lSwXJdJM=" source="MyApp.exe"
transient="No" />
<file hash="0UOXi/+fNtBihjD9Vv8WS+1NBCo="
source="MyApp.Forms.dll" transient="No" />
</files>
<downloader name="UNCDownloader" />
...

App.Config file

...
<UpdaterConfiguration defaultDownloader="UNCDownloader"
applicationId="{345E1AD7-9ABA-432f-A458-24BABA556908}"
manifestUri="http://localhost/Servermanifest.xml">
<includeTypes>
<includeType name="UNCDownloader"
type="MyApp.UNCDownloaderProviderData, MyApp" />
</includeTypes>

</UpdaterConfiguration>
...
Has anybody had any idea what it can be wrong here...
Thanks in advance,

Olgu.
Dec 14 '06 #5

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

Similar topics

0
by: fishboy | last post by:
Howdy, Sorry if this is a double post. First try seemed to go into hyperspace. I'm working on a personal project. It's going to be a multipart binary attachment downloader that will search...
0
by: Gregory Hassett | last post by:
Hello, I am using the BITS downloader to retrieve a file as part of a self-updating application. The file is called xyz.dll -- and when BITS tries to get it from its location (where it's...
3
by: Paul Porthouse | last post by:
Hi. I have successfully written an automatic file downloader in VB.NET using webrequest but I can't find any information anywhere on how to read in the filename that the server is sending. ...
4
by: Kim | last post by:
Random image downloader for specified newsgroup. Hi I'm writing a small script that will download random images from a specified newsgroup. I've imported yenc into the script but I can't open the...
0
by: Kim | last post by:
Random image downloader for specified newsgroup. Hi I'm writing a small script that will download random images from a specified newsgroup. I've imported yenc into the script but I can't open the...
0
by: hydroniumf | last post by:
Hi Friends I search a good downloader with high speed that I can add my download URLs list in it via programming in .net. I mean I can control that downloader software via programing (adding list...
15
by: rizwanahmed24 | last post by:
Hello i have made a custom control. i have placed a panel on it. I want this panel to behave just like the normal panel. The problem i was having is that the panel on my custom control doesnt...
10
EYE4U
by: EYE4U | last post by:
Hi all, I m going to make a Youtube Video Downloader in JAVA, but i dont know where to start and how to do this... i have googled a lot to find any help in this case but i didn't find any helpful...
0
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.