Re: Custom downloader - UNC
- From: olguyilmaz@xxxxxxxxx
- Date: 13 Dec 2006 12:44:00 -0800
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.ConfigurationNamespace )]
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.ActivationProcessors.WaitForApplicationExitProcessor,
Microsoft.ApplicationBlocks.Updater.ActivationProcessors"/>
<task name="ApplicationDeployProcessor"
type="Microsoft.ApplicationBlocks.Updater.ActivationProcessors.ApplicationDeployProcessor,
Microsoft.ApplicationBlocks.Updater.ActivationProcessors"/>
</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
<olguyilmaz@xxxxxxxxx> wrote in message
news:1165867470.057962.12970@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,
I am using the Updater Application Block Version 2.
I am trying to follow the instructions at
http://msdn.microsoft.com/library/default.asp?url=/library/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" />
</includeTypes> to 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.
.
- References:
- Custom downloader - UNC
- From: olguyilmaz
- Re: Custom downloader - UNC
- From: Chan Ming Man
- Custom downloader - UNC
- Prev by Date: Re: Is file is being used
- Next by Date: Re: Custom downloader - UNC
- Previous by thread: Re: Custom downloader - UNC
- Next by thread: Re: Custom downloader - UNC
- Index(es):