Thank you, I checked the Xenocode PostBuild and it seems it could fix the problem, but it is way too expensive, isn´t there something cheaper?
cellardoor
Thank you, I checked the Xenocode PostBuild and it seems it could fix the problem, but it is way too expensive, isn´t there something cheaper?
cellardoor
Hi I have developed an application with .net framework 2.0 using C#. Is it possible to run this application on third party machines without the need to install the .net Framework? Thanks
cellardoor
Yes, that was the problem, thanks for your help.
cellardoor
I use Notepad. Yes according to http://en.wikipedia.org/wiki/ISO_8859-2[^] the encoding supports the characters I´m trying to write.
cellardoor
I´m trying to create .txt files with iso-8859-2 encoding, but I have problems with some of the characters from the charset. They don´t display correctly in the file. Here is my code sample that I use to create the files: File.WriteAllText(filePath, fileContent, Encoding.GetEncoding("iso-8859-2")); Can anyone help me with this?
cellardoor
I have a dataset with nested tables: 1 2 and I´m trying to write this dataset into a xml file, but I don´t want to write the first element of the dataset. I´m using the dataset1.WriteXml() method. I want the xml file to look like this: 1 2 How can I accomplish this? Can anyone help me please? cellardoor
Thank you, I´ll try the SQL Server Compact Edition.
cellardoor
I´m trying to create a windows application that will be able to store data in a database. Both the application and the database have to be in one installation package and the end user has to be able to use the application correctly without the need to install anything else(database server,...). Can anyone help me with this? Which kind of database should I use? I was thinkink about using MSSQL 2005 Exress Edition and then just attached the .mdf file to the application, but I´m not sure if this is the best solution. Is it possible to access and work with .mdf file on a computer, that does not have the MSSQL server installed? Or what is the best solution for this problem?
cellardoor
I have a MainForm which is MDI parent to all other forms. I want the to display the child forms as tab pages inside the MainForm. Is it possible? Can anyone help me with this please?
cellardoor
Hi is it possible to connect to an oracle database using visual c# express edition? In the database explorer I click on the Add connection.. and there are only two choices: Microsoft Access Database File and Microsoft SQL Server Database File. Can anyone help me with this?
cellardoor
I´m trying to dynamically load and unload assembly. The load part works just fine, but there are some problems with the unload part. It seems that the calling assembly didn´t release the dynamically loaded assembly, because I can´t recompile it. Here is sample of my code: AppDomain ad = AppDomain.CreateDomain("TestDomain"); Assembly a = ad.Load(Assembly.LoadFile(@"D:\Test.dll").GetName()); . . some code . . AppDomain.Unload(ad); Can anyone help me with this?
cellardoor
I can´t use XmlDocument because my xml files are too big(about 80MB) and I don´t want to load the whole xml into memory... I have to read them sequencially, that´s why I use XmlReader.
cellardoor
I´m trying to validate a xml file against schema... I had to migrate my code from .net 1.1(where I was using XMLValidatingReader and it was working just fine...) to .net 2.0. The XMLValidatingReader became obsolete, so I tried the XMLReader instead, but I always get only the first error... Here is my sample code: private void validate() { XmlSchemaSet xsc = new XmlSchemaSet(); xsc = this.getSchemaToValidate(); XmlReaderSettings xs = new XmlReaderSettings(); xs.ValidationType = ValidationType.Schema; xs.ValidationFlags = XmlSchemaValidationFlags.ReportValidationWarnings; xs.ValidationEventHandler += new ValidationEventHandler(ValidationCallback); xs.Schemas.Add(xsc); fs = new FileStream("XMLTest.xml", FileMode.Open, FileAccess.Read, FileShare.Read); XmlReader vr = XmlReader.Create(fs, xs); while(vr.Read()) {} } private void ValidationCallback(object sender, ValidationEventArgs e) { tbErrorMessage += e.Message + Environment.NewLine; this.numberOfValidationErrors++; } Can anyone help me with this?
cellardoor
you can use the FormClosing event to check if the user really wants to close the window...
cellardoor
Thanks I´ll try it
cellardoor
I´m working with large xml files(about 100MB) and what I have to do is: - first validate the xml file against a schema - then insert data from the file to a database What is the most efficient way to do this? Can anyone help me with this?
cellardoor
thanks now it´s working...
cellardoor
yes the xml file D:\Test.xml does match the schema of the typed datased. I tryied to validate it first and the validation was successful... I also itarated through the dataset tables and there aren´t any other tables.
cellardoor
I´m trying to read a xml file into typed dataset, but I really can´t get it done. Here´s a simple code of what I´m trying to do: typedDS.ReadXml("d:\\Test.xml"); I don´t get any exception, but there are no records in the dataset. Can anyone help me with this?
cellardoor
How do I make it a managed DLL? Is there a step by step guide to this problem, or at least an example?
cellardoor