I have been using xsd.exe to generate a class for deserializing XML into.
I have decimal value in the source xsd that is not required:
<xs:attribute name="Balance" type="xs:decimal" use="optional" />
The resulting class from xsd generates the following code:
private decimal balanceField;
[System.Xml.Serialization.XmlAttributeAttribu...
Hello!
I'm seeing a very strange issue on our live platform that consists of four
webserver Windows Server 2003 boxes sitting in a cluster behind an ISA server
cluster. They are all running IIS 6. We have the need for webservice
requests to be made from a .Net 2.0 webapp to the outside world so we have
utilised the 'defaultProxy' ...
I have this weird problem when putting textboxes on the page in reverse. The whole event system is messed up. Changing one textbox fires TextChange on all textboxes. I can fix this by putting the controls in a list first and then call add while iterating trough the list in reverse. But i just want to know why this fails. Heres some code ...
I added few extra columns, and now these stupid X are back but only on the first line on certain columns. By X I mean the background the cell is crossed over like a large x. I used to have this issue before and solved it by setting the alternating color to white. Nothing else has been changed aside from adding 3 extra columns to the data...
I'm searching for an ORM framework for .NET 2.0 (has to run on Windows 2000, so 3.0/3.5 is out) that is entirely code configured, and does not require XML. I need this to be "hard coded" in the app so that the app can be stand-alone and copied without any support files.
I've looked at most of the common ones like nHibernate and the XML...
Hello. I am using the AutoCompleteExtender on a commercial site. My problem is the users are quickly typing in part of a word and immediately pressing "Enter" which causes the AutoComplete control to NOT come back with a list of suggestions. For example, if my database has the phrase "Texas, United States" in it but the users just type "...
What is a really good book that lists and explains all the namespaces of the .NET framework. version 2 (3/3.5 is a plus)?
...
I compile my code using CSharpCodeProvider, and dynamically create instance of some class in result assembly. Than I call some method. If the method has recursion I get StackOverflowException and my app terminates.
How do I avoid this?
using System;
using System.Runtime.Remoting;
namespace TestStackOverflow
{
class Program
{
...
I have a problem that is surely familiar to many: I'm making a call (to be specific it is Forest.GetCurrentForest()) which, in some circumstances, will fail to work and throw an exception. Not a huge problem, just catch it and deal appropriately. However the call, when it fails, is very slow; it takes 30 seconds to fully finish.
I w...
This is kind of repeated from my previous question, although the objective of my question is completely different now.
I'm getting, now and then, about once a week, only in my development machine, a System.AccessViolationException in a web app I made.
Since my machine is having a few things that don't work quite well (like a blue scree...
I'm trying to send files via FTP very often to remote machines. I have succesfully written all the code for sending/receiving. Now i want to send different files (ex:3 files) to different IPs (3 Ips). How to do it?
public bool UploadFile(string file_to_upload,int attempts)
{
if (System.IO.File.Exists(file_to_upload)...
I'm attempting to bring some .net 1.1 legacy code into .net 2.0 and some of it relies on the Microsoft.web.services2 web services enhancements.
I could have swore I read somewhere about the objects in that dll being packaged into the .net 2.0 framework, or that they were replaced by something else in the .net 2.0 framework, but I'm not ...
I have a RichTextBox control on a form with some text, some of which are URLs. The DetectUrls property is set to true. The control properly detects my URLs (they're blue, underlined and the cursor changes to a hand when I hover them). However, when I click on them nothing happens (double-click and ctrl+click are similarly ineffective)...
Easy question:
I have an app that needs to make a half dozen SELECT requests to SQL Server 2005 and write the results to a flat file. That's it.
If I could use .Net 3.5, I'd create a LINQ-To-SQL model, write the LINQ expressions and be done in an hour. What is the next best approach given that I can't use .Net 3.0 or 3.5? Are ADO.NE...
I would like to deploy the .NET Framework 2.0 sp2 redistrbutable (NetFx20SP2_x86.exe) with my app.
Do I need to uninstall 2.0 or 2.0 sp1 if they exist on the client machine first, or is it acceptable to simply install 2.0 sp2 over the top?
Thanks.
...
Hello,
I have a VB.NET 2.0 project developed using VS2005 Free Edition and I am considering to upgrade it to VS2008 FE, mainly because I have problems once per year, whenever my Temporary Certificate expires.
I was wondering if you can point to some resources describing in what parts of the code I should pay attention after the upgrade...
Problem:It will asks there is no assembly reference/namespace for Database
Database db = DatabaseFactory.CreateDatabase();
DBCommandWrapper selectCommandWrapper =
db.GetStoredProcCommandWrapper("sp_GetLatestArticles");
DataSet ds = db.ExecuteDataSet(selectCommandWrapper);
StringBuilder str = new StringBuilder();
for(int i=0;i<=ds...
Can any help, please>
Can anyone provide me with the basics of passing (interprocess) a bitmap?
Send & Receive in C#
CreateFileMapping, I belive, is still the only way to do this.
Many thanks in advance.
...
Hi,
My windows application is deveoped on .net 2.0 FW,and build using ANY CPU, development enviroment is 32bit OS + VS2005
Now i am deploying this application on 64bit processoer + 64bit OS it is running slow.
But if i build using x86 (32bit) it is working fine without any issue on 64bit processoer + 64bit OS.
I have 3rd pary comone...
Hello;
I need help in writing a function which should take a datetime object and target timezone and it should return a datetime object after converting it to the target timezone - WHILE considering Day Light Saving of either target or current timezone.
Also, need a method to enumerate all available timezones.
I have been able to achi...