-
- New to XML and want to learn.
by Tyrael117
- 10 Replies
- Last post
by Tyrael117
- I am currently on a developing team for a game. I know many codes, such as C++, HTML, PHP, and C#. My team leader was asking me, if I knew XML, I said no I do not. So I wish to learn it. Are there any recommended books or tutorials that you suggest Also, what is used to edit XML Thanks, Tyrael
-
- Detect a word in a line
by justkatie83
- 5 Replies
- Last post
by Sergei Z
- I am having problems with something similar to this. I have a file name called "tax_2006_12345_678_9999.pdf" I need to pull out the 12345 part of the file name. Every file will start with tax_2006_ but the next numbers will all be different. In my original test, I was using [^tax_2006_]+[0-9]+ but once I came across a number that had a 2, 0, or 6 in it, it would be dropped. So obviously,
-
- Genrics list<type> serialization problem.
by Vaibhav Pandey
- 8 Replies
- Last post
by vaibhavp
- Hi, I am developing one app with c#. This app has 2 custom classes. [Serializable] Class CustomObjectList { Systsem.collections.generics.list<CustomObject2> objlist = new Systsem.collections.generics.list<CustomObject2>(); } [Serializable] Class CustomObject { private string _name; private _oldAddress; private string _newAddress; [System.Xml.Serialization.XmlEleme
-
- Connection string
by Gemma
- 2 Replies
- Last post
by Derek Smyth
- Hi Guys,
I've made one project but I want to provide the functionality to modify the connectionstring from a file. Unfortunately I have used table adapters as well in my project and therefore though I'm getting the server name and connection string from an inf file, its still not working when I click on form which have grid.
Is there any way of writing to settings file or have my connect
-
- Who is the owner of the lock if events are used in threads?
by milax
- 2 Replies
- Last post
by nobugz
- Hello,
I have a application with two threads. I have also a resoure that is synchronized by lock.
When testing locks before this App I noticed that if one threaded application for test purposes
invokes code like below it does not start waiting.
lock(this)
{
.... some code
lock(this)
{
... some code
} // Execution goes through both locks.
}
O
-
- Excel to CSV
by Rocksie
- 3 Replies
- Last post
by Paul P Clement IV
- Hi,
I have a VB program which creates an Excel object and writes data into an excel file.
This data is a report which is sent through mail to the admin. Now i ve been asked not to use Excel Object. So i am writing the data into a CSV file. Is there any other alternative I also have a problem when i write few fields into CSV like Name(LastName,FirstName) format also I have few numbers pre
-
- Run .NET executable over the network
by Darril
- 4 Replies
- Last post
by foxjazz2
- What do I need to do to run a VB .NET executable over the network
I have written a simple VB .net program. It works fine when executed locally, but simply will not run when executed over the network.
For example, when connecting to the folder via the UNC path (Start -> Run \\ServerName\ShareName ), and then doubleclicking on the executable in the Debug or Release folder, the mouse changes
-
- Upgrade to .net - Binding a textbox to a field in the recordset
by SSwam
- 1 Replies
- Last post
by SSwam
- Hi,
I'm doing an project upgrade from vb6 to vb.net 2005. One of the forms has a upgraded Datagrid that is bound to a recordset thru the Datasource property. There is a sub that was binding the textboxes to the fields from this recordset. The code after upgrade was looking like this and it had an error.
txtProposalNum.DataSource= mrsProp
So I chnaged it to be like this
txtproposalnum.
-
- pinvoke DsGetSpn and DSWriteAccountSPN
by Christopher Lewis
- 5 Replies
- Last post
by nobugz
- Does anyone out there know how do PInvoke DsGetSpn and DSWriteAccountSPN
I'm trying to add SPN's to accounts (computer and user accounts) for Kerberos authentication on an IIS Site, basically mimicing SetSPN in C#.
The C++ code for the two functions looks like this:
NTDSAPI DWORD WINAPI DsGetSpnW( IN DS_SPN_NAME_TYPE ServiceType, IN LPCWSTR ServiceClass, IN LPCWSTR ServiceNa
-
- 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
-
- DTS Package called from C# not running all the time.
by mcmcom
- 0 Replies
- Last post
by mcmcom
- HI all, hope you can help me out.
i have a DTS Caller class i am using in a C# console app to import text files into a db table. The package gets called and run normally most of the time, but about 20% of the time it just Executes and then closes down. For example i have a file called file1.txt it has about 40000 rows in it to be imported. I can run the DTS package and it will just execute and
-
- SelectSingleNode
by Newguru
- 2 Replies
- Last post
by Newguru
- Hi, can i select a single child node of a parent node using xmlnode object where xmlnode object points to parent node <Products> <Product Name= "IceCream"> <Flavours> <Flavour>Venila<Flavour> <Flavour>Orange<Flavour> . . . </Flavours> <Value></Value> </Product> </Products> Need help with XPath syn
-
- Embedded config files in remoting?
by allison_h
- 1 Replies
- Last post
by Steve Maine -- MSFT
- hi,
Can an embedded config file be used to configure remoting instead of an external file using -
RemotingConfiguration .Configure(Filename.config)
Thanks,
Ali.
-
- Getting possible elements from schema
by Zajda
- 2 Replies
- Last post
by Priya Lakshminarayanan
- Hi experts,
i need advise how to deal with one thing.
For intellisense purposes i need to determine, what xml elements can I add as childs of an element. This information is stored in XSD schema.
XmlReader is adding this information into error message during validation, but i have not found normal way to get this information.
Please if anyone know how to do this the eas
-
- ASP.NET Machine A... still present??
by xeriouxi
- 2 Replies
- Last post
by xeriouxi
- Hi! I know that this comes up when the .NET 1.1 is installed, but I read that the SP1 is meant to remove this I've installed SP1 via Windows Update and it's still present I've done this before and sometimes it goes and other times it stays. Is there some process I am missing, like restarting after 1.1 install or something that I am missing as I can't stand having this there and don't want to dele
-
- System.Exception: OCIEnvCreate failed with return code -1
by mh567
- 3 Replies
- Last post
by mh567
- Hi all,
I am trying to invoke webservice which executes one oracle procedure.
But on invoking this webservice i am getting this error.
'System.Exception: OCIEnvCreate failed with return code -1'
I checked security permissions on my Oracle_Home folder. I am logging as Admin user for this and Oracle_Home folder and subfolders has full control to admin user.
I did this permissi
-
- How to work with XML string in an ntext column
by edukulla
- 2 Replies
- Last post
by Martin Xie - MSFT
- I have a table with column type as ntext. This column contains XML document content. I need to modify the column value. I have exported the column value in to a text pad and edited the content. Now, I want the column to be updated with this new content. Is there any way to do it. Normal "Writetext" is not working, because the entire XML contains some thousands of elements with values of
-
- Out of Memory Exception
by JohnGalt
- 3 Replies
- Last post
by mobigital
- Hi all,
I'm getting a very weird out of memory exception with very large MTOM responses using WSE 3. Basically any response > 30 megs in size is getting the error in StringBuilder listed below.
It just started to occur and NO CODE has changed. It's like the latest security patch for .NET that was released started this or something, I'm not sure. Does anyone have any ideas on what's happen
-
- Web Service Tutorial
by D. Dee
- 3 Replies
- Last post
by John Saunders
- I'm trying to get a very simple Web Service tutorial program running in Visual Studio. As far as I can tell, the program is exactly the same as the sample program.
When I run it a web error page is displayed with this error:
Server Error in '/WebSite2' Application.
-
- Marshalling to an ActiveX Control with VARIANT* argument on Vista
by Nick Hertl
- 6 Replies
- Last post
by Nick Hertl
- I have an ActiveX control with a function like this:
long CoolFunction(BSTR* arg1, long arg2, VARIANT* pUnusedArg3)
If you add a reference to this ocx from a C# project, you get a function like this:
int CoolFunction(ref string arg1, int arg2, ref object pUnusedArg3)
On Windows XP, I can call this function like so:
object unused = null; string myArg1 = "blag"; int myArg2 =
-
- unable to create new database using sql authentication
by yemsot
- 8 Replies
- Last post
by yemsot
- I have been trying to connect to a "currently local" database using sql authentication, how ever I also get the error:
system.Data.Sqlclient.sqlexception: login failed for user "the user is not associated with a trusted SQL server connection"
Can anyone give me any ideas on what I could possibly be doing wrong
Dim str As String
Dim myConn As SqlConnection
-
- SerialPort parity error
by Talyrond
- 13 Replies
- Last post
by Talyrond
- Hi, occasionally I am getting a: SerialError.RXParity error, when receiving data. (I have hooked the SerialPort.ErrorReceived event)
The error occurs on the first received character, which is replaced with a ¡® ¡¯ (the default ParityReplace).
What is really concerning me is that the hardware setup is well proven. I have been using software (unmanaged C++) along with the PC cabl
-
- "How can i execute sqlldr command with parameter using dotnet 2002"
by ChiragParmar
- 2 Replies
- Last post
by ChiragParmar
- Hi all,
i have executed an .exe using dot net.
but im not able to execute an exe by passing parameter to it.
it's a desktop application and my code is given below:
any help appreciated...
Code:
ProcessStartInfo startInfo;
Process pStart = new Process();
startInfo = new ProcessStartInfo("C:\\oracle\\ora81\\BIN\\sqlldr \"scott/tiger@orac
-
- RiXML anyone? Company research xml
by QldRobbo1983
- 1 Replies
- Last post
by PaulGill
- Hi,
I have been tasked with creating a new system for our research analysts (produce research and recommendations for companies listed on an exchange).
The system is for storing all the companies financial data, for the analyst to forecast for future years, and to produce reports based on that information.
It seems that the RiXML standard might be useful for the transmitting of
-
- Exposing custom objects through web services
by Adrian.net
- 2 Replies
- Last post
by Adrian.net
- Hello everyone,
I am struggling to figure this problem out.
I have an object called QueueForOutboundRequest that is passed to a web service method. The QueueForOutboundRequest has a property called Data which is a type List(Of Data)
Data is a base class for the two inherited classes: DataQuery and DataTable.
When I reference my Web services, it exposed the method only exposes Queue