-
- XMLDocument.Save() = 0 length files, half written files etc.
by JohnGalt
- 14 Replies
- Last post
by Alois
- I'm having something most unusual happen with .NET 2.0 on a very few computers (like 2 or 3 out of thousands). We store our information in a custom config file, which we write out from an xml document. Well 99.9% of the time it works just fine to do XMLDocument.Save() and the file is writen correctly.
But every once and a while on these specific machines, the file doesn't get saved correctly. S
-
- Remoting question
by Evgueni
- 4 Replies
- Last post
by Jesus Ruiz
- Hello,
I am using remoting in .NET 2.0, IPC protocol.
I want to check if there is a remote object at a particular URI. If there is none, I would like to register an object as a WellKnownServiceType.
In order to check the existence of a remote type, I tried
RemotingServices .GetServerTypeForUri(uri);
But I get the following error:
Unable to cast object of t
-
- What encoding is text pasted from MS Word?
by dan.o
- 2 Replies
- Last post
by dan.o
- In my ASP.NET app I'm accepting text pasted in from MS Word and want to store it in a text file for later display.
I want to maintain quotes and diacritical marks so something like UTF8 encoding would be perfect.
However, the problem I have is knowing what encoding the pasted text has in order to convert it...
byte [] srcData = Encoding. .GetBytes(sTemp); byte [] dstData = E
-
- Dynamic Generic XL Upload With Validation in C#
by gaddamChandra
- 2 Replies
- Last post
by gaddamChandra
- Hi,
This is from Chandrakanth.
I need some Guidance regarding Dynamic Generic XL Upload With Validation .
Can any one give me some suggestion for this Dynamic Generic XL Upload in C#.
Thanks & Regards
Chandrakanth.Gaddam
-
- email sender
by iskiskisk
- 2 Replies
- Last post
by iskiskisk
- hello
i want to make a program to send emails
the idea , i have a text file , i want to load it into my program and send it to my email
Thanks in advance
-
- Update Multiple TableAdapters in One Transaction
by Johannes Wind
- 5 Replies
- Last post
by Declan_
-
(VB.Net 2005 & SQL server 2005) i need to update several tables in a database, using several TableAdapters (each for one table). Since all the tables should be updated, or all fail to update together, i need to update all these tables in ONE TRANSACTION.
can anybody help me please
thank you very much
-
- Using DCOM/COM+ with Firewall
by ADivaker
- 0 Replies
- Last post
by ADivaker
- Hi All DCOM/COM+ Gurus,
we have a COM+ component that runs on a Win2K3 Server. This components is being called from a web server (Win2K3). there is a firewall in between web server and app server. When the web server sends a request to instantiate the COM+ component, the communication happens pretty fast via the firewall on port 135 and object get instantiated. But when object reference is sent
-
- Enumeration, garbage collecting and allocation
by Chryso
- 8 Replies
- Last post
by Chryso
- Hello, I am trying to see why my application has some performance issues. So I dowloaded the CLR Profiler for .NET 2. And now it is saying that I am allocating some enum variables and here is the line code that does it if I interpret correctly the allocation sequence of the profiler: return WindowsGame.Game1.localization.localText[WindowsGame.Game1.lg][Localization.enumText.startGame]; local text
-
- colon
by c# interface
- 6 Replies
- Last post
by c# interface
- Hi gurus
I am new to c# or dot net
i am having n xi interface which sends a soap msg to the webservice ( genrated by dot net ) .
this soap message has a "ab1:" which is not accepted by the webservice and the receiption is failed . i would like to eliminate the "ab1:" from the soapmessage
"ab1:acknowledgementsbase x mlns:ab1 = " urn:xxxxx.com/xi/utils.ackno
-
- I want's to make an application which can be sceduled to run at particular time .[what can i do windows service,windows applica]
by Kamii47
- 3 Replies
- Last post
by Geert Verhoeven
- I want's to make an application which do particular tasks. It can be sceduled to run at particular time. [what type of application i make can i do windows service,windows application e.t.c
-
- problem with process
by nutsukae
- 7 Replies
- Last post
by nobugz
- string d = "sqlcmd -S .\\sqlexpress -i \"c:\\Table.txt\" ";
Process p = new Process();
p.StartInfo = new ProcessStartInfo("c:\\windows\\system32\\cmd.exe");
p.StartInfo.Arguments = d ;
p.Start();
i want to run Table.txt by command prompt.
in my application i have a button for run cmd.exe i try to pass argument to cmd.exe but i don't work .
w
-
- update database from tableAdapter
by fuatse
- 1 Replies
- Last post
by Andrej Tozon
- hi
i have a data table which is bound to a datagridview. i built my database with microsoft access 2003 . when i update the table,
i call the update method of my adapter and then make the dataset to accept changes but it doesn't work. i have done it several time and sought help from the but it still doesn't work.
the code looks like this
incomeTableAdapter.Update(salesData
-
- Binding command parameter source column for datarow validation
by kaborka
- 6 Replies
- Last post
by kaborka
- I need to validate a DataTable row using a SQL sp call before updating the row. spValidate would take as parameters the same table column values as spUpdate, but it would return as its recordset a set of validation result rows: (ErrType varchar(20), ErrMsg varchar(255)). A SqlCommand calling spUpdate is set as the UpdateCommand of the main SqlDataAdapter for the table. The parameters of the Update
-
- Read and write HashTable on file as object
by MohamedSaeed
- 3 Replies
- Last post
by MohamedSaeed
- Hello, I wanna read and write HashTable on file as object using C#,how thanks
-
- Dataset.WriteXml and xml:space="preserve"
by Daniele Bortoluz
- 14 Replies
- Last post
by BonnieB
- Why the method Dataset.WriteXml() produces xml with the attribute xml:space="preserve" in the elements containing empty strings Is there a way to avoid it Here is an example : - Define a dataset named DatasetTest in dataset designer, with one datatable named Table1. Add two datacolumns named Column1 and Column2 to the datatable. The datatype of both colums is string. - Call this code snippet : &
-
- Saving to/Reading from an Access database using VB Express
by matt2k7
- 1 Replies
- Last post
by VMazur
- Hi, ive created a project in vb and id like to save to and read from an access database. for the sake of simplicity lets say i just need to save a name and a number that i will later retrieve. ive got the input fields in vb and a table where i can save to in access all i need is the code that will allow me to save that data to the database any and all help is much appreciated thnx
-
- ASN1 bad tag value met
by gbulfon
- 6 Replies
- Last post
by Luca.Gargiulo
- Hi, i receive this error when i try to decode encrypted data. I use EnvelopedCms class, the method Decode raise the exception. I can't find more info about this.
The error say:
System.Secutiry.Cryptography.CryptographicException: ASN1 bad tag value met.
The Stack trace show me that EnvelopedCms.OpenToDecode method is reached.
I appreciate any help.
gabriel
-
- Sockets vs TCPListener/TCPClient
by Derek Smyth
- 2 Replies
- Last post
by Derek Smyth
- Hello folks,
I've decided to close a knowledge gap I have in network programming and it has been ok so far but here is a question.
You can network program at a lower level using Sockets directly or you can use TCPListener/TCPClient classes, which are easy to use wrappers around the Sockets approach. So my question is this...
What kind of scenarios would making using the Socket
-
- How do you determine if an attribute exists in a XML node without a Null Reference error?
by Michael J
- 4 Replies
- Last post
by Martin Honnen
- If the attribute "name" is not in the node, I assumed the following would work:
if (objTmplt.Attributes.GetNamedItem( "name" ).Value != null )
styleName = objTmplt.Attributes[Atrb.Name].Value;
However, it throws an unhandled exception. This has me backed into a corner where trying to prevent a null unhandled exception causes an exception. I worked with
-
- One call to DB for multiple datatables?
by Jim Shipley
- 3 Replies
- Last post
by William Vaughn
- Is it possible to fill multiple datatables in a dataset with ONE call to the database
Ex:
Select OrderNumber from Orders where OrderNumber = @OrderNumber
Select OrderItem, Quantity from OrderDetails where OrderNumber = @OrderNumber
There are two select statements which are master detail related. In my application, I would actually need three or four related tables. I
-
- Multithreading & TCPListener
by MoniDD
- 7 Replies
- Last post
by MoniDD
- New to this subject - just need pointers at this time.
So far I have completed a small projects of two console apps (Listener and Client). So far so good.
Problem trying to solve.
The TCPListener keeps "listening" all the time. It listens well but ain't letting the rest of the application do anything because of the way the entry in the listening loop I am using (taken from Inter
-
- Problem with serializing arrays
by TheExitCrash
- 5 Replies
- Last post
by Daniel Roth
- I have been using the Web Service guidance package to create a web service.
I have a DataType (Trip) defined that has a DataType (Months) array as one of its properties. An array of Trips is returned to the client, and each Trip element should contain one or more Month elements in its Months array. When I debug the code, the Month array is getting populated and retains its elements up to the re
-
- Exception while connecting to server
by prasannakumar63529
- 3 Replies
- Last post
by .net newbie
- Hi,
I created a remoting server and client application using c#. I have used events ( i don't know whether if any drawback is there doing so ). Everything was working fine locally, but when i put the remote server in another machine, i get the following error:
"A remote side security requirement was not fulfilled during authentication. Try increasing the ProtectionLevel and/or Imper
-
- Problems with Strong Name Key
by Mannee
- 6 Replies
- Last post
by Feng Chen - MSFT
- Hi! In my project I need to use one library in two versions (the old and the new one), so I decided giving them Strong Name Keys. Then I reattached references to those libraries to my project. While recompiling i got an error: " The type 'MyLibrary.Serialization.MyTestStruct' is defined in an assembly that is not referenced. You must add a reference to assembly 'MyLibrary, Version=2.0.0.0, C
-
- Memory layout in .net
by shinu
- 10 Replies
- Last post
by :)Eric Han
- Where can i find info about memory layout of objects and info about storing variables(both member and local) in memory I dont have any experience in C++ or C. Thanks in advance!