-
- Configuration Section Handler
by Kam Lagan
- 3 Replies
- Last post
by Kam Lagan
- Hi People,
I have been struggling with this piece of code for 4 hours now and cannot for the life of me see the problem and hope someone else can:
I have written a section in the application config of a Console application:
< xml version = " 1.0 " encoding = " utf-8 " >
< configuration >
< configSections >
< sectionGroup na
-
- passing managed nested structure array to unmanaged code (COM interface)
by SRichardson
- 7 Replies
- Last post
by Yi Zhang [MSFT]
- I'm trying to call a managed code function that returns nested structures from unmanaged code via a COM interface. A single structure works OK but if it contains a nested structure array then no data is returned at all. I've checked the size of the object in unmanaged code and it matches the size of the managed structure but do I need to use custom marshalling
-
- How to set data in cells of a hidden column in a databound datagridview control?
by Chicken Leg Willy
- 3 Replies
- Last post
by OmegaMan
- I am using a datagridview control, bound to a child class of a purchase order object to enter/display line detail of a purchase order. Some of the data, product ID for example, is set by program code and not the user, and so I have hidden the column. My problem is that I don't know if it is possible to set data in a cell when it is hidden. (It is the things that the help files and clients DON'T te
-
- Help fro SMTP Server
by moiz_active
- 2 Replies
- Last post
by Jay Vora
- can smtp server (which get installed with the IIS server on local computer) is used for sending email (only for outbound) .. or there is some rel;ay server require for that
-
- How convert solution in Visual Studio based on MS Access database to MS SQL Server 2005
by stepo
- 1 Replies
- Last post
by stepo
- Hello, I'm developing in C# database aplication. In begining I decided to choose MS Access database, but now I want to switch to SQL Server. I have already converted access database with Microsoft SQL Server Migration Assistant for Access. First I thought that replace connection string in application.exe.config file would be enough, but this causes when i try to connect to SQL Server Database this
-
- Insert Data in Sybase Database
by Fille
- 0 Replies
- Last post
by Fille
- Hello,
I'am using adaptive server anywhere 8.0 driver (Sybase)
I connect to the database with this connection string without error"Driver=Adaptive Server Anywhere 8.0;Dbf="C:\Temp\Temp.db;uid=admin;Pwd=admin"
I try to insert data
strCy="INSERT INTO dem_test (test) VALUES ('" & "test" & "')"
dim osj as OdbcComma
-
- Need help with interface (cannot convert from 'ref System.Collections.Generic.List...')
by Janus007
- 5 Replies
- Last post
by Janus007
- Hello
Maybe my approach is a bit wrong, which could be the reason of the error
I get this error:
Error 2 Argument '1': cannot convert from 'ref System.Collections.Generic.List<StockData.DataSerie.DataPoint>' to 'ref System.Collections.Generic.List<StockData.IDataPoint>'
Codesnippet
Caller:
List <StockData. DataSerie . DataPoint > genericList
-
- Unable to connect to the remote server
by Leonardo K
- 1 Replies
- Last post
by Mariya Atanasova - MSFT
- Hi,
I'm getting troubles with two requests that i send to the same server, but i have to use the same session, the first one i send to get an image to catch the code from this, the second,i send a post using this code , but in the second time it returns me this error "Unable to connect to the remote server"
someone can help me, please, it's a bit urgent.......
-
- Remoting:localhost works but 'across the wire' doesn't.
by Andrue
- 7 Replies
- Last post
by Doug Wyman
- Hiya,
We are developing a client/server solution that uses .NET remoting and we've got it working nicely using localhost, port 49152 and TCP channels. We've just come to trying it across the LAN and calls to the singleton are not returning. The server is seeing the request because we have implemented a status monitor and it shows the client connection.
Unfortunately the client just
-
- .NET Framework Initialization Error
by NaushadAlam
- 6 Replies
- Last post
by Figo Fei - MSFT
- I have created an dot net windows application using Visual studio 2005, the exe works fine on my dev machine , even when i copied on the Acceptance box, it worked fine for that day but next day when i opened the exe it ends with followign error.. "Unable to find a version of the runtime to run this application." in a dialog box. then suddenly i noticed that all my .exe on that machine s
-
- C# updating database question
by MLyons10
- 14 Replies
- Last post
by ahmedilyas
- I am trying to make my first application using a database, and have really made some good progress (Mostly thanks to some good articles online, etc,). I am able to connect to the Access 2007 Database, I am able to load the data into the dataGridView, or the bound textBoxes, whichever the case may be. I am having a heck of a time though getting the code together to save a record to the database or
-
- Navigating XML with C#
by perstam
- 4 Replies
- Last post
by perstam
- Hello,
I want to be able to go up and down the XML once I find the data element I'm looking for and retrieve it's associated data in other nodes of the tree. This is a TV lisings XML data set and here's a very small portion of it.
< < xml version="1.0" > - <xtvd> - <schedules> <schedule program="EP0019520018" station="16123" time="
-
- Instrumentation of internalcall methods
by Dnptd
- 4 Replies
- Last post
by Dnptd
- Hi.
I'd highly appreciate if someone gives me a tip about how to instrument method which has not IL body (marked as internalcall) at module load stage if it's available.
Thanks
-
- System.Net.Mail.SmtpException: net_io_connectionclosed
by rycooder
- 6 Replies
- Last post
by WAFDOF95
- I'm getting "System.IO.IOException: Unable to read data from the transport connection: net_io_connectionclosed." but only occasionally. I'm confused because: 1) The SMTP server is the local machine so why would the connection ever fail and 2) The error only happens sometimes There was a similar question posted here: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=418540&SiteID=
-
- Probelm during running ASP.NET Configuration and my own Site
by deViance
- 2 Replies
- Last post
by John Saunders
- i get this message:
Forbidden
You were denied access because:
Access denied by access control list.
and i try to find in the internet solutions but i need step by step...
Thank You!
-
- Rijndael Encryption
by CypherZero
- 2 Replies
- Last post
by Rob Teixeira
- If I'm using RijndaelManaged to encrypt a file is there anything wrong with using an IV the same as the key
In my program the user enters a text (ASCII) key, which is looped to make it up to 256 bits. The IV is then set to the first 128 bits of the key and the file is encrypted.
I'd ideally like a more random approach, but asking the user to remember a 256 bit Key and a 128bit IV see
-
- doc.ChildNodes[0].GetEnumerator();
by MikeroSft
- 4 Replies
- Last post
by MikeroSft
- I am trying to understand the sample code below. 2 questions do u need an enumerator or can this be done another way If not please explain. Also 2 question is comment why, I dont understand the logic, i am very new to .net xml obj. Thnsk XmlDocument doc = new XmlDocument(); FieldsCollection fields = new FieldsCollection(); foreach(XmlNode nde in screen.ChildNodes) {
-
- Help: C# error CS0161 not all code paths return a value
by rbreault
- 3 Replies
- Last post
by rbreault
- I am getting the following error I understand I am missing something but I have no idea what as I am still learning. Any help would be great
error message:
------ Build started: Project: e:\projects\ChromeWebService\, Configuration: Debug .NET ------ Validating Web Site Building directory '/ChromeWebService/App_WebReferences/'. Building directory '/ChromeWebService/App_Code/'.
e:\projects
-
- Calling the external XSL script from the main XSL script
by Tambourine
- 4 Replies
- Last post
by Martin Honnen
- Hi,
I have the following problem:
Here is the fragment of the script: <xsl:template match="some-template"> <xsl:variable name="xslScript">...</xsl:variable> <xsl:variable name="xmlFile">...</xsl:variable> <xsl:variable name="startMode">...</xsl:variable>
... Here I need to call stylesheet $xslScript for $xm
-
- Problem with WMI class
by &#124;&#124;JD
- 9 Replies
- Last post
by ||JD||
- I'm trying to code a small app that shows system information (C#), i noticed that Windows Management Instrumentation class could help me with this task and i started writing a method to get the CPU info with Win32_Processor Class , then for determining the socket type i used the UpgradeMethod propertie but it seems it only manage few old types of sockets, newest as AM2, AM2+, 775 or 604 are not su
-
- We've totally stuck, please help!!
by enric vives
- 8 Replies
- Last post
by Josh Williams
- Hi everyone,
Primary platform is full 64-bit both OS and RBDMS along with .Net Framework 2.0
We've totally stuck with this.
We've got a .Net service running on Windows 2003 64 bit which has been compiled as x64 in project options.
Everything is fine, service is installed, logged and finally started but the issue comes when you're going to Task Manager,
-
- Join for ElapsedEventHandler's thread
by libor
- 3 Replies
- Last post
by BinaryCoder
- C# .NET 2.0
I have a program that has a System.Timers.Timer that triggers an ElapsedEventHandler method every 30 secs.Under certain circumstances this method runs for several seconds. If I got it right this method runs in a separate thread making itself to be a thread from the threadpool without explicit thread instantiating. This works OK.
But I want this thread to finish its current job (t
-
- How to see raw xml c# webmethods
by turgut eren
- 6 Replies
- Last post
by Daniel Roth
- Hi ,
I use webservice methods to retrieve data from a provider.I would like to log the incoming and outgoing xml soap messages when i call the method and when a response arrived.
Is there anyone who has any idea about how to do this
-
- FTP Errors on Repeated Connections
by Abercrombie07
- 0 Replies
- Last post
by Abercrombie07
- I have a list of ftp servers that I loop through and to make connections and list, download, upload and delete files. The weird thing is that on every 2nd record I use I get a
The remote server returned an error: (500) Syntax error, command unrecognized.
message. The status at the time of execution is
226 Directory send OK.
When I run the function with the r
-
- Running a Macro in a Password Protected Access Databse
by Lbo
- 2 Replies
- Last post
by Lbo
- I have this problem that I can run the macro but since the database is protected it always prompts me for the the password. I cannot have the users have access to the database since this will make it possible for the data to be changed manually.
The code I use is as follows
Shell( "C:\Program Files\Microsoft Office\Office\Msaccess.exe DatabasePath /x JobCardPacks /pwd Password" )