Issue#1:
I am calling regasm/reg file. And I am trying to harvest those file. Regasm is creating simple extra nodes; these are not listed in the archive. I have seen many people that are telling to harvest the tlb, try to make the registry and then compare for better results. I abandoned this path, though it was looking promising at the beginning. The problem got worse when I am trying to do so. Can't I get this easily done with tlb file? I had also tried with WOW64 which is a 32-bit version of the Windows, with current nodes. Then, I abandoned this linking path due to problems with the current version.
Then, I am trying to create a custom action (by calling regasm from wix). You can easily find the connection, if you spent a little time in the editor mode and custom action are mostly called by regasm. Some say, this is not reliable, but this is the only working properly with the current settings. But with this, I can't do the unregistering in the assembly settings. I have read (and understood) that to run the custom action; privileges have to differ. The Proper action is required after the files are removed/replaced/add, and remember this is happening before the scheduling.
Code:
<CustomAction Id="QuietRegister" BinaryKey="WixCA" DllEntry="WixQuietExec" Execute="deferred" Return="check" Impersonate="no" />
<SetProperty Id="QuietRegister" Value=""[NETFRAMEWORK40CLIENTINSTALLROOTDIR]regasm.exe" "[#Main_Assembly]" /codebase" After="AppSearch" />
<CustomAction Id="QuietUnregister" BinaryKey="WixCA" DllEntry="WixQuietExec" Execute="deferred" Return="ignore" Impersonate="no" />
<SetProperty Id="QuietUnregister" Value=""[NETFRAMEWORK40CLIENTINSTALLROOTDIR]regasm.exe" "[#Main_Assembly]" /u" After="AppSearch" />
<InstallExecuteSequence>
<Custom Action='QuietRegister' Before='InstallFinalize'>NOT Installed</Custom>
<Custom Action='QuietUnregister' Before='RemoveFiles'>Installed</Custom>
</InstallExecuteSequence>
Issue#2:
Another issue, I am facing is with.Net HttpClient Get Request. This is extremely slow (for about 100 seconds) and then again goes idle for 15-30 seconds. I am fine if it is slow first time but not every time.
This is not unique to the client if I am making HTTP request for one client and it does not stay idle for the other client. This is only happening, if the connections are slowed for 100 seconds.
I have tried these changes so far(which I suppose will resolve the issue):
- Tried with singleton HTTPclient and not trying to access using () block.
- I am setting ServicePointManager.MaxServicePointIdleTime to a new and higher value. By default, it is set to 100 seconds. As the idle time was matching with 100 seconds, I supposed this was the issue.
- Tried with ServicePointManager.DefaultConnectionLimit by increasing the value.
- I am trying to set the proxy settings web.config
- Tried with Await, rather than directly using httpClient.SendAsync(request).Result.
This application is not related to IIS application request as the default is 20mn. And rest of the application is working correctly.
The request is communicating with AWS3 to get the files, and I have tried all the solution ^^, which someone has mentioned used to work for them.
Code:
var client_rq= HttpClientProvider.FileServiceHttpClient;
var queryforT= string.Format("?key={0}", key);
var simpleR = new HttpRequestMessage(HttpMethod.Get, queryforT);
var providingR = client_rq.SendAsync(simpleR).Result;
if (providingR.IsSuccessStatusCode)
{
var infometa = new Dictionary<string, string>();
foreach (var mark in response.Headers)
{
//creating headers
if (mark.Key.StartsWith(_metadataHeaderPrefix))
{
infometa.Add(mark.Key.Substring(_metadataHeaderPrefix.Length), mark.Value.First());
}
}
var creatingVfile = new VirtualFile
{
QualifiedPath = key,
FileStream = response.Content.ReadAsStreamAsync().Result,
RoraMeta = infometa
};
return creatingVfile;
}
return null;
, maybe there is an issue with FTP settings, which are causing a problem with data transfer. For a long time, I am stuck with this issue, was delaying and implementing other modules. Please respond ASAP.






