-
- Problem with Nhibernate serialization.
by shfaye
- 4 Replies
- Last post
by Pablo Cibraro
- Hi all,
now i programm a 3tier project and i use nhibernate to persist data object.
but i get a problem while calling the web servies methode. the exception message looks like this: System.InvalidOperationException: There was an error generating the XML document. ---> System.InvalidOperationException: CProxyTypeHM_ClassLibraryRoomHM_ClassLibrary_NHibernate_ProxyINHibernateProxy1 can
-
- how to download a file ?
by udayan
- 5 Replies
- Last post
by Sqnyy
- Sir, I want to know that how to download a file from URL using C#.NET. I do a coding for the application about Download Manager,but at the time of downloading a file ie to save the file, the file is saved at its specified location ,but all files are corrupted. So tell me that what type of coding i can do in C#.NET.
-
- How Do I Display Hosts TCP/IPConfig using C# and WMI?
by Joseph John
- 4 Replies
- Last post
by Thomas Danecker
- I am currently writing code to obtain a host machines IP address, subnet mask, default gateway and primary and secondary DNS servers. so far i get everything to display except for the DNS servers which are supposed to be returned in a string array. The string[] dnses = (string[])objMO["DNSServerSearchOrder"]; is returning null. does this code work for anyone is this a problem with the .n
-
- Application Level Resources and Data Binding
by AllTec
- 4 Replies
- Last post
by AllTec
- Hi I want to understand Acropolis concepts; I am migrating my WPF application to Acropolis application. In my WPF application, I used to have application resources (business objects) to share data among different components. I used to access and update these application resources from every where and was using the Data binding every where. Now as I am migrating stuff to Acropolis, how my Applicat
-
- Why don't read-only properties serialize?
by Chris O'Brien
- 3 Replies
- Last post
by Evan H
- // Let's say I have an object like Report below, that has a read-only property. If I serialize it, a "ID" element does not appear in the serialized output. [Serializable] public class Report { private int id; public Report() { } public int ID { get { return this.id; } } } // But if I add a set accessor, which is useless in this situation, the "ID" element IS seria
-
- Error installing .NET 3
by Sorin Sandu
- 6 Replies
- Last post
by prashantrb
- When I try to install .NET Framework 3 on a Windows 2003 Server R2 new instalation (no betas on it) I get an error.
The error log file contains
[02/01/07,12:39:58] Windows Communication Foundation: [2] Error: Installation failed for component Windows Communication Foundation. MSI returned error code 1603 [02/01/07,14:29:54] Windows Communication Foundation: [2] Error: Installation faile
-
- SSL vs. WSE
by navinkaus
- 4 Replies
- Last post
by Phil Sharp
- Hi,
I am trying to get the knowledge of WSE 2.0 as we are using .net framework 1.1 and Visual Studio 2003. I have implemented one web service and we want to secure it. Now It seems that using SSL is easy and everything will be scured once we have the ssl connection. Since in case of SSL you don't need to do much coding I guess.
In case of WSE I need to have very good knoweldge of WSE 2.0
-
- Checking if an element has a value
by jche
- 4 Replies
- Last post
by jche
- Suppose I have the following xml document
<element1>
<element2>"value1"</element2>
<element3>"value2"</element3>
</element1>
<element4>
<element5>"value3"</element5>
</element4.
I am trying to use xmltextreader to parse the value1, value2, and value3.
My code looks something like
-
- CDOSYS ASP.NET authenticated email script
by Mohan Mathew
- 4 Replies
- Last post
by Baris ERGUN
- Hi! Anybody know CDOSYS ASP.NET authenticated script for sending emails I have got a script which is shown below. Anybody please let me know if there is any error in this. The script is not working. ============================================== / using System.Web.Mail; eMail = new MailMessage(); // eMail.BodyFormat = MailFormat.Text; // eMail.From = _SendFrom; eMail.Fields[http://s
-
- .NET Permissions
by Gabriel Graves
- 14 Replies
- Last post
by Gabriel Graves
- I cannot find any reliable source on the internet about applying .NET permissions. I do NOT use ASP/ASP.NET and I am not using any network (storage) or webserver of any kind. I need to be able to open a file on the computer or even list the files in the C:\ directory. I know nothing about sn so please explain step by step and step by step for assembly and which files!
-
- Using C# to copy data from one database backend to another
by RLawson
- 4 Replies
- Last post
by RLawson
- I am new to C# and I am trying to write an application that will copy data from one database and create a new table and insert the data into this new table.
The SQL statement I want to use is something like "Create Table Blah as Select * from OtherTable" or Select * into Blah from OtherTable"
I am dealing with 2 different database programs. I want to retrieve the results of a
-
- Retreiving XmlNode in JS
by Bruno Kova&#269;i&
- 2 Replies
- Last post
by Bruno Kova?i?
- Hi, I'm trying to parse some data I get from web service(written in C#) in Javascript code. Method returns me a XmlNode. How should I read it I'm connecting to web service using AJAX. <form id="form1" runat="server"> <asp criptManager ID="ScriptManager1" runat="server"> <Services> <asp erviceReference Path="myserv
-
- "Metadata file 'System.Runtime.Serialization.dll' could not be found" during dynamic compilation
by Mike V.
- 3 Replies
- Last post
by xd
- Good afternoon,
I am trying to write code that takes metadata from a running WCF service (knowing only the service's address), and using that metadata (after running it through a wsdlImporter and xsdDataContractImporter) to compile an assembly that (hopefully) contains the data contract object used by the web service. However, when the code reaches the "CompileAssemblyFromDOM stage, the compila
-
- Get the output from console application
by Goran _
- 8 Replies
- Last post
by Goran _
- I have some DOS application that accepts some parameters from user (arguments are not passed to app) and then displays the results. How can I capture this data. The data is displayed after the user picks several options. Seems when I redirect output with Process.StartInfo, and when I choose first option in console app, insted of displaying the 2nd option the console app closes. Is there a way to g
-
- Application.exe.config file help wanted
by AlexBB
- 3 Replies
- Last post
by AlexBB
- Hi there,
This is a slightly modified version of Durga's app.exe.config file I got from
http://blogs.msdn.com/dgorti/archive/2005/09/18/471003.aspx
It gives me a little trouble:
Warning 1 The 'tracemode' attribute is not declared.
Warning 2 The 'maxdatasize' attribute is not declared.
How should I handle it
Thanks.
< xml version = " 1.0 &q
-
- How to add inline xsd in a in memory xmldocument file
by Kamii47
- 5 Replies
- Last post
by Hugo M
- I am making an in memory xml file which will remain in memory in a singleton object.
I have a xsd file that is validation.xsd.
How can I enter an inline schema in xmldocument.
-
- Unable to handle request without a valid action parameter. Please supply a valid soap action
by EddieBear
- 7 Replies
- Last post
by John Lambert - MSFT
- Hi, I have written a .NET 2.0 web service to receive the Soap 1.2 Message from the a testing web portal. However I got a soap error as ¡° Unable to handle request without a valid action parameter. Please supply a valid soap action ¡± at the testing web portal as a returned soap message. I am not sure why I got this error.
My simple web message is as following:
[ WebMethod ]
-
- Function FLOOR doesnt' work in SQL SELECT using Microsoft.Jet.OLEDB.4.0
by MauroGv
- 2 Replies
- Last post
by MauroGv
- Hello everybody,
I Have a little problem.
I'm connected to a Access Db with provider Microsoft.Jet.OLEDB.4.0.
I want to take the integer part of a numeric field to determinate in which interval belongs. The interval's length in the example is 100.
I've written:
SELECT Field1, FLOOR (field1/100) AS Interval
FROM Table1
I receive this error:
SQL's Executing error
E
-
- dataset row delete problem
by jhapps
- 4 Replies
- Last post
by TobyKraft
- im trying to delete a few rows using a foreach statment but after the first deleted row it throws a error here is the code
foreach(dataset.Table1Row row in ds.Table1.Rows)
{
if (row.Type == i)
row.Delete();
}
the error has to do with the modification of the dataset in a loop
the only other thing I can think of is to save the row index into a array then loop using a for statmen
-
- DataRelation/ForeignKeyConstraint and composite foreign keys
by Richard Lim
- 7 Replies
- Last post
by Richard Lim
- Hi there,
I've been trying to use DataRelations (ForeignKeyConstraints) to model our database structure, but DataRelations seem to behave differently to the SQL Server database with regards to composite foreign keys partially made up of Null values.
An example of this is the following, I have two tables, "run" and "order". The run table is the parent, and the order table
-
- Function and argument matching with regular expressions.
by KevinBurton
- 14 Replies
- Last post
by KevinBurton
- I have strings like:
MyFunctionCall(a.b(c.d.f, a).c,a.b.c.d)
I would like to have a regular expression that can return if it is a function call, the name of the function and a list of the arguments to the function. I have started with:
Regex regex = new Regex (
@"( <function>[A-Za-z]+)\(" + "\r\n" + @" ( >" + "\r\n" + @"
-
- Vista troubles.
by AlexBB
- 14 Replies
- Last post
by AlexBB
- Had to install a Vista out of necessity. I lost Internet connection on my WinXP partition where all my development work was done, tried to restore it for a few days with no result, and decided to become "progressive" once and for all.
Vista seems to be a wonderful OS. I was surprised how easy the installation turned out to be. It is very estetically pleasing. Then the trouble bega
-
- 1.1 VS. 2.0 Who uses what?
by mike cianciabella
- 1 Replies
- Last post
by nobugz
- I'm curious as to what % of .net framework users still uses 1.1 compared to 2.0 or 3.0. Does anyone know where I could find this info
-
- Ping Class, background workers, async communications
by GaryMcC
- 10 Replies
- Last post
by GaryMcC
- I have an application in VS2005 VB.NET, and I have been playing with the Ping class for the first time. The following is a simple sub, which works... but of course, locks up the system while it does its thing.
Friend Sub FetchPings()
Dim objPerson As clsPerson
Dim p As New Ping
Dim pReply As PingReply
For Each objPerson In colPersons
If objPerson.I
-
- unable to insert data: unspecified error
by NIBbaye
- 8 Replies
- Last post
by NIBbaye
- Hi, all
I am new to ASP.NET. I am testing an example that inserts a record into an access database. But i have got an error when i browse the sample aspx page from IE 7.
In the error the line cn.open() is indentified as the source of the error.
Line 24:
Line 25: OleDbConnection cn = new OleDbConnection(myConn);
Line 26: cn.Open();
Line 27: OleDbCommand cmd = ne