Issues with if (uriKey == null || !tempFiles.ContainsKey(uriKey)) return false;

126 views
Skip to first unread message

Александр Игнатов

unread,
Mar 25, 2016, 7:50:40 AM3/25/16
to NAppUpdate
Hello,

I've downloaded latest sources and trying to create simple test application.

Here details

<?xml version="1.0" encoding="utf-8"?>
  <Tasks>
    <FileUpdateTask localPath="htmlayout.dll" lastModified="131004383464894510" fileSize="38033">
    </FileUpdateTask>
    <FileUpdateTask localPath="test_update.exe" lastModified="131033700587796910" fileSize="6656">      
    </FileUpdateTask>
  </Tasks>
</Feed>

After calling  updManager.PrepareUpdates();

I've get error: FileUpdateTask: Failed to get file from source"

Tried to debug:

if (!source.GetData(fileName, baseUrl, OnProgress, ref tempFileLocal))  throw new UpdateProcessFailedException("FileUpdateTask: Failed to get file from source");

at Getdata we have if (uriKey == null || !tempFiles.ContainsKey(uriKey))  return false;

But I've never get tempfiles filed. so it's empty and i'm stuck here.  What i'm, duing wrong?





harry carrington

unread,
Feb 7, 2017, 12:47:04 PM2/7/17
to NAppUpdate
I had the same problem but it was when I was using the sourcememory as the feed source. I changed it to simplewebsource and was able to get it to work.

I still have not figured out where the tempfiles dictionary get populated for the sourcememory.
Reply all
Reply to author
Forward
0 new messages