Home Blogs
Trivium Solutions - Blogs

Welcome

E-mail Print PDF

Welcome to our professional blog page, where our experts disuss solutions for technical problems in various technology fields. We want to share our ideas with the world – as no man is an island, the more so, no company is operating solely for its own sake. We hope that our blog will help you extend your own understanding and enrich your working experience .

Last Updated ( Tuesday, 25 January 2011 08:41 )
 

ISAPI Filter 64bit dll does not load with IIS 6.0 and/or IIS 7.0

E-mail Print PDF

Following are typical problems user can face when failing to load ISAPI Filter 64bit dll with IIS 6.0 or 7.0:

 

1. In order for ISAPI Filter to work with IIS7 you need to grant the DLL folder access rights of the user running Web Service (usually it’s IIS_IUSRS).

2. You might miss dependencies of the DLL. Starting from VS2005 all runtime libraries are resided in C:\Windows\winxs\...; all required libraries, their architecture and versions are listed in Manifest file (it’s a regular text file). You need to make sure that all listed libraries exist under C:\Windows\winxs folder. There can be more than one version of each library. The DLL might only Microsoft.VCxx.CRT (msvcmxx.dll, msvcpxx.dll, msvcrxx.dll), where xx is 7.0 for VS2002, 8.0 – VS2005, 9.0 – VS2008, 10.0 – VS2010. For Debug mode compilation there are separate libraries - Microsoft.VCx.DebugCRT.

3. If DLL accesses the registry, relevant registry branch needs to have same user access rights as a user running Web Service (usually IIS_IUSRS)

 

To switch IIS6 between 32 and 64 bit applications:

 

This will disable running 32 bit applications and will run 64 bit

cscript %SYSTEMDRIVE%\inetpub\adminscripts\adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 0

This will disable running 64 bit applications and will run 32 bit

cscript %SYSTEMDRIVE%\inetpub\adminscripts\adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 1

this will install .NET 64 to IIS

%SYSTEMROOT%\Microsoft.NET\Framework64\v2.0.50727\aspnet_regiis.exe –i

this will install .NET 32 to IIS

%SYSTEMROOT%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe –i

In IIS7 it can be done same way, but this configuration is available  in IIS administration GUI also.

 

Last Updated ( Monday, 13 December 2010 10:10 )
 

Bad Ethernet driver performance based on polling in RedBoot

E-mail Print PDF

We've encountered a very bad performance of Ethernet driver working under RedBoot eCos bootloader. The device was dropping packets on downstream traffic of 200kbps with 50Mbps expectation.

After some investigation we’ve found the cause – too big timeout set in CYGNUM_REDBOOT_CLI_IDLE_TIMEOUT configutaion option.

The thing is that in Redboot serial and Ethernet drivers are base on polling mechanism (not interrupts). CYGNUM_REDBOOT_CLI_IDLE_TIMEOUT defines the RedBoot command processing interval. After this timeout expires (no traffic), RedBoot assumes the command console is idle and performs various background tasks (for instance – handles ethernet traffic). The default value for this option is 10 milliseconds (in our case it was 1 second!).

 

Last Updated ( Tuesday, 14 December 2010 16:12 )
 

Invoking a custom script on system resume in Ubuntu 10.04

E-mail Print PDF

While trying to find an appropriate way to invoke a custom script on system resume from suspend, we've found that previously existed /etc/acpi/resume.d directory is missing in Ubuntu 10.04.

The solution for this issue we found is to use pm-utils package functionality:

Add a script to  /etc/pm/sleep.d/ directory. As a fist parameter the script should get the system event name provided by pm-utils. In our case it was either thaw or resume, depending on suspend type (suspend to disk or memory suspend).

Last Updated ( Monday, 13 December 2010 14:13 )