Color theory. I love this site.
kuler
12/16/2010
9/15/2010
IIS7 - Virtual Directories' Parent Paths behaving differently than previous versions - Server Fault
I wasted a day trying to figured out why the MapPath does not resovle correctly in my App when I deployed my app from IIS6 to IIS 7. Apparently this is a known issue:
IIS7 - Virtual Directories' Parent Paths behaving differently than previous versions - Server Fault
IIS7 - Virtual Directories' Parent Paths behaving differently than previous versions - Server Fault
11/21/2009
CryptFire Decryption Page
Want to send an encrypted message to someone? Check This out!
CryptFire Decryption Page
CryptFire Decryption Page
9/24/2009
64-bit (x64) Snoop for WPF Development - Dan's IK Blog
My buddy Dan wrote the 64-bit version of the WPF snoop tool.
64-bit (x64) Snoop for WPF Development - Dan's IK Blog
Here some mod also
http://team.interknowlogy.com/blogs/danhanan/archive/2009/09/23/improvements-to-the-wpf-snoop-utility.aspx
64-bit (x64) Snoop for WPF Development - Dan's IK Blog
Here some mod also
http://team.interknowlogy.com/blogs/danhanan/archive/2009/09/23/improvements-to-the-wpf-snoop-utility.aspx
8/28/2009
How to get around DLL probing problem.
Loading an assembly from a different directory than the caller process will fail if the loaded assembly has dependencies that are not met from the caller process's directory. The reason is that CLR only looks at the caller's folder to prob for all dependencies.
This is a helper class which can be used as a workaround to this problem by loading the assembly in a separate app domain.
internal class AssemblyLoaderHelper : IDisposable
{
private Foo _foo = null;
private AppDomain domain = null;
public Foo LoadedFoo
{
get
{
return _foo;
}
}
public void Initialize()
{
try
{
string className = "MyService.foo";
string assemblyName = "MyService.foo.dll";
AppDomainSetup domainInfo = new AppDomainSetup();
domainInfo.ApplicationBase = @"C:\MyFooAssemblyFolder\";
Evidence adevidence = AppDomain.CurrentDomain.Evidence;
domain = AppDomain.CreateDomain("MyFooDomain", adevidence, domainInfo);
_foo = (Foo)domain.CreateInstanceAndUnwrap(assemblyName, className);
// CreateInstanceAndUnwrap does not necessary throw an expcetion'
if (_foo == null)
throw new Exception("Unable to load assembly.");
// now you can call _foo's methods here
}
catch (Exception ex)
{
// Log exception here
}
}
public void Dispose()
{
if (domain != null)
AppDomain.Unload(domain);
}
}
This is a helper class which can be used as a workaround to this problem by loading the assembly in a separate app domain.
internal class AssemblyLoaderHelper : IDisposable
{
private Foo _foo = null;
private AppDomain domain = null;
public Foo LoadedFoo
{
get
{
return _foo;
}
}
public void Initialize()
{
try
{
string className = "MyService.foo";
string assemblyName = "MyService.foo.dll";
AppDomainSetup domainInfo = new AppDomainSetup();
domainInfo.ApplicationBase = @"C:\MyFooAssemblyFolder\";
Evidence adevidence = AppDomain.CurrentDomain.Evidence;
domain = AppDomain.CreateDomain("MyFooDomain", adevidence, domainInfo);
_foo = (Foo)domain.CreateInstanceAndUnwrap(assemblyName, className);
// CreateInstanceAndUnwrap does not necessary throw an expcetion'
if (_foo == null)
throw new Exception("Unable to load assembly.");
// now you can call _foo's methods here
}
catch (Exception ex)
{
// Log exception here
}
}
public void Dispose()
{
if (domain != null)
AppDomain.Unload(domain);
}
}
8/26/2009
Unmanaged C++ client for WCF service. | blinnov's blog
I always wanted to know how I can talk to a WCF service from unmanaged client; Let's say there are no .Net 3.x installed on the target system.One way is using the good old gSoap.
Unmanaged C++ client for WCF service. | blinnov's blog
Unmanaged C++ client for WCF service. | blinnov's blog
6/17/2009
6/12/2009
RCE Directory
This blog constains interesting posts on hacking, software protection and debugging tools.
RCE Directory
RCE Directory
5/29/2009
5/20/2009
1/02/2009
Custom binding as a workaround WCF clock skew
How to set up a custom binding using entirely the config file. This custom bindings sets the client's clock skew to infinite and implements wsHttpBinding and basicHttpBinding with streaming and MTOM support:
requireDerivedKeys="true" securityHeaderLayout="Strict" includeTimestamp="true"
keyEntropyMode="CombinedEntropy" messageSecurityVersion="WSSecurity11WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10">
replayCacheSize="900000" maxClockSkew="23:00:00" maxCookieCachingTime="Infinite"
replayWindow="00:05:00" sessionKeyRenewalInterval="10:00:00"
sessionKeyRolloverInterval="00:05:00" reconnectTransportOnFailure="true"
timestampValidityDuration="00:05:00" cookieRenewalThresholdPercentage="60" />
maxStatefulNegotiations="128" replayCacheSize="900000" maxClockSkew="23:00:00"
negotiationTimeout="00:01:00" replayWindow="00:05:00" inactivityTimeout="00:02:00"
sessionKeyRenewalInterval="15:00:00" sessionKeyRolloverInterval="00:05:00"
reconnectTransportOnFailure="true" maxPendingSessions="128"
maxCachedCookies="1000" timestampValidityDuration="00:05:00" />
maxReceivedMessageSize="40000000" allowCookies="false" authenticationScheme="Anonymous"
bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
keepAliveEnabled="false" maxBufferSize="40000000" proxyAuthenticationScheme="Anonymous"
realm="" transferMode="Buffered" unsafeConnectionNtlmAuthentication="false"
useDefaultWebProxy="true" requireClientCertificate="false" />
sendTimeout="00:55:00">
maxBytesPerRead="409600" maxNameTableCharCount="16384" />
requireDerivedKeys="true" securityHeaderLayout="Strict" includeTimestamp="true"
keyEntropyMode="CombinedEntropy" messageSecurityVersion="WSSecurity11WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10">
replayCacheSize="900000" maxClockSkew="01:10:00" maxCookieCachingTime="Infinite"
replayWindow="00:05:00" sessionKeyRenewalInterval="10:00:00"
sessionKeyRolloverInterval="00:05:00" reconnectTransportOnFailure="true"
timestampValidityDuration="00:05:00" cookieRenewalThresholdPercentage="60" />
maxStatefulNegotiations="128" replayCacheSize="900000" maxClockSkew="01:10:00"
negotiationTimeout="00:01:00" replayWindow="00:05:00" inactivityTimeout="00:02:00"
sessionKeyRenewalInterval="15:00:00" sessionKeyRolloverInterval="00:05:00"
reconnectTransportOnFailure="true" maxPendingSessions="128"
maxCachedCookies="1000" timestampValidityDuration="00:05:00" />
maxReceivedMessageSize="9223372036854775807" allowCookies="false"
authenticationScheme="Anonymous" bypassProxyOnLocal="false"
hostNameComparisonMode="StrongWildcard" keepAliveEnabled="false"
maxBufferSize="40000000" proxyAuthenticationScheme="Anonymous"
realm="" transferMode="Streamed" unsafeConnectionNtlmAuthentication="false"
useDefaultWebProxy="true" requireClientCertificate="false" />
keyEntropyMode="CombinedEntropy" messageSecurityVersion="WSSecurity11WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10">
replayWindow="00:05:00" sessionKeyRenewalInterval="10:00:00"
sessionKeyRolloverInterval="00:05:00" reconnectTransportOnFailure="true"
timestampValidityDuration="00:05:00" cookieRenewalThresholdPercentage="60" />
negotiationTimeout="00:01:00" replayWindow="00:05:00" inactivityTimeout="00:02:00"
sessionKeyRenewalInterval="15:00:00" sessionKeyRolloverInterval="00:05:00"
reconnectTransportOnFailure="true" maxPendingSessions="128"
maxCachedCookies="1000" timestampValidityDuration="00:05:00" />
bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
keepAliveEnabled="false" maxBufferSize="40000000" proxyAuthenticationScheme="Anonymous"
realm="" transferMode="Buffered" unsafeConnectionNtlmAuthentication="false"
useDefaultWebProxy="true" requireClientCertificate="false" />
keyEntropyMode="CombinedEntropy" messageSecurityVersion="WSSecurity11WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10">
replayWindow="00:05:00" sessionKeyRenewalInterval="10:00:00"
sessionKeyRolloverInterval="00:05:00" reconnectTransportOnFailure="true"
timestampValidityDuration="00:05:00" cookieRenewalThresholdPercentage="60" />
negotiationTimeout="00:01:00" replayWindow="00:05:00" inactivityTimeout="00:02:00"
sessionKeyRenewalInterval="15:00:00" sessionKeyRolloverInterval="00:05:00"
reconnectTransportOnFailure="true" maxPendingSessions="128"
maxCachedCookies="1000" timestampValidityDuration="00:05:00" />
authenticationScheme="Anonymous" bypassProxyOnLocal="false"
hostNameComparisonMode="StrongWildcard" keepAliveEnabled="false"
maxBufferSize="40000000" proxyAuthenticationScheme="Anonymous"
realm="" transferMode="Streamed" unsafeConnectionNtlmAuthentication="false"
useDefaultWebProxy="true" requireClientCertificate="false" />
Subscribe to:
Posts (Atom)
Useful netsh commands
To see blocked ports on your system: netsh interface ipv4 show excludedportrange protocol=tcp For more info visit: https://ardalis.com/atte...