-
- System.Globalization.CultureInfo cannot be serialized because it does not have a parameterless constructor
by Srigopal
- 2 Replies
- Last post
by Pablo Cibraro
- Here is my method
[ MethodImpl ( MethodImplOptions .Synchronized )]
[ WebMethod ]
public ListDictionary GetResourcesByCulture ( CultureInfo culture )
{
ListDictionary resourceDictionary = new ListDictionary ();
//Remaining Method implimentation
return resourceDictionary;
}
When i execute this webservice it giving me this error
Syste
-
- gimme path mappping for a subst created local drive
by taci
- 2 Replies
- Last post
by taci
- I'm trying to write some C# code to retrieve the path used to create a local drive mapping. e.g. if the drive was created with the command: "subst u: c:\here\there\everywhere" I want to pass in the value "u:" and retrieve the value "c:\here\there\everywhere". I've got code to do this for remote network drives (basically pinvoking WNetGetUniversalName in mpr.dll) but i
-
- How to access Oracle data base from C#
by Alim Basha
- 3 Replies
- Last post
by Alim Basha
- Hi ,
I want to access Oracle database from my .Net application. I am using C# as code behind......
Plz provide help....
Thanks & Regards
Ali.......
-
- How to get connectionstrings
by Sam2
- 7 Replies
- Last post
by timvw
- I'm trying to get a connectionstring from my config file.
After adding a reference to the System.Configuration namespace to my code I tried to run this code which I copied from here: http://msdn2.microsoft.com/en-us/library/system.configuration.connectionstringsettings(vs.80).aspx
tatic void ShowConnectionStrings()
{
// Get the application configuration file.
System.Configurat
-
- setting Prefix on an Attribute
by roachslayer
- 2 Replies
- Last post
by roachslayer
- Can someone shed some light on this for me
I have the following class:
Code Block
[ Serializable ()]
public class PersonUpdate
{
public PersonUpdate()
{
xmlns.Add( "sysaction" , "http://mydomain.com/v1/action" );
}
[ XmlNamespaceDeclarations ]
public XmlSerializerNamespaces xmlns = new XmlSerializerNamespaces ()
-
- BIG PROBLEM using ODBC to get CSV File
by zquad
- 9 Replies
- Last post
by Mario
- I am facing a similar problem . I am using Odbc to read a csv file. I have data in the format 00.100, 000132.2, 12.00 which is valid and in my csv file, for some reason ODBC is removing the leading and trailing 0's. Why is ODBC seeing the datatype at decimal How do I retrieve my string ------------------------------------------------------------------------------------ String connstring = driver.
-
- Usage of Web Service Behaviour in ASP.Net Page to call web service from Client Side Code.
by KSanjay
- 0 Replies
- Last post
by KSanjay
- We were thinking to use Web Service Behaviour to call web service from Java Script to avoid Postback by calling Web service from Client Side in IE.
Just wondering if there are issues with any version of IE5. One of the MS link says microsoft does not provide support for Web service behaviour and was curious if it might be issue later.
Here is the link that says Not supported in Red:
-
- InvalidProgramException
by John.Doe
- 6 Replies
- Last post
by Afzal Mazhar
- I am getting kind of the worst exceptions...
I generated some code for displaying records from a database. In get the data in xml format and have a switch case statement which can tell by the node name, what kind of data I am dealing with. So for each data type, I have one case statement, which creates a bunch of controls (ASPX) and assigns the values of the xml to the controls. While
-
- Problem with collection
by QuickLearner
- 2 Replies
- Last post
by OmegaMan
- hi friends,
i have been developing an application in which i have to store a list of name-value pairs in a collection object.
there are many objects in collection namespace for this task.
but surprisingly, while using them, i found that every object returns a value(s) when an associated key is supplied.
but my requirement is such that i want the key(s) as well when corresponding value
-
- which port is process x using on my computer
by Pieter Gheysens
- 1 Replies
- Last post
by timvw
- I know that there are tools out their like TCPView to see port-information about all running processes on a computer, but I would like to know how to do it in code (C#) ...
Is there a way to query for port information in .NET. What if I have a Process (System.Diagnostics.Process) - can I programmatically get information about the specific port the process is using
-
- Microsoft .NET Framework Problems
by Stratomaster
- 1 Replies
- Last post
by ahmedilyas
- Hi, I keep getting the following dialogue box everytime a turn on the computer and once turned on, doesnt want to turn off. Im not sure what the cause is and in all honesty am useless at this kind of stuff. An unhandled exception has ocured in a component in your application. Click continue and application and application will ignore this error and attempt to continue. Object reference not set to
-
- CodeDOM: "using namespace" statements are generated inside the namespace
by Mukund
- 1 Replies
- Last post
by nielsvanvliet
- Hi,
While generating code using CodeDOM the "using or Import namespace" statements are generated inside the namespace block. Is there any way by which these statements can be generated outside the Namespace block same as when we generate code in IDE Thanks in advance.
CodeDOM generated code:
Code Snippet
namespace MyGeneratedCode {
using System;
-
- Problem with Message Queuing
by Dawl
- 4 Replies
- Last post
by Dawl
- Catch a problem using interface of MessageQueue component :
I can't see public queues of domain controller on domain computer.
When I try to explore MessageQueuing-labeled node in Server Explorer => catch exception: "Workgroup installation computer does not support the operation."
What should I do, to pass this problem
Thanks ( and sorry for my English =) )...
-
- Does a finalizable object keep other objects alive
by DeKale
- 16 Replies
- Last post
by DeKale
- Hi, Objects that manage native resources should implement a finalizer. The finalizer has impact on the performance of a .NET application, because the framework has to do a lot of bookkeeping per finalizable object. On creation objects are added to the finalizable queue and after a garbage collect they are removed from the finalizable queue and added to the Freachable queue that is checked by a sep
-
- How do I convert utf-8 format to unicode format
by TTK12
- 3 Replies
- Last post
by TTK12
- I've utf-8 strings like: A Aİow
That suppose to be converted to unicode format as: tow
I've made the following function, but characters of the string still stay the same as A Aİow .
Code Snippet
private string UTF8toUnicode( string str)
{
byte [] bytUTF8;
byte [] bytUnicode;
string strUnicode = String .Empty;
bytUTF8 = Encoding .UTF8
-
- is it possible to add comments with a CodeStatement in CodeDOM
by baskaran
- 4 Replies
- Last post
by baskaran
- Hi,
Is it possible to add comments with CodeStatement object's.
codeDOM classes allow comments with CodeTypeMember Objects only.
Is there any alternative to add comments with other objects of codeDOM classes.
Thank in advance.
-
- Creating a DataSet from a string
by mkamioner
- 2 Replies
- Last post
by mkamioner
- Hello All I have a String... <DataSetName><DataTableName><Column1>Value</Column1></DataTableName></DataSetName> It was generated from a previous DataSet. Now I want to create a DataSet using that String. I know that DataSet offers ReadXML but how do I pass a string and not a filepath or stream, or is there a way to do this with a stream... Thanks in advance Mike
-
- 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="
-
- AccessViolationException Oracle driver
by filii_neo
- 6 Replies
- Last post
by filii_neo
- Hi at all,
I've got an odd problem. I' using Oracle Data Access Client driver with .Net 2.0. Today, my application crashed, because of the following exception:
System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at System.Data.Common.UnsafeNativeMethods.OCIServerDetach(IntPtr srvhp, IntPtr errhp, MOD
-
- Timer ticks
by Maksim
- 2 Replies
- Last post
by Maksim
- Hi,
If I do the following:
Code Block
Public runTimers(3) as System.Timers.Timer
Public formLabels(3) as Label
Public sub startTimers()
formLabels(0)=form1.label1
formLabels(1)=form1.label2
formLabels(2)=form1.label3
formLabels(3)=form1.label4
For i=0 to 3
runTimers(i) .interval=5000
runTimers(i) .start()
Next i
End Sub
-
- Checking table existance
by Kapalic
- 10 Replies
- Last post
by Ken Higgins
- Hi
I need to write a procedure to import data from an access database to a sql server table.
I need to provide a database name as a parameter to the procedure, and it will check several thing before inserting data -
# If the database has a table named Employees
# If the employees table has five columns named ID, Name, Designation, Department, JoinDate.
Can anyo
-
- [Remoting] Custom client channel sink does not transmit remoting exceptions?
by el_d
- 8 Replies
- Last post
by vkr_10
- Hello. I have a very simple remoting client, and I want to handle the case where it does not find it's server :
namespace Test { interface MyInterface { void Function(); }
class Program { static void Main(string[] args) { BinaryClientFormatterSinkProvider bcfFormatter = new BinaryClientFormatterSinkProvider(); HttpClientChannel hccChannel = new HttpClien
-
- rss to xml transformation {need help in parsing node data}
by Kamii47
- 2 Replies
- Last post
by Kamii47
- I have a following rss feed to which I want's to transform it to my desired xml My rss feed is < xml version="1.0" encoding="UTF-8" > <rss version="2.0"> <channel> <title> <![CDATA[ MyBooks.com ]]> </title> <link>http://www.MyMainLink.com/rss/BookListings.xml</link> <desc
-
- Eventid missing in Framework 2.0
by JD653687
- 11 Replies
- Last post
by Kev Sout
- I am upgrading to Visual Studio 2005 and have a problem with the following, hope someone can help me out:
{
EventLog aLogs = new EventLog ();
aLogs.Log = "System" ;
//aLog.MachineName = machine;
aLogs.EntryWritten += new EntryWrittenEventHandler (OnSysEntryWritten);
aLogs.EnableRaisingEvents = true ;
}
private static void OnSysEntryWritten( Obje
-
- getting error while generating report using reportviewer
by imranabdulaziz
- 1 Replies
- Last post
by Nathan Anderson - MSFT
- i am making web application using C# , asp.net ,sql2000 ( visual studio 2005).
i am using following code on button_click
protected void Button1_Click( object sender, EventArgs e)
{
ReportViewer1.Visible = true ;
setting = ConfigurationManager .ConnectionStrings[ "NorthwindConnectionString" ];
if (setting != null )
{
conn = new S