Click here to Skip to main content
16,004,778 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Nunit sql server database connectivity - it gives error - system.data.sqlclient.sqlexception - SQl server does not eexists or access denied Pin
DigiOz Multimedia10-Dec-07 4:42
DigiOz Multimedia10-Dec-07 4:42 
GeneralSQL Server 2005 by default is not visible from outside Pin
Luis Alonso Ramos11-Dec-07 15:00
Luis Alonso Ramos11-Dec-07 15:00 
GeneralGUI upgrade Pin
epitalon8-Dec-07 6:08
epitalon8-Dec-07 6:08 
GeneralRe: GUI upgrade Pin
TJoe10-Dec-07 17:27
TJoe10-Dec-07 17:27 
GeneralRe: GUI upgrade Pin
epitalon211-Dec-07 7:11
epitalon211-Dec-07 7:11 
GeneralRe: GUI upgrade Pin
TJoe11-Dec-07 7:29
TJoe11-Dec-07 7:29 
GeneralRe: GUI upgrade Pin
epitalon18-Dec-07 3:19
epitalon18-Dec-07 3:19 
General/nostdlib + value type mismatch Pin
Klaus8-Dec-07 4:16
Klaus8-Dec-07 4:16 
Hello,

the C# compiler has a wonderful option that allows you to build your application
without referencing mscorlib.dll in order to write your own System namespace (/nostdlib).
I am making usage of this feature but I have a problem.
I created a simple application with this feature that implements some core classes (Object, Attribute, Int32, ValueType, ...) in order to build the project properly. It works fine.
The only problem consists in the fact that I can't create my own value types and use them e.g:

<br />
using System;<br />
<br />
namespace Test<br />
{<br />
    struct MyValueType<br />
    {<br />
    }<br />
<br />
    class MainClass<br />
    {<br />
        static void Main()<br />
        {<br />
            MyValueType val;<br />
        }<br />
    }<br />
}<br />


This will throw the following exception:

<br />
Unhandled Exception: System.TypeLoadException: Could not load type 'Test.MyValueType' from assembly 'Test, Version=0.0.0.0, Culture=neutral, PublicKeyToken=nu<br />
ll' due to value type mismatch.<br />
   at Test.MainClass.Main()<br />


I would be VERY pleased if someone helped me.
Thanks in advance.

Best wishes,
Klaus
General.NET Languages and Namespaces Pin
.NET- India 7-Dec-07 23:30
.NET- India 7-Dec-07 23:30 
GeneralRe: .NET Languages and Namespaces Pin
pmarfleet8-Dec-07 0:01
pmarfleet8-Dec-07 0:01 
GeneralRe: .NET Languages and Namespaces Pin
.NET- India 8-Dec-07 0:16
.NET- India 8-Dec-07 0:16 
GeneralRe: .NET Languages and Namespaces Pin
pmarfleet8-Dec-07 0:23
pmarfleet8-Dec-07 0:23 
GeneralRe: .NET Languages and Namespaces Pin
.NET- India 8-Dec-07 0:37
.NET- India 8-Dec-07 0:37 
GeneralRe: .NET Languages and Namespaces Pin
pmarfleet8-Dec-07 0:48
pmarfleet8-Dec-07 0:48 
GeneralRe: .NET Languages and Namespaces Pin
Kevin McFarlane8-Dec-07 9:34
Kevin McFarlane8-Dec-07 9:34 
GeneralRe: .NET Languages and Namespaces Pin
Pete O'Hanlon9-Dec-07 9:50
mvePete O'Hanlon9-Dec-07 9:50 
GeneralRe: .NET Languages and Namespaces Pin
Kevin McFarlane9-Dec-07 10:18
Kevin McFarlane9-Dec-07 10:18 
GeneralRe: .NET Languages and Namespaces Pin
Pete O'Hanlon9-Dec-07 10:23
mvePete O'Hanlon9-Dec-07 10:23 
GeneralRe: .NET Languages and Namespaces Pin
Kevin McFarlane9-Dec-07 10:44
Kevin McFarlane9-Dec-07 10:44 
GeneralRe: .NET Languages and Namespaces Pin
Pete O'Hanlon9-Dec-07 23:34
mvePete O'Hanlon9-Dec-07 23:34 
GeneralRe: .NET Languages and Namespaces Pin
Pete O'Hanlon9-Dec-07 9:51
mvePete O'Hanlon9-Dec-07 9:51 
GeneralRe: .NET Languages and Namespaces Pin
pmarfleet9-Dec-07 20:11
pmarfleet9-Dec-07 20:11 
GeneralRe: .NET Languages and Namespaces Pin
.NET- India 9-Dec-07 20:40
.NET- India 9-Dec-07 20:40 
GeneralRe: .NET Languages and Namespaces Pin
Lord Kixdemp9-Dec-07 22:51
Lord Kixdemp9-Dec-07 22:51 
GeneralRe: .NET Languages and Namespaces Pin
Pete O'Hanlon9-Dec-07 22:59
mvePete O'Hanlon9-Dec-07 22:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.