| Check for the CLR (3 replies) |
| microsoft.public.dotnet.framework.clr |
| Any way to check for the existence of the CLR in jScript from IE? I want to know if the client has the CLR and what versions are installed. thanks John Grant |
|
| Creating and ASP like string parser (5 replies) |
| microsoft.public.dotnet.framework.clr |
| I have the need to create an ASP like parser that can basically embed templated values into a document. The idea is to have something similar to the way the ASP/ASP.NET parser works so you can use expressions and codesnippets in the text document and embed them into the output. But it has to work with strings or file inputs independently from a Web interface. Before you say, why would you ever nee... |
|
| Application_BeginRequest (2 replies) |
| microsoft.public.dotnet.framework.clr |
| Hi, I've seen that in the global.asax file the session object is still nothing, so I can't access to all my session variables.I'm working in the Application BeginRequest method. Is there a way to do it? What could I use instead of? I also tried the context.items, but it seems to me like if every time i access the global.asax.vb file all the context resets. I'm I wrong or I have to store this data ... |
|
| Do I need to worry about dependency on runtime version? (4 replies) |
| microsoft.public.dotnet.framework.clr |
| Hi. When we write our class libraries, are we tied to a particular version of the run time? If so, does that mean, when we deploy our class libraries, we should also deploy the runtime that we built with? It doesn't make sense though because if that's the case, then the customers would potentially have so many versions of the .NET runtime after they install different .NET components/libraries from... |
|
| ADO.NET (3 replies) |
| microsoft.public.dotnet.framework.clr |
| Hai.. We developed a .NET application( console application ) which continuosly queries the database(SQLServer 2000) and builds xmls from the result.( Exe takes the raw xml from the database and applies the XSL). It continuosly runs on the database and executes aroud 4000 queries and builds xml for each query result. We are using SqlConnection and SqlCommand objects. and we are using ExecuteXmlRead... |
|
| I can't cast my object to it's actual type. (2 replies) |
| microsoft.public.dotnet.framework.clr |
| Here is a small "Hello World" app that gets into trouble doing dynamic loading. It can dynamically load a child class without knowing the actual type but fails when casting a dynamically loaded type to what it truly is. I can't tell if this is a bug or a feature. Just unzip into \projects and open the "Solution". Thanks, JDA |
|
| Getting the type of the calling object (6 replies) |
| microsoft.public.dotnet.framework.clr |
| Is there a way to get the class name of an upstream object? That is: if I instantiate an object of type ClassA which instantiates an object of type ClassB and then calls a method in ClassB, can that method (in class B) determine that ClassA is the caller? TIA /joel |
|
| Passing a parameter to Thread StartProcedure (3 replies) |
| microsoft.public.dotnet.framework.clr |
| It is my impression that in the .net framework, when you instantiate an object of type thread("spawn a new thread"), the only argument that you can give the constructor is the address of a function to start at. I assume that somewhere in the Thread Class source code there is a call to CreateThread() from the Win32API, or alternatively beginthreadex() from the C Runtime. Both of these functions tak... |
|
| Using Certificates for encryption. (3 replies) |
| microsoft.public.dotnet.framework.clr |
| I'm new to .NET Cryptographic classes. I want to sign a piece of data by one program that can be checked authentic by other programs. I created a test certificate with MakeCert, in a system store called "AuthServiceCertificate". I called the key container "AuthServiceKey". I want now to use the generated key pair in order to sign a piece of data using the .NET Cryptographic classes. I thought that... |
|
| Static Methods: Example of Bad practice? (5 replies) |
| microsoft.public.dotnet.framework.clr |
| I just ralized that I may have shot myself in the foot, so I'm looking for a reality check... If a class has a static method that accepts a parameter, what would happen to performance if the method was taking alot of hits under a heavy server load? Would this be a bottle neck? I'm thinking since statics are scooped to the class, that request to the static method would be synchronous accross ASP .N... |
|
| XmlConvert bug with decimal type (3 replies) |
| microsoft.public.dotnet.framework.clr |
| XmlConvert does not seem to correctly support the XSD decimal type. It fails to paser numbers that have been formatted by the same class: decimal i 1.35591253701407E 05m; string si XmlConvert.ToString(i); decimal d XmlConvert.ToDecimal(si); // This fails to be parsed, with an exception James Battle Ironbark Limited |
|
| Convert from String to byte (4 replies) |
| microsoft.public.dotnet.framework.clr |
| Is there a dotnet conversion form String to byte[]? /joel |
|
| Custom Declarative CAS Problem (5 replies) |
| microsoft.public.dotnet.framework.clr |
| Hi, I'm trying to define a custom permission that supports the declarative syntax, but it doesn't seem to work. Everytime I attempt to use the security attribute, it gives this error: F:\Unistar Frameworks\Security\Users\User.cs(27): Error emitting 'Unistar.Security.Permissions.UserDataPermissionAttribute' attribute 'Failed to load assembly Unistar.Security System.IO.FileNotFoundException: File or... |
|
| Reflection Question (5 replies) |
| microsoft.public.dotnet.framework.clr |
| I'm not sure that this is the right newsgroup for this question but I can't find newsgroup for reflection. Here is my question. I'm using Reflection to load an assembly and find out the Classes and the Methods exposed by this DLL. Dim AssemblyObj As System.Reflection.Assembly AssemblyObj System.Reflection.Assembly.LoadFrom("MyTemp.Dll") After that I want to delete this DLL file. The problem is tha... |
|
| AppDomain loading and unloading issues (4 replies) |
| microsoft.public.dotnet.framework.clr |
| Hi all, I'm having problems with executing code in a seperate application domain. The main reason I'm doing this is to be able to unload dynamic code I'm compiling on the fly. 1) Is it possible to load an assembly in another appdomain without going to disk? Seems all the methods for creating an instance require a physical assembly file on disk, while I have an assembly reference in memory and woul... |
|
| multiple appearances of performance counter category in perfmon (2 replies) |
| microsoft.public.dotnet.framework.clr |
| I create some custom performance counters programmatically with PerformanceCounterCategory.Create. I fire up perfmon, choose Add Counters, and drop down the list under Performance Object. Sometimes I notice that there are several entries for one or more of my newly created categories. Each seems to include the same list of counters, and each seems to work fine, but the redundant entries look stran... |
|
| Reading from binary file into a structure (2 replies) |
| microsoft.public.dotnet.framework.clr |
| I need to read a binary file. I know the format of the header of this file, so I'd like to put it in a struct. I open a FileStream on it so I can get the bytes of the header, but how can I place the read bytes in my struct? Thanks, Damiano Curia damiano.curia@apsystems.it |
|
| memory question (5 replies) |
| microsoft.public.dotnet.framework.clr |
| Hi there, As far as I've understood the .net garbage collector, it frees not referenced objects and moves the objects "behind" in memory, so there is no memory fragmentation. So I tried the following: I created three objects on the managed heap (let's call the a, b, c). I created pinned references (in C ) and stored the actual memory addresses in some DWORD variables. After the pin references are ... |
|
| INFO: Mysterious .NET Threads! (7 replies) |
| microsoft.public.dotnet.framework.clr |
| Hello to all! I had always been interested on how the .NET threads are managed by the OS. Afterall, from what the concept goes, each Win32 physical process can contain multiple AppDomains, which in .NET terms, is a logical process. And not only that, each AppDomain can contain multiple threads that are, again, logical in nature. So, the question I had always been pondering upon was how these "logi... |
|
| ThreadPool and HttpWebRequest (16 replies) |
| microsoft.public.dotnet.framework.clr |
| Hi, I have a serious problem using HttpWebRequest on a ThreadPool context. After some calls I get the following error "There were not enough free threads in the ThreadPool object to complete the operation.". I investigated the behaviour of the ThreadPool and I've seen that the number of threads grows until it reach 60 threads (I have a dual PIII 800MHz processor). When the HttpWebRequest code is c... |
|
| String.Trim is this correct functionality (5 replies) |
| microsoft.public.dotnet.framework.clr |
| Is there a bug with String.Trim? When I try this code I get an unexpected result: string result "A B A $ sign"; result result.Trim('A'); I expected result to be " B $ sign" BUT I GET THIS " B A $ sign" can anyone explain this? The MSDN help says: Removes all occurrences of a set of specified characters from the beginning and end of this instance. Overload List Removes all occurrences of white spac... |
|
| .NET Framework Version (5 replies) |
| microsoft.public.dotnet.framework.clr |
| Is there any way to tell what version of the .NET framework a specific app is running against? Say ASP.NET, for instance. How do I tell what version of the .NET framework ASP.NET is running against? This is not a constant since obviously new versions of ASP.NET can be released, and MS can theoretically release publisher policy files to bind to new versions of the framework (i think, right?). In an... |
|
| Cross platform (4 replies) |
| microsoft.public.dotnet.framework.clr |
| Has MS ported CLR to Unix platforms, Linux and Mac? Otherwise, how will it displace Java? |
|
| Floating point registers (7 replies) |
| microsoft.public.dotnet.framework.clr |
| Firstly, I don't know whether you consider this the correct newsgroup for this problem, but it covers CSharp, .Net Framework, the JIT compiler and the Visual Studio integrated debugger, so I thought I'd start here. The problem started when we discovered that calling Double.IsNaN(Value) from CSharp does not seem to work correctly. I don't know where the implementation of IsNaN is, and whether it is... |
|
| waht's the .custom means? (2 replies) |
| microsoft.public.dotnet.framework.clr |
| Dear Reader when I read the code generate by ildasm from System.Windows.Forms.dll,I find many statement like this: ..custom instance void [System]System.ComponentModel.BrowsableAttribute::.ctor(bool) ( 01 00 00 00 00 ) .custom instance void [System]System.ComponentModel.EditorBrowsableAttribute::.ctor(valuetype [System]System.ComponentModel.EditorBrowsableState) ( 01 00 01 00 00 00 00 00 ) what's ... |
|