-
- implementing IObjectSafty
by Sam Andy
- 1 Replies
- Last post
by TaylorMichaelL
- I implmented IObjectSafety just for one COM Interop and its work fine. but now I have about 80 COM Interop in the same assembly, should I need to implement I ObjectSafty for all these Interops or there is away to make all the objects in the assemble safe for scripting.
Thanks,
-
- Code access Security- when to use and when not to
by TA123
- 3 Replies
- Last post
by Nicole Calinoiu
- Hi All,
Can somebody please explain as in what types of application do we use Code access security and How CAS is generally used e.g do we add RequestRefuse for registry in every internet application.
I want this classification for 4 types of applications broadly:
1. stand alone application
2. enterprise application
3. B2C application
4. B2B application
I am new to architectur
-
- Detecting unmatched characters with Regex
by wjousts
- 6 Replies
- Last post
by OmegaMan
- I'm using a Regex to extract information for a string and it works really well. What I need to do in addition is to see if there are any characters in the original string that did not match the Regex so I can flag the user that they did something wrong. Is there a quick way to tell after using Regex.Matches if there is anything in the string that hasn't been matched (other than whitespace).
-
- GetBytes from object or ValueType
by Johan Hallberg
- 2 Replies
- Last post
by Mark Dawson
- Hello!
I have a class that has a property of type object that I am using to store an int or a byte or a short etc (only ValueTypes). Now I would like to add a method to get all bytes from the object like:
int value = 10;
myClass.Value = value; // myClass.Value is of type object
byte[] bytes = myClass.GetBytes();
Is there an easy way to get all bytes from an object like BitConverter.
-
- .net framework loading
by RickN
- 6 Replies
- Last post
by RickN
- 1) Does the .net framework load when xp or vista starts or is it loaded when you open your .net app
2) Does each process load its own copy of the .net framework dll's or once loaded into memory by one process, shared.
Thanks,
Rick
-
- Fail to Load dll from C# when no VS2005 installed -'System.IO.FileNotFoundException'
by Idit
- 9 Replies
- Last post
by vijay venugopal
- Hi, I am running C# application with a MFC dll on VS2005. When I copy the .exe file and the dll to another computer I get the following errer: An unhandled exception of type 'System.IO.FileNotFoundException' occurred in FilesUpdateApplication.exe
Additional information: Could not load file or assembly 'StrtData, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
-
- Loading 32/64-bit unmanaged DLLs
by Alex Ivanoff
- 1 Replies
- Last post
by HWM
- I want to compile my managed assemblies (both DLLs and EXEs) as AnyCPU. I have a small number of unmanaged DLLs, for some of which I have both a 32-bit version and a 64-bit version, and for others I only have a 32-bit version. Obviously, applications that load DLLs of the latter kind must be compiled as x86 to make them run as 32-bit processes on 64-bit systems. Regarding the former kind, I would
-
- SqlBase ODBC commands throw InvalidOperationException, SUCCESS_WITH_INFO
by bpeikes
- 2 Replies
- Last post
by bpeikes
- I'm trying to use the ODBC connection on a machine to connect to a SqlBase database. I'm able to use linked tables in MS Access on the machine using the same DSN, but when I try to use it via dotnet ODBCConnection, when I execute the query I get a InvalidOperationException. If I go into "Administraive Tools" in "Control Panel" and test the connection, it seems to work fine. I c
-
- Silent failure on COM interop dependencies
by andrewpa
- 2 Replies
- Last post
by andrewpa
- Hi, First of all I have a COM interop assembly that is being registered via regasm /codebase. The codebase directory also has several .NET dependencies that are not GAC'd (a base class, shdocvw.dll, etc.) and all of this works fine and the object works as intended. If however, I add a class instance of another type in another assembly in the solution and re-register, the object will not work. olev
-
- send 'ESC' to Process
by flies
- 3 Replies
- Last post
by flies
- Hi, I'm writing a C++ application that calls another application (which controls a little servo) repeatedly. I use the .Net Process class to open the child application. In normal operation (when called directly from the command line), the child only quits when it the user hits escape. So i need to send the escape character to the process via process. escape is supposed to be ASCII 27, but creating
-
- RFID Technology
by Aneesh
- 2 Replies
- Last post
by SamirBellouti
- Can anyone give me an idea about how to implement RFID technology using .NET Is there any Assemblies available in .NET Thanks Aneesh
-
- problem with http stream
by the_huge_novice
- 4 Replies
- Last post
by the_huge_novice
- Hi, I'm trying to write some code that will login to a website, then log out. The login part works, but I can't make the logout part to continue on the same stream (test), using for example the same cookie that was set by the website, or the same useragent thatI've chosen in the beginning. Here's the code: THE LOGIN PART: WebRequest test = WebRequest.Create("http://website.com/login.x
-
- Why do I get "The transaction has already been implicitly or explicitly committed or aborted"
by hdp203
- 4 Replies
- Last post
by hklbj
- Without using transaction scope the code runs fine. With ts, the exception is throwed when I call Update(). Below is my code in C++: try { Transactions::TransactionScope^ ts = gcnew Transactions::TransactionScope(); SavePatient(hPatient, hProgress); ts->Complete(); } catch (Exception^ e) { MessageBox::Sho
-
- Developing in .NET/C# versus ATL/C++
by AndrewBGill
- 1 Replies
- Last post
by nobugz
- Help, I have a client that is insisting on developing a new application in ATL/C++ instead of .NET/C#. This has to be a Rich Client, it needs to capture video through a Frame Grabber, interface with .NET Web Services and serveral hardware devices connected via USB ports. It must be able to display a 3D image. The client argues that .NET is not mature enough for rich client side applications (Win
-
- Framework 1.1: Unhandled Exception: OutOfMemoryException in Windows service application
by Saleem Khan
- 1 Replies
- Last post
by TaylorMichaelL
- Hi,
We are developing window service Server application.
From the client (windows) application i'm trying to establish the TCP (10000) connection to the server application.
When i doing the load testing i'm getting following error. The application not able the handle the exception
Could youy plz clarify this error. when this kind of erros has occured.
Unhandled Exception: OutOf
-
- When calculated DataColumn get updated?
by Minherz
- 0 Replies
- Last post
by Minherz
- Hello, I have a simple dataset containing two tables bound by data relationship. The relationship uses a primary id field from the first (parent) table and reference id from the second (child) table. The reference id column is setup as a calculated column which value is equal to the value of object id column in the case the type column value is (say) 1. Now, when i create a new row of the second t
-
- WSDL "magic"
by houtexwebdev
- 3 Replies
- Last post
by John Saunders
- I'm taking the interface-first approach to some web services we're creating.
When some "Sets a Web Reference" to my resultant service, I have a specific WSDL that I need to have used. The WSDL that gets generated is different that the original WSDL that was used to create the service and some of the schema information is different enough that it is actually incorrect. For example,
-
- culturespecifc DateTime to string with milliseconds
by bitbonk
- 7 Replies
- Last post
by nobugz
- How can I convert a DateTime instance to a string that includes not only year,month,day,hour,minute (that's what ToString() returns) but also seconds and milliseconds in way that the current culture is taken into account, i.e. the complete date including seconds and milliseconds is displayed in the format of the current culture
-
- hasChildNode false "True"
by kleelof
- 4 Replies
- Last post
by kleelof
- Hello: My problem is I'm getting a false "True" with the 'hasChildNodes' test. Here is some of the code I am using:
Dim rtn As XmlWhitespace = start.CF.CreateWhitespace(vbCrLf + Space(8))
Dim newNode As XmlNode = start.CF.CreateElement( "item" )
Dim newAttribute As XmlAttribute
'check name - do not add if name exists already
Dim searchNode As
-
- Get white spaces of TrimEnd()
by nikos_22
- 3 Replies
- Last post
by ericrtodd
- I have a string with some white spaces in the end s1="abcd\n\r\t..." I want s2 to be : s2 = s1.TrimEnd()+"some text" +"\n\r\t..." How can i get the white spaces in the end so i can add them to s2
-
- System.Data.DataTable reuse
by TechNoFear
- 4 Replies
- Last post
by TechNoFear
- Hi,
the following only creates a table once, but I would like to create the same table often
Code Snippet public DataTable MatrixColumns { get { //objDS.Tables.Clear("MATRIX_COLUMNS"); //objDS.Tables["MATRIX_COLUMNS"].Clear(); //objDS.Tables["MATRIX_COLUMNS"].Reset(); //objDS.Tables.Remove("MATRIX_COLUMNS"); if(objDS.Tables["MATR
-
- Reflection problem [very interesting reflection problem]
by omrivm
- 3 Replies
- Last post
by TaylorMichaelL
- Hi,
I have a very interesting problem in reflection.
Let¡¯s say that we have a ¡°BaseClass.cs¡± and we have ¡°ChildClass1.cs¡± and ¡°ChildClass2.cs¡± that inherits from ¡°BaseClass.cs¡±. [ public class ChildClass1\2 : BaseClass]
Now the base class has ¡°DoSomethingMethod¡± and a ¡°ChildDoSomethingMethod¡± abstract method. So every child implemnts his on ¡° ChildDoSomethingMethod¡± and when I c
-
- Deserializing into an existing object
by ury
- 5 Replies
- Last post
by John Saunders
- Hi,
With XmlSerializer, Deserialize creates a new object. I wonder if there is a straightforward way to deserialize into an existing object. By "straightforward" I mean, for exmple, NOT implementing an IXmlSerializable.ReadXML method for each of my many classes.
To illustrate my problem, assume I have a visual control displaying the property values of an serializable object
-
- Enhanced Regex
by .NETPhreak
- 1 Replies
- Last post
by ScubaSteve20001
- I receive text files in a specific format: 1.100:abcd1234;1.200:aasve2;1.300:asddv
I use the following Regex and achieve what I need to acheive:
Code Snippet
\b( <key>\d{1}[.]\d{3}):( <value>.* );|.+\b Here are the results: <key>1.100<value>abcd1234; <key>1.200<value>aasve2; <key>1.100<value>asddv I am sure there are ways to
-
- check strong name for delay signed assembly?
by Donal McWeeney
- 3 Replies
- Last post
by Donal McWeeney
- I have a piece of code that checks if my assemblies are not signed using the AssemblyName.GetPublicKey() method and checking if the public key is null or length == 0.
However if an assembly is delayed signed these checks pass, but the assembly cant be installed to the GAC. What is the logic I need to check for this.
Thanks
Donal