Le Kevin dot com

photographic-poetic-musical horizon

Browsing Posts tagged .net

NUnit is a unit-testing framework for all .Net languages. Initially ported from JUnit, the current production release, version 2.5, is the sixth major release of this xUnit based unit testing tool for Microsoft .NET. It is written entirely in C# and has been completely redesigned to take advantage of many .NET language features, for example custom attributes and other reflection related capabilities. NUnit brings xUnit to all .NET languages.

NUnit 2.0 is an excellent example of idiomatic design. Most folks who port xUnit just transliterate the Smalltalk or Java version. That’s what we did with NUnit at first, too. This new version is NUnit as it would have been done had it been done in C# to begin with. ~Kent Beck

via: http://www.nunit.org/index.php?p=download

Error in Visual Studio 2010

Unexpected error reading metadata from file ‘c:\Users\Username\AppData\Roaming\WeOnlyDo\Assembly\WeOnlyDo.Client.SFTP.dll’ — ‘Index not found.’

Verifying with .Net 4.0

C:\Users\Username\AppData\Roaming\WeOnlyDo\Assembly>"C:\PROGRA~1\Microsoft SDKs\Win
dows\v7.0A\bin\PEVerify.exe" weonlydo.client.sftp.dll

Microsoft (R) .NET Framework PE Verifier. Version 3.5.30729.1
Copyright (c) Microsoft Corporation. All rights reserved.

[MD]: Error (Structural): Table=0×00000002, Col=0×00000001, Row=0×00000098, has
an invalid String offset.
[MD]: Error (Structural): Table=0×00000015, Col=0×00000001, Row=0x0000001f, has
rid out of range.
2 Error(s) Verifying weonlydo.client.sftp.dll

If you are working with SQL server CLR objects there’s a higher possibility that you might encounter the following error.

“Msg 6263, Level 16, State 1, Line 1
Execution of user code in the .NET Framework is disabled. Enable “clr enabled” configuration option”

To overcome this, you have to reconfigure the SQL server to enable CLR objects. To do that, you can use the following commands…

exec sp_configure ‘clr_enable’,’1′

RECONFIGURE

Note : – CLR objects only works with SQL server 2005 and later versions.

sp_configure ‘show advanced options’, 1;
GO
RECONFIGURE;
GO
sp_configure ‘clr enabled’, 1;
GO
RECONFIGURE;
GO
ALTER DATABASE TheraBreath SET TRUSTWORTHY ON
GO
exec sp_changedbowner [Domain\Username] or exec sp_changedbowner [sa]

Blog WebMastered by All in One Webmaster.