-
- unbuffered stream?
by Lee Crabtree
- 2 Replies
- Last post
by JohnWein
- Is there a StreamReader-like class that will let me read lines of text from a file without buffering I ask because I need to be know the position in the file of the line being read, and since StreamReader buffers data, reading the BaseStream.Position property doesn't report the right offset into the file. I know I could derive my own class and get it all to work, but if there's something that alr
-
- C#: characters found after end of sql statement
by Candela
- 5 Replies
- Last post
by VMazur
- Hello,
I need to fill multiple tables into a single dataset, so I wrote the following:
//1)
cmd = new OleDbCommand("SELECT * FROM TableOne; SELECT * FROM TableTwo", myConnection);
//2)
dataAdapter = new OleDbDataAdapter(cmd);
//3)
dataAdapter.SelectCommand = cmd;
//4)
dataAdapter.Fill(ds);
The error stops at the the Fill on line 4.
OleDbException
-
- All what I wanted to do is to Update a Table in DB using Dataset (Visual Studio 2005 & MS SQL Server 2000)
by Interesting
- 3 Replies
- Last post
by Paul Domag
- Hello all,
I'am trying to update a modified Dataset back into the DB. I looked all over and surely the answer is out there but haven't yet to find it. When I run this I get zero result. Also, the proc is not being called at all when check in the profiler. Any help or thoght would be really appreciated.
Regards...
Here is the code:
Public Sub UpdateDB()
' //execu
-
- Add XmlAttribute to simple type property?
by Werner Clausen
- 2 Replies
- Last post
by Werner Clausen
- Hi,
Suppose I have this class: public class Test { private int aNumber = 10; public int ANumber { get { return aNumber; } set { aNumber = value; } } }
How to add a XmlAttribute (like type) to the property ANumber to get this: <ANumber xsi:type="int">10</ANumber>
I could ma
-
- How i invert colors behind drawed lines ?
by Bruno_1
- 9 Replies
- Last post
by bruno_1
- i want to make a simple program paint-alike that allow me to draw lines... in c#.net. i remember that i used to do this in VB6 by choosing vb.invert, and this alow me to invert the colors behind the drawed lines while moving the mouse and drawing, thus not erasing the background. I don't know if there is a way to do it in .Net, (i know that there might be a component to do all the paint stuff, but
-
- Verifying certificate chain online
by N&#64;poleone
- 5 Replies
- Last post
by N@poleone
- Hi all, I've to verifcate a signature and a certificate validity. To do this, I used a X509Chain object with these settings:
Code Block
chain.ChainPolicy.RevocationFlag = X509RevocationFlag.EntireChain; chain.ChainPolicy.RevocationMode = X509RevocationMode.Online; chain.ChainPolicy.UrlRetrievalTimeout = new TimeSpan(0, 0, 30); chain.ChainPolicy.VerificationFlags = X509Verificatio
-
- PropertGet. EvalException. System.Reflection.TargetParameterCountException
by lpszDan
- 7 Replies
- Last post
by Rick Byers - MSFT
- Could you guys tell me why am I consistently getting this exception, even though in my code I get mdGetter token and EnumParams on it returns 0 parameters necessary.
Then I go on with CallFunction and always get EvalException.
In EvalException I GetResult and get class info and class name and the exception class name is always System.Reflection.TargetParameterCountException.
I attach,
-
- Problem running my web application
by Eazy579071
- 4 Replies
- Last post
by Eazy
- I am trying to run my web application on my local machine ( http://localhost(or machine name)/Sample) and I am bieng shown a windows logon box to enter my user id and password. This is very wierd but, the wierdest part is when I enter my windows user id and password, it would not let me in. so, when I hit cancel, This error message is what I get:
You do not have permission to view this director
-
- .NET QueryBuilder and IN(Transact-SQL) function
by Mikaki21
- 8 Replies
- Last post
by VMazur
- Hello!
I am using Visual Studio 2005 and developing in VB.NET. I have created a standard windows application and am using the standard Data Access tools (MSDataSetGenerator) to create my datatables with tableadapters which represent my database in SQL Server 2005.
If I want to select table data using a parameter that represents a single value, everything works fine using:
Select *
-
- Query
by endemol
- 2 Replies
- Last post
by endemol
- How to write a C# statement in order to find out whether a column named "OrderId" exist in a datatable dt
-
- Talking between two applications
by Grayson Peddie
- 3 Replies
- Last post
by Grayson Peddie
- Hi. I am developing a client-server home automation application on which the RS232 serial port must be opened in order for a client application (such as a timer, lighting control, etc.) to talk to a Home Automation host application. It goes like this:
RS232 (port) <-{> PowerLine Modem Communication (internal class) <-> Host (form application; internal class) <-> Insteon (
-
- Issue with SqlCommand and Parameters.Add
by Wizard Of Oz
- 14 Replies
- Last post
by boban.s
- My programs function is to query the dB, get all the table attributes, build the SQL query dynamically, then perform an update on the required fields.
I am having an issue with the proper placement of the SqlCommand.
Here are the steps my program is performing
1. Query the dB and get the attribures of the table (column name, datatype and length)
2. Build the following queries d
-
- insert data into table
by shy216
- 10 Replies
- Last post
by boban.s
- i've created a form and now im trying to store data into table.
i keep getting converting and syntax errors and i don't know how to fix this problem.
this is what i have and tried.
//============================================================================
// created table adapter for new purchase requisition.
//================================================================
-
- the fusion technology and make the aciveX control as Windows control and display it
by aleem076
- 2 Replies
- Last post
by Nathan Anderson - MSFT
- Dear Sir,
I have a web application using DSO Framer control, but when my client wants to view the page. He has to make his security settings low.
I know that when I use the fusion technology and make the aciveX control as Windows control and display it by using <OBJECT> tag, then it will act as a normal .net control, can any one help me to do this. Youn can even mail me to :
aleem_a
-
- Compare MDB Files
by Ralf_from_Europe
- 1 Replies
- Last post
by Paul P Clement IV
- Hello!
I need to compare the structure of mdb-files, to find missing tables, fields or indexes using VB.NET and... yes, that is the question. ADO.NET (and ADO too) do not support an object model to look into the structure of MDBs If they do, I cannot find it...
So I looked into DAO Interop's Object Model, only to find it is not helpful, as it shows some properties (*) only as __ComOb
-
- public static thread safe
by Yiping Guan
- 2 Replies
- Last post
by Greg Beech
- How to understand:
"
Any public static ( Shared in Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.
"
Or how does .net framework make public static members thread safe
Thanks,
Yiping
-
- "Retrieving the COM class factory for component with CLSID {BD984C67-258F-426A-AA6C-925C63BE6CC5} failed due to the followin
by mathews
- 4 Replies
- Last post
by saqib_dotnet
- Hi,
Could anyone help me on the below issue...
I'm trying to login to BO11(Business Objects) server using a vb.net interface.But i'm getting a run time error when trying to create a new instance of SessionMgr object .The error is
"Retrieving the COM class factory for component with CLSID {BD984C67-258F-426A-AA6C-925C63BE6CC5} failed due to the following error: 80040154.&q
-
- Associate custom serializer with class?
by bpeikes
- 3 Replies
- Last post
by bpeikes
- After looking through all of the XMLSerializer stuff out there, I'm starting to think that it is not the way to go. The lack of good support for collections makes it fairly useless. There does not seem to be any easy way to get XML which looks like this: <House> <Windows> <Window> <Height>6</Height> <Width>4</Width> <Type>Cas
-
- Including some but not others?
by Large_Goose
- 14 Replies
- Last post
by Sergei Z
- Hi there,
I'm looking into how I might search for a particular string and report the search as successful only if the string is there but not used inside a particular other string. It sounds like it should be really easy but I'm missing it.
I want to search for the string '-com' (no quotes) but if it is part of the bigger string 'schemas-microsoft-com' then I need to ignore it.
Something
-
- How to create XML Web Service in VS 2005 using ASP.NET Template
by HelpMeNoob
- 3 Replies
- Last post
by HelpMeNoob
- I'm using VS 2005 and attempting to create a XML Web Service using the .NET framework. So when I'm creating a new project I want to select the ASP.NET Web Service template but it's not an option...however I have the majority of the other standard templates such as Windows App and Console App etc. How can I get the ASP.NET Web Service template for VS 2005
-
- XML Serialization Tags out of order
by Sedge.Rev
- 4 Replies
- Last post
by Sedge.Rev
- Hi
To describe the problem:
.NET XML Serialisation occasionally generates the XML Elements out of the order defined in the class.
I have a Web Service Client that is posting to a non IIS/ASP Web Service. The paramerter is a complex Class derived from an XML Schema and WSDL issued by the Web Service provider and I created using the WSDL.EXE tool.
It all works well except tha
-
- 64-bit License Compiler issues
by Jacob Morgan
- 9 Replies
- Last post
by Caddre
- I don't fully understand how x64 affects .NET, but I didn't think I would have to. I thought development should be 32/64 bit agnostic. Anyway, I've hit a snag after upgrading to Vista x64. Building one of our components produced the following error: C:\Program Files (x86)\Microsoft Visual Studio 8\SDK\v2.0\bin\LC.exe /target:Elsinore.ReportDesigner.dll /complist:licenses.licx /outdir bj\Debug\ ...
-
- Accesing GSM Modem and Sending, receiving SMS
by ShihabSumon
- 2 Replies
- Last post
by Ji Cheng Wang - MSFT
- I want to develop a software to send AT command to a GSM Modem.
How can I develop it using C#
Can anybody help me
-
- Serializing char data type with the XMLSerializer
by jftl6y_007
- 5 Replies
- Last post
by John Saunders
- I ran into this issue debugging a web service called by a client's Biztalk installation, but I quickly figured out that this is really an XML Serialization issue. Basically what is happening is that a class with a number of properties is being returned and serialized to XML. However, for every property of a 'char' data type, what is serialized is not the char value, but rather the encoded (i.e. AS
-
- Opening file for reading and writing
by Michael Baxter
- 3 Replies
- Last post
by Michael Baxter
- I'm building an application that logs data continuously to a file. However, periodically I want to search the log and read data from a specific point in the file, while allowing the log to be continually updated.
Can I do this without closing the file How do I go about this
Many thanks,
Michael