.NET vs ASP.NET vs CLR vs ASP
Although I know the terms I used to forget the differences sometimes...So just to maintain a place for reference...Thanks all for your answers. ...
Although I know the terms I used to forget the differences sometimes...So just to maintain a place for reference...Thanks all for your answers. ...
Breakdown "System.Reflection.TargetException: Object does not match target type." when calling MethodBase.Invoke within a derivate of RealProxy. Problem appeared suddenly and without any apparent reason in the svn commit logs or the server event logs. Scenario Windows Server 2008 R2 Standard, 64 bit Microsoft .NET Framework Version: 2.0...
Is there a tool that converts .NET 4.0 assemblies to Silverlight assemblies (with assembly mapping configuration)? ...
I have always been intrigued and mystified by Virtual Machines and how they operate. I want to learn more about the inner workings of a virtual machine. Are there any good books on Virtual Machines/Virtual machine designs/Tour of a sample machine? How do I go about studying one? Do I pick up a spec for the JVM or start with the LLVM?...
I'm working on writing a compiler and one feature of this compiler is that it automatically generates GetHashCode(), Equals(object), and Equals({this value type}) methods for value types. Right now the Equals({this value type}) implementation basically generates il equivalent to the il generated by this c#: public bool Equals(ThisType o...
I've got an archive containing various files. Would there be a method to list out these files in directories (as dictated by their relative paths) in a common dialog (or a custom dialog for that matter) without having to extract the files or create any directory structure on the file system ? The archive reading code is at my disposal. ...
Hi, how do I delete an assembly file after application shutdown? This is not as easy as it sounds, because it is used in my default appdomain. For several reasons I cant simply create a new appdomain and put it there, but app domain solution is not really what I'm looking for anyway since this is complicated and I have a hard time juggli...
hello, I have CLR which references Web service, into CLR i have one method with calling one of Web services method. What i need is, to make this CLR method return me information and show it in Result tab (in SQL server) . I printed result in SQL tab Messages with SqlContext.Pipe.Send. How can I do the same in Result tab, like it's sampl...
Occasionally I like to spend some time looking at the .NET code just to see how things are implemented behind the scenes. I stumbled upon this gem while looking at the String.Equals method via Reflector. C# [ReliabilityContract(Consistency.WillNotCorruptState, Cer.MayFail)] public override bool Equals(object obj) { string strB = ob...
Hello, can anyone tell me how to make Setup Project for CLR, which will take Connection String Parameters. I want my Clr to run under any SQL server, can anyone advice how to pass parameters to Setup project and how to make my clr get where to connect. Or is there any other way to deploy CLR dll without source to another Server? ...
How do you implement a stackless language on top of the CLR? What are some issues with implementing a stackless language on top of a stackful virtual machine, and are there any OSS projects out there that have done this kind of work on the CLR? ...
Question: In SQL Server 2005, how can I list all SQL CLR-functions/procedures that use assembly xy (e.g. MyFirstUdp) ? For example a function that lists HelloWorld for query parameter MyFirstUdp CREATE PROCEDURE HelloWorld AS EXTERNAL NAME MyFirstUdp.[SQL_CLRdll.MySQLclass].HelloWorld GO after I ran CREATE ASSEMBLY MyFirstUdp FROM ...
Hey I have a program that references a strongly named assembly which is in the gac. I have a debug build of this assembly which I want to debug into, but it isn't strongly named. Can I use a policy file or something to force the program to use the weakly named assembly? Or do I have to recompile the program to reference the weakly na...
Hi, are there any CLR implementations that have deterministic garbage collection? Nondeterministic pauses in the MS CLR GC inhibit .Net from being a suitable environment for real-time development. Metronome GC and BEA JRockit in Java are two deterministic GC implementations that I'm aware of. But have there any .Net equivalents? Than...
My 32bit .NET application runs SQL 2005 Express SP3 and uses CLR. The install works fine on XP & Vista. The install fails on XP 64bit & Widows 7 64bit machines. The error is in one of my SQL scripts that creates an Assembly: Error: “Execution of .NET Framework code is disabled. Set ‘CLR enabled’ configuration option and restart server....
Is it ever appropriate for a component to throw a FileNotFound exception that doesn't at least include the name of the file? ...
Hi, does anybody know if it's possible (and how) to use LINQ on a DataTable inside a CLR Stored Procedure? I have no problems using LINQ on a DataTable in a standard WinForms proj however; I'm using a Database Project in VS2010 on SQL2005 and creating a Stored Procedure: (simplified listing) [Microsoft.SqlServer.Server.SqlProcedure] ...
Using sos, I can get the method table entry list for a particular class: !DumpMT -MD 1d3c58 PDB symbol for mscorwks.dll not loaded EEClass: 001d195c Module: 001d2f2c Name: Class1.B mdToken: 02000005 BaseSize: 0xc ComponentSize: 0x0 Number of IFaces in IFaceMap: 0 Slots in VTable: 7 -------------------------------------- MethodDesc Table...
Hello, Sometimes my application consumes 100 cpu. When I investigate crush dumps in windbg I always see huge "request queue" in the log and I am very suspicious of this huge amount of requests. Definitely I want to know where they come from, but at the first place I don't quite understand what it means. Does it mean that there are lots ...
Hi I am trying to make a clr stored procedure for a sql 2005 database that uses .net 3.5 assemblies So first I had to change sql 2005 to recognize system.core as unsafe what I am not too happy about(I rather have had it say SAFE). Now I get this error Msg 6522, Level 16, State 1, Procedure StoredProcedure1, Line 0 A .NET Framework e...