-
- Use brackets without creating a group
by Ori'
- 4 Replies
- Last post
by Ori'
- Hello,
I want to use braces as part of my expression without declaring a new group - is it possible
In perl it is done like this:
Code Snippet
( :One|Two|Three)
Altough there are the () brackets this is not a group.
Thanks,
-
- MessageQueue problems under .net 3
by David L1
- 7 Replies
- Last post
by Marten Gustafsson
- Hi,
I recently switched to the version 3 framework with SDK build 5536.0.2 and I'm having some issues wth code that uses the MessageQueue class.
Firstly, MessageQueue.CreateCursor() sometimes throws a MessageQueueException with the message 'Remote computer is not available'. It's not absolutely consistent and occasionally works correctly. I still have the code compiled against the V2 framewo
-
- 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
-
- does acropolis work for .net 1.1
by LanceLink
- 4 Replies
- Last post
by LanceLink
- Just wondering if it'll work for .Net 1.1 can it create charts
-
- How do I Access a simple web service function in C# or VB.net?
by Miles Cook
- 3 Replies
- Last post
by Miles Cook
- I need to invoke a function called initUser(), which takes 2 objects. The first is a user object, that consists of: accountID as string, userID as integer, dateRegistered as a Date, and a few others. The second object it takes is the session ID. When it has been called, if the function returns true, then the user needs to be directed to another site straight away. Now how do I code this I've been
-
- suppress asynchonous part of web service
by adisD
- 4 Replies
- Last post
by Steve Maine -- MSFT
- Hi
is ther any way to suppress generating asynchonous part of web service proxy.
Our customer will never consider doing ws calls in asynchonous way.
Is there any way in triggering wsdl.exe emitting only synchronous part of code
Thanks in advance
-
- StreamWriter cut off
by joeboy68
- 3 Replies
- Last post
by Farhad Bayanati
- I was using a StreamWriter object to write strings from an ArrayList to a file. Everything runs perfectly, but it cuts off in mid string twoards the end of the ArrayList. Can anyone help
-
- XmlDocument.Load("http://localhost/test.xml") failed because of localhost basic http authentication
by Encaps
- 2 Replies
- Last post
by Derek Smyth
- Hello Everyone! environment: Visual Studio 2005, C# I'm failed to do the following when webserver requires http authentication: XmlDocument _xmldoc = new XmlDocument(); _xmldoc.Load("http://localhost/test.xml"); I got exception: "The remote server returned an error: (401) Unauthorized" Is it possible to authenticate How Thanks in advance. Andrew.
-
- MethodAccessException making ECall (FastAllocateString) via DynamicMethod
by Michael_Giagnocavo
- 2 Replies
- Last post
by Michael_Giagnocavo
- I'm trying to call string.FastAllocateString directly from my code. (Actually, I'm trying to avoid unnecesary memory copies when creating a string from a char* - if there's a better way, I'd love to know.)
This is my code:
Code Block
var fas = new DynamicMethod ( "" , typeof ( string ), new [] { typeof ( int ) });
var fasMethod = typeof ( strin
-
- Create a trigger from C#
by LE0
- 3 Replies
- Last post
by OmegaMan
- Hi all. I would like to know if there is a way to create a trigger from code, for updated/deleted records, where I can pass a user_name that performed the action. The reason for that is that I perform all database operations using one SQL user account, and I cannot use current user from SQL server. So essentially I am thinking of creating a trigger on the fly when a record is updated or deleted, p
-
- Thread multitasking
by Mario V
- 2 Replies
- Last post
by Mario V
- Hello,
could anybody advice me with a problem when a multi-threaded application has one thread which is critical and needs to get control periodically without any bigger delay but this situation occures The stuation is that a loop in the thread must be passed at least every 3 seconds otherwise it is a problem. Is there any technique how to assure this and prevent other threads to block this one
-
- Blocking an Async Web Request
by ManOLama
- 2 Replies
- Last post
by Jorg Jooss - MSFT
- Hello! Maybe its an oxymoron but I'm having trouble trying to block a web request using MS' example code below. I tried a synced request to grab a page but the http server I'm grabbing from continuously returns data so the synced request doesn't know when to stop. Thus I went with the code below so that I could stop the request after a couple of seconds and grab whatever data it was able to get. H
-
- XML in XSLT format
by Maksim
- 3 Replies
- Last post
by Maksim
- I have a excel.xslt in my solution. I have a dataset called experiment with a few datatables, lets assume Table1 Table2 and Table3. Can you please give me a code sample of how from start to finish on how to write an XML file in the format specific in the XSLT and save it to a folder.
-
- Remoting by MetaData assemblies
by Mattias Sands&&
- 4 Replies
- Last post
by Mattias Sandsäter
- I have some trouble to get my application to work. I have followed a simple example from the book "Distributed .NET programming in C#, Tom Barnaby Apress 2002", chapter 5.
I got 4 parts. Server and Client of course, and two Class library projects where one of them is a copy of the other but all the methods are empty (well no, but all they do is to throw exceptions).
In th
-
- How do i keep Instance of current dataset???
by Tryin2Bgood
- 8 Replies
- Last post
by boban.s
- I have a Datagrid.DataSource = mydataset.....when i add new rows to it and close out the form and then i try to open that form back up...the form is blank...why is that
-
- How to batch execute with a console command line exe?
by yuanning
- 10 Replies
- Last post
by yuanning
- Hi,
In my app, I need to let a console command line tool do some work,
First, how to start it I have tried process.start(itsname), But I dont know how to let it read input command. The command format is "commandname pram [pram]...".
Second, If I have many processes during a session, and I dont think start new process sounds good. Then, what should I do
-
- Most Efficient Way of Converting XmlDocumnet into Byte Array(Performance wise)
by SonuK
- 3 Replies
- Last post
by Nikolay Glushnev
- Hi,
I have an XmlDocumnet which i am trying to convert into byte Array as follow:
System.Text.Encoding.Default.GetBytes(xd.OuterXml)
but on the performance wise it is taking too much time specially xd.OuterXml is taking much time.
Any more efficient way
-
- Data Out Of Range Errors
by Peter T of Scottsdale
- 9 Replies
- Last post
by BonnieB
- This is driving me nuts!
I'm trying to update a SQL Table column with the data type System.Int32 via my VB project created in Visual Studio 2005. I can update it directly using Server Explorer without any difficulty but when my program tries to update the TableAdapter with any integer larger than 9, I get the following error:
System.ArgumentException: Parameter value '267.0' is out o
-
- Access 'App_Data' folder
by Marcos Ruano
- 1 Replies
- Last post
by Marcos Ruano
- In VS2005 I have created a 'WebService' project. I have added the ASP Folder named 'App_Data' to the project. One of the procedures to be executed during the invocation of the operation provided by the webservice must read an XMLSchema to validate an XML file. I placed the XMLSchema into the 'App_Data' folder since this folder should be used for storing files to be shared among the application co
-
- "DataTable.CaseSensitive" problem
by Larry Smith
- 2 Replies
- Last post
by Larry Smith
- Hi there, Can anyone explain why I should get the following error when creating a "Relation" between two tables in Visual Studio: "Cannot add a DataRelation or Constraint that has different Locale or CaseSensitive settings between its parent and child table" The "DataTable.CaseSensitive" property is the cause because it's on for one table but not the other. The relati
-
- Web services / Hosted Controls catch 22
by SteveCroy
- 6 Replies
- Last post
by SteveCroy
- We have created a Hosted .Net Control that uses web services to talk to an IIS server. Works great; except behind an Microsoft ISA proxy server that expects authentication. The user gets a 407 Proxy Authentication failed. Through exhaustive searches of the internet we have concluded that the answer should be something like:
WebProxy proxy = ( WebProxy ) WebRequest .DefaultWebProxy;
-
- NetworkStream.Read()
by Lars1346
- 1 Replies
- Last post
by Lars1346
- In the below code example, stream is of type NetworkStream and uses default properties (CanRead = true, ReadTimeout = Infinite). In what situation would Read(...) return 0 From what I can gather this call would block until it receives data so it should not return 0 in any case.
Code Block
byte[] msg= new byte[10];
if(0 == stream.Read(msg,0,10))
{
throw new Exception("
-
- What is the best way to insert 4000 records to database every 5 secs. in C#?
by akaRickShaw
- 7 Replies
- Last post
by akaRickShaw
- Hi, just like the subject, what is the best way Currently, I have a stored proc. to do the inserting of records that is invoked by my C# app. So, every 5 secs, a code is called to insert the 4000 records. I also have a some sort of a header record for the group of 4000 records. When I look at the record created date of the header record, they roughly 14 secs. apart. Thanks, Rick..
-
- Setting the working set minimum
by Adiavn
- 11 Replies
- Last post
by Adiavn
- Hi
I am trying to minimize page faults in my windows application by trying to set the working set to be equal to the size of the process's "VM size".
I have tried using both SetProcessWorkingSetSize and SetProcessWorkingSetSizeEx but I only manage to decrease the size of the working set, not increasing it.
Is there a way to do this
Thanks
-
- Best Practice Question: Where to define connection?
by Christopher Hardage
- 6 Replies
- Last post
by G1
- All,
Please forgive me if this question has been answered here or elsewhere. I've spent quite a bit of my work and free time combing resources (MSDN, help files, third party books, Google) and apparently am looking in all the wrong places.
I am developing a fairly simple MDI application using Visual Studio 2003, .NET 1.1, Visual Basic.NET, and ADO.NET 1.x connecting to a SQL Server 2