Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 03:10

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Urgent! Please Solve These 2 Issues (Regasm & HTTP Client)

Discussion on Urgent! Please Solve These 2 Issues (Regasm & HTTP Client) within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2016
Posts: 1
Received Thanks: 0
Urgent! Please Solve These 2 Issues (Regasm & HTTP Client)

I am facing two problems, one with regasm in Asp. Net and another one with data communication in C#.

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>
Anyidea on how to get this easily done.

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;
Both of these codes are part of a bigger code, where I am trying to implement an online solution for customized gaming response on a private server. It is required to get a fast response so that players should not have to wait. With the first problem, it is solely related to development and design. I am getting the data from , 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.
JuleLawes is offline  
Reply


Similar Threads Similar Threads
[TUT] How to solve the issues with "unauthorised program running" (16-Dec-2011)
03/09/2012 - Dekaron Exploits, Hacks, Bots, Tools & Macros - 75 Replies
(16-Dec-2011) In the last few days a lot of people have been experiencing the "unauthorised program running" errors with gawrons xigncode hack and the ReXIGNation 1.54 bypass. This is a simple tutorial to show you how to get around the issue. In turn this tutorial will show you how to setup the hack properly and how to rebuild your crc folder without help from other users. How to solve the issues with "unauthorised program running" (16-Dec-2011)....
Client Issues
07/10/2011 - CO2 Private Server - 3 Replies
I'm using LOTF 5017 (even though it doesn't make a difference which client I use, I have this problem occasionally). So sometimes when I login, this happens: ______________ http://i54.tinypic.com/smpmah.jpg ______________ It is very annoying, and to fix it I need to close the client completely, then relog. Sometimes even if I relog it still does it, so it may take a few times logging in and out to fix it temporarily.
[HELP] Client Issues
06/18/2011 - Conquer Online 2 - 0 Replies
I have been having my cient just shut down lately when I try to log-in. I don't know what the problem is but I CAN give you the server log to help me figure out the problem. Here it is: Server.log WARNING: Read Error in ItemType.dat, itemtypeID=187325 -- Sat Jun 18 13:40:48 2011 CEmoneyShop::SetShopSectionData(), create item for shop error£¬IdType=187325! -- Sat Jun 18 13:40:48 2011 WARNING: Read Error in ItemType.dat, itemtypeID=187375 -- Sat Jun 18 13:40:48 2011...
EQ2 Client Issues, Need Fix
07/09/2010 - General Gaming Discussion - 0 Replies
OK so I either need a solid link to the client download, or, I need the following .dll file fixed. dll issue: Bad file - js3250.dll Error: The procedure entry point JS_IsSystemObject could not be located in the dynamic link library js3250.dll This error occurs when I attempt to launch the game through "EverQuest2.exe" rather then launching it through EQ2.exe like normal.
CLient issues?
09/25/2009 - CO2 Private Server - 0 Replies
I normally wont post questions, but I cant figure it out and need a lil guidance... I think I am having a Client issue But unsure because when I use another servers client I cant even connect to their servers (their down as fast as they come up). I have the login and game servers working correctly and able to see myself log in to the account server. I get to the point on the client that I should be logging onto the game server and I just hang there (and it doesnt say logging into...



All times are GMT +1. The time now is 03:11.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.