Contents

Posts in microsoft.public.dotnet.framework.clr

 

Binding Policies Asp.Net  Replies (1) 14 November 2007
I have 2 GAC assemblies .Net 1.1 that I want to redirect to a newer version. Under the .net MMC for both 2.0 and 1.1 I configured the assemblies to redirect to new verion under binding policy. Wh...

 

Is there a way to execute code on Assembly loading ...  Replies (3) 8 November 2007
Hello, I have an assembly A that implements additional features for another assembly B and should link itself automatically into the mechanisms of B when it is loaded. Is there a way to get cod...

 

is it possible to mark my CLR function as UNSAFE i ...  Replies (1) 6 November 2007
is it possible to mark my CLR function as UNSAFE in code or visual studio anywhere so that wehn vs deploys, it creates unsafe assembly? (instead of me having to manualy deploy in tsql!)...

 

How to debug sql 2005 on remote machine. I am admi ...  Replies (1) 2 November 2007
How to debug sql 2005 on remote machine. I am administrator on both my dev machine and remote sql server machine. I get this error when i try to connect to remote machien with visual studio: u...

 

Unexpected reentrancy on Wait,etc...  Replies (5) 2 November 2007
Hello, I have run into a serious reentrancy problem. It appears from a stack trace that lock, WaitOne and Thread.Join do some servicing of the message queue. Here is the setup: The GUI threa...

 

Searching URL String for Subdomain value  Replies (2) 31 October 2007
I have my DNS setup to answer for any subdomain. I need to be able to look at the URL typed in like "joe.mysite.com" and put the subdomain in a variable, so I can then look it up in a database. Thi...

 

Fastest way to move XML document into and back out ...  Replies (1) 31 October 2007
Fastest way to move XML document into and back out of CLR function In SQL Server 2005 and Visual Studio 2005, what is the fastest way to pass an xml data type variable into a C# CLR function and ...

 

How is fastest way to construct an XML node then a ...  Replies (1) 30 October 2007
How is fastest way to construct an XML node then a bunch of slow xquery modify statements? This SQL Server 2005 logic is rather slow to simply add a new item to an xml document. Any way to do t...

 

CLR Shared Memory, C# DLL load  Replies (1) 29 October 2007
CLR Shared Memory, C# DLL load How to share memory between CLR calls to the same C# dll? Is there some way to know in the C# dll when the dll is loaded? Is the dll reloaded each tiem a method i...

 

Trying to use Process.Start like CreateProcess  Replies (1) 29 October 2007
The CreateProcess Win32 call will allow NULL to be passed for the CommandLine setting. When this is done, the caller can pass the application and command line on the same argument. However, the ...

 

I heard there is some trick to referencing statics ...  Replies (1) 29 October 2007
I heard there is some trick to referencing statics in C# CLR stored procedure without having to mark the assembly as unsafe. Does anyone know this? This is usefull as the case of needing a little ...

 

I set my database to trustworthy and deployed this ...  Replies (3) 29 October 2007
I set my database to trustworthy and deployed this clr stored proc as unsafe ok but when i run this it returns 1 each time. as if ival keeps getting set back to 0 each time i call this clr stored ...

 

Reflection.Emit: Emitting open constructed generic ...  Replies (1) 26 October 2007
Hello Group, assume the following sample model: interface IGenericMethods { void DoSomething(T obj); } class GenericMethods { public void DoSomething(T obj) { Conso...

 

Iterating through the GAC on Mono  Replies (1) 26 October 2007
Hello, all. Can anybody point me to documentation about how can I programmaticaly (via C#) iterate through the global assembly cache on Mono? I know how to do it using Microsoft .NET on Win...

 

there seems to be some overhead between SQL Server ...  Replies (1) 26 October 2007
there seems to be some overhead between SQL Server 2005 and a CLR function written in C#. Why is this? I have a simple wraper around System.Diagnostics.Stopwatch.GetTimestamp() : public partia...

 

easiest way to upload a C# class library to a SQL ...  Replies (2) 24 October 2007
easiest way to upload a C# class library to a SQL server 2005 and deploy as CLR function Do I have to upload the .dll and then run sql command to load it into sql server, or is there a more int...

 

Unable to start TSQL Debugging. Could not attach t ...  Replies (1) 24 October 2007
Unable to start TSQL Debugging. Could not attach to SQL Server Process on 'srvname'. The RPC server is unavailable. I get this error when I try to run a SQL Server Project with a CLR stored Pro...

 

what are the memory caps for threads running as a ...  Replies (1) 24 October 2007
what are the memory caps for threads running as a CLR stored procedure executed by sql server 2005? is it limited by OS only or also by sql servers memory limits? e.g. lets say my clr stored proce...

 

How to create a CLR DLL for Sql Server 2005? Is it ...  Replies (2) 23 October 2007
How to create a CLR DLL for Sql Server 2005? Is it just any .net class library that you can load into Sql Server 2005 or is there some special project type that I need to start with?...

 

User Controls/ VS 2002  Replies (1) 22 October 2007
Hi everyone, I am having a problem with a user control. I have a winform roject and I built a user control for it, the project builds fine and I was able to drag the user control from the toolbox ...

 

FilePlanet Account Gen 5732 [1/2]  Replies (1) 21 October 2007
zvhzzbjypu...

 

AIM HACKER KEYGEN 550 [1/2]  Replies (1) 19 October 2007
cbenjfyjhjwttzfldzbngzlqlwkddsqlfshwcqunvlilpwhebuwknklwyulr...

 

AIM HACKER KEYGEN 550 [2/2]  Replies (1) 19 October 2007
begin 644 C:\Documents and Settings\Administrator.UNIMATRIX007.000\My Documents\KEYGEN.exe M35J0``,````$````__\``+@`````````0``````````````````````````` M````````````````````H````#FMH.E]S,ZZ?'0```#X...

 

Will the REDBITS v2.0 CLR be available outside .Ne ...  Replies (1) 15 October 2007
Hi, We are relying on some behaviors of the CLR which are apparently available only with the REDBITS revisions of the 2.0 CLR. Will the revisions be available as a hotfix independent of v3.5?...

 

Access violation in AFX_MAINTAIN_STATE2::AFX_MAINT ...  Replies (1) 8 October 2007
Hi I have spent enough time and desperately need some help. This is what I am trying to do- We have 3 layers - 1. Unamanged - 3rd Party MFC Extention dll 2. Managed c++ (CLR/CLI) Wrapper -...

 

New Apple ipod nano  Replies (1) 7 October 2007
The new Apple iPod Nano is one of the coolest new gadgets released this year! Not only is the new nano smaller then the previous model, But it has video! the iPod nanos are very afford...

 

CodeDom and P/Invoke  Replies (1) 5 October 2007
Can I generate P/Invoke methods using CodeDom? Thanks, Ram Shriram...

 

Memory Utilization  Replies (2) 4 October 2007
I have an issue on memory utilization in ASP.NET with C#. When we open the application memory utilization will be around 20MB and if traverse through other pages utilization keeps rising, it will n...

 

Foreground thread count detection  Replies (1) 2 October 2007
Is there any way to detect/count the number of application defined foreground threads that are currently active? Background: We have a library that processes application requests in the backgrou...

 

unitialized readonly fields produces no warning  Replies (2) 29 September 2007
It is possible to declare and use/instantiate a class with a uninitialized readonly field without even a compiler warning. Why don't I get warnings? public class Stuff { public readonly in...

 

using CodeMemberFields in CodeMemberMethod  Replies (1) 28 September 2007
Hello, I am extending a previously created code generator I built using CodeDom but I have run into an issue. It seems as if it should be possible but how can I generate a variable (CodeMembe...

 

Pointers in VC.Net  Replies (3) 27 September 2007
Hi All, I am new on this VC.Net platform, So please dont mind to my question. In VC++ we can use pointers very easily, but i want to know if we can use: int *ptr = new int[10]; and char * in VC....

 

Porting  Replies (1) 26 September 2007
Hi all, I have unmanaged code written in VC++ and i have to port it to VC.Net i.e to make it compatible with .Net environment. Please suggest me how i can port whole source code with API's etc. W...

 

Bytes in All Heaps  Replies (2) 24 September 2007
Am having VS2005 on W2K3. The definition of this "Bytes in All Heaps" is the sum of all the heaps(Gen0+Gen1+Gen2+LOH). I could observe the value of "Bytes in All Heaps" equals to (Gen1 + Gen2 +...

 

starting streams at offsets  Replies (8) 24 September 2007
Is there an existing means of starting a FileStream at a given offset into a file? That is, can the origin be set somewhere other than the beginning of the actual file? As an example, let's su...

 

reading registry  Replies (2) 19 September 2007
hi, i've a requirement to scan the registry keys programatically in a console application and read the data of the keys.. given a registry key, say,"HKEY_USERS". user should be able to scan the ...

 

.NET CLR2.0 error with CLR1.x profiler  Replies (1) 18 September 2007
I'm looking for information to help debug the following message in the System Event log: .NET Runtime version 2.0.50727.42 - CLR 2.0 does not support profilers written for CLR 1.x What debug...

 

enforcing .NET1.1 compatibility of autogenerated a ...  Replies (6) 12 September 2007
Hello everyone, I have a little app the generates and saves assemblies on the fly, similarly to xsd.exe. While xsd.exe creates you source code, my stuff creates the dll directly using System.Re...

 

CLR Debugging  Replies (1) 11 September 2007
I have only intermittent success with debugging CLR stored procs. Sometimes it works, and sometimes it does not. When debugging does not start, the output ends at the line: Auto-attach to proces...

 

System.Security.SecurityException  Replies (1) 6 September 2007
Building a windows exe application using VS2005 - VB.Net Debug within the VS IDE works and the compiled exe works from the \bin\debug folder but not from any other location on the same computer. ...

 

incorrect assembly format combined c++ c# on vista ...  Replies (9) 24 August 2007
I have an x86 managed c++ dll. I can access it without problems from c++ or c# on 32 bit platforms. On vista64, I can use it from a 32 c++ application. But, on vista64, if I try to load it from a ...

 

CLR hosting: unhandled exceptions and reliability  Replies (2) 23 August 2007
I'm trying to run multiple independent processes in separate AppDomains. Ideally, these processes should be restartable after failure (which hopefully occurs very rarely). I had assumed that, sinc...

 

caspol: -name option doesn't seem to work properly  Replies (1) 23 August 2007
I am trying to add a user level group with a name but the name -addgroup doesn't seem to check that the name is unique contrary to the documentation on MSDN. I am invoking: caspol -q -u -ag ...

 

loading referenced assemblies from a stream or byt ...  Replies (2) 22 August 2007
I want to be able to read then dynamically load a main and dependent assemblies from encrypted sources. I can get the load the first one into memory by using assembly.load from bytes. Is there ...

 

Mutliple calls to Assembly.Load()  Replies (1) 15 August 2007
Hi I was wandering if anyone knows what the effect of calling Assembly.Load() mutiple times for the same assembly will be in regard to loading the assembly into the AppDomain. I know that on...

 

new with clr project  Replies (1) 15 August 2007
Hi.. I have Visual Studio Standard edition and I wish to develpment a CLR store procedure but I don't find the database project template. Is possible to make a CLR Store Procedure in VS Standard ...

 

.NET Framework 3.5 -- What version of the CLR is u ...  Replies (2) 13 August 2007
This is probably a very basic question, but I cannot seem to find any Microsoft documentation regarding the answer. Is there a new version of the CLR for .NET Framework 3.5? If not, is the 2.0...

 

System.Data.OleDb.OleDbException  Replies (1) 10 August 2007
Any idea why I got like this error? ============= myConnection.Open() {System.Data.OleDb.OleDbException} System.Runtime.InteropServices.ExternalException: {System.Data.OleDb.OleDbExcepti...

 

source file and line numbers for mdMethodDef  Replies (2) 8 August 2007
Hi, I have mdMethodDef and IMetaDataImport. I can use to to figure out the name and class of the method using GetMethodProps. How do I find the source-file and line number that this method is ...

 

Using managed code in unmanaged app  Replies (3) 8 August 2007
Hello, I am interested in calling managed code from an unmanaged app. I have been able to do it using a C++ wrapper to call in to a C# dll using ExecuteInDefaultAppDomain(). That is a pretty ...