代码改变世界

How to sign dll directly

2011-07-05 13:39 by 俺是老Z, 168 阅读, 0 推荐, 收藏, 编辑
摘要:Step 1: Dis-assemble the assemblyildasm myTest.dll /out:myTest.ilStep 2: Re-Assemble using your strong-name keyilasm myTest.il /res:myTest.res /dll /key:myTest.snk /out:myTestSN.dllThis code work perfectly to assign strong name.for verification you can use following command,sn -vf myTestSN.dll 阅读全文

Installing SharePoint 2007 by using different versions of .net framework

2008-08-27 18:08 by 俺是老Z, 266 阅读, 0 推荐, 收藏, 编辑
摘要:Problem: This product requires ASP.NET v2.0 to be set to 'Allow' in the list of IIS Web Server ExtensionsReason: There are different versions of .net framework installed in your computer (at least 3.0... 阅读全文

WCF / Silverlight 2 Beta 2: "The remote server returned an unexpected response: (404) Not Found."

2008-08-14 20:58 by 俺是老Z, 496 阅读, 0 推荐, 收藏, 编辑
摘要:Problem: Silverlight 2 Beta 2 cannot call WCF service and always shows "The remote server returned an unexpected response: (404) Not Found".Reason: Client cannot access service, there's something wron... 阅读全文

Error: Add WCF Service Reference in Silverlight 2 Beta 2

2008-08-14 17:17 by 俺是老Z, 297 阅读, 0 推荐, 收藏, 编辑
摘要:Problem: Cannot add WCF service reference in Silverlight 2 Beta 2 application, it says "Object not set to an instance...".Reason: A pervious dll was not replaced when installing SL2B2, Dll Name: Micro... 阅读全文

How to resolve the problem "Could not download sliverlight application" when doing deployment

2008-08-04 15:41 by 俺是老Z, 306 阅读, 0 推荐, 收藏, 编辑
摘要:The problem is mainly because the file type ".xap" is not registered in MIME in IIS.So, try to manually add the type into MIME:Customer Header Name: .xapCustomer Header Value: application/x-silverligh... 阅读全文

LinQ Attempt

2008-05-07 10:37 by 俺是老Z, 242 阅读, 0 推荐, 收藏, 编辑
摘要:LinQ to XML:privatevoidImportXMLToSQL(stringxmlFileLocation){vardoc=XDocument.Load(xmlFileLocation);varq=frompindoc.Elements("AzAdminManager").Elements("AzApplication")selectp;foreach(vareinq){this.tx... 阅读全文

Powerful VB Script

2008-05-05 10:36 by 俺是老Z, 408 阅读, 0 推荐, 收藏, 编辑
摘要:Just finished some code about vb script and realized how powerful it is, blog some useful code here:functionAssignAppPoolIdentity(AppPoolName)BasePath="IIS://localhost/w3svc/AppPools"BasePath=BasePath... 阅读全文

How to install Active Directory in Server 2008 and Vista

2008-04-21 16:17 by 俺是老Z, 324 阅读, 0 推荐, 收藏, 编辑
摘要:Windows Server 2008:Run command window: servermanagercmd -i adldsWindows Vista: Install ADAM on a non-Vista machine. I used a Windows 2003 server VM to do this. Copy the %WINDIR%\ADAM folder that is c... 阅读全文

Turkey "i"

2008-03-26 17:29 by 俺是老Z, 246 阅读, 0 推荐, 收藏, 编辑
摘要:The upper case of Turkey "i" is "İ " not "I".Need to use CultureInfo.InvariantCulture or ToLowerInvariant() to deal with. 阅读全文

How to identity your Version of SQL Server 2005

2008-03-25 13:51 by 俺是老Z, 190 阅读, 0 推荐, 收藏, 编辑
摘要:9.00.1399SQL Server 2005 (RTM)9.00.2047SQL Server 2005 SP19.00.3042SQL Server 2005 SP2 阅读全文