-
- Structure or Class?
by JohnWein
- 14 Replies
- Last post
by JohnWein
- In most cases the same functionality can be implemented using a structure or a class. To me the class implementation seems cleaner and clearer. Is there an advantage to using a structure in some instances and a class in others
-
- problem with web application file upload
by Rajeshsv
- 0 Replies
- Last post
by Rajeshsv
- hi,
I have an application where i upload a file from my harddisk into the database thru a java applet. when i get finish the upload i am not able to delete the file which i uploaded from my harddisk until i close the browser.
how do i get to delete the file without closing the browser as i cannot stop in between using my application as i would loose all the work done till then.
Regards,
-
- Exception while Creating new .MDB using System.IO.File Class
by Siddharth Ramavat
- 3 Replies
- Last post
by nobugz
- Hello all, I am getting an System.Exception : Unrecognize Database Format , while creating a new .MDB file using System.IO.file class and with the help of copy() inside that class. Actually, you see when u create new blank .MDB file it has some size in terms of 80-90 kb.. but when I call this copy() function of System.IO.File class , it
-
- Trying to add a record to a SQL 2005 DB via Vb 2005 Application but avoid Duplicate Records
by jilan3109
- 2 Replies
- Last post
by jilan3109
- Trying to add a record by setting all the rows in each table to
For Each row As DataRow In Me .TTSDataSet.SiteInfo.Rows
row.SetAdded()
then i use a tableadapter to update the record, but then i have already encountered a duplication issue.
So i would like to check the destination database to determine if the record exist either by name or some attribute to avoid c
-
- .NET Framework 2 - AppDomainUnloadedException
by Ido Ran
- 7 Replies
- Last post
by Ido Ran
- Hello, I am developing a .NET Framework 2 application. When the application starts I create a new AppDomain and all the rest of the code is running inside that AppDomain. When the user "logout" from the current session I unload the AppDomain, create a new one and start all over again. The problem is that on the second session (after creating AppDomain, unload it and create a new one) the
-
- Threading and termination of a window
by Sean Connolly
- 6 Replies
- Last post
by Sean Connolly
- Hi.
I'm using Visual Studio 2005 (C#) and SQL Server 2005 Express Edition.
Every morning, a file arrives on our FTP server in the office which is used to update a SQL server database. Now I am working on the second version of our application, I intend for a timed event to go off at around 4:30am each morning, decode the file and populate the database with data changes.
On the
-
- using DataContractSerializer with Webservices?
by BabyGBear
- 2 Replies
- Last post
by BabyGBear
- My application is basically .Net 2.0 with a number of web services and some .Net 3.0 (WF only). The main object used by the application is serialized regularly (for recovery of data in case of errors, etc and to pass to web services) and I want to update it to include generics and nullable variables. This of course means that I can't continue to use the Soap Serializer as it doesn't support these.
-
- Accessing an object instance via a string
by Steve98796
- 2 Replies
- Last post
by Mike Stall - MSFT
- Is there any means in the Base Class Library via Reflection or otherwise of achieving the following:
I want to access an object i have created in code when its name is read into a string variable (C#)
So for example
Code Block
public class MyClass { public short width;
public MyClass() { } }
private void test() { String s;
MyClass
-
- How to set the KeepAliveValue when using Remoting?
by shue
- 1 Replies
- Last post
by Sowmy Srinivasan
- I'm using C#.NET,and i want to detect network failure when using remoting technology.I found out that Socket.IOControl can solove it.now the problem is how to get the exact Socket form TcpChannel or other objects
Thanks a lot.
-
- App.Config file problem
by bhavu
- 6 Replies
- Last post
by bhavu
- Hi Everyone,
I have developed one windows application and I am taking Configuration values from config file. Then requirement got changed and I have to use same windows application from Excel. So that I converted windows application to class library.
and used COM shim to connect to .net from excel. Now the problem is my .net application is not taking the values from config file (m
-
- Reflection of property that contains class
by jbinaz
- 4 Replies
- Last post
by jbinaz
- I'm fairly new at .NET and have a grasp of the concept of reflection but I am getting stuck trying to reflect (get and set) a property of a class that is actually a class in and of itself. Basically, I have "MainClass" that has three properties. Property A (string), Property B (string), and PropertyC (a custom type called ClassProperty which itself contains two properties, SubPropertyA a
-
- Disable keys
by Rajesh C
- 2 Replies
- Last post
by Huseyin Gedikli
- Hi
Is it possible to disable alt+F4, alt+Tab, Windows keys, Print screen keys in asp.net page
Any one plz help on this...
-
- .NET 2.0 Framework, Restart Required?
by dmt37
- 2 Replies
- Last post
by dmt37
- So it appears our Citrix servers do not have .NET 2.0. Will the install require a restart
Windows 2000 Server SP4
-
- asp error: operation must use an updateable query
by snuke
- 5 Replies
- Last post
by snuke
- okay this is kinda freaky! i make asp webpages along with ms access database to create web applications. prob is: sometimes (rarely!) i can add or delete data from the database by sometimes (most of the time!) i cant. error is http 500: operation must use an updateable query! now i used a friends laptops for a couple of weeks and he had iis installed too so i tested my web apps on his machine and
-
- Dataset DataRelation - Same named column!
by whitenosugar
- 4 Replies
- Last post
by whitenosugar
- I'm kicking up errors from a two table DataRelation. I'm linking two tables together filled from SQL statements. The statements are both joining the same column from a third table. Because the parent and child both have the same joined table column - it kicks up an error! I've tried renaming the column on the fly within SQL, but this doesn't fool the system! What am I missing What don't I get ! Ma
-
- Cannot find table 0, cannot find column in table and random errors like that in ASP.NET application
by Chetanace
- 2 Replies
- Last post
by Chetanace
- I am running an ASP.NET application. Quite often I am getting random error like the below: Cannot find table 0 Message: cstid is neither a DataColumn nor a DataRelation for table Table. StackTrace: at Microsoft.VisualBasic.CompilerServices.S ymbols.Con tainer.Inv okeMethod( Method TargetProcedure, Object[] Arguments, Boolean[] CopyBack, BindingFlags Flags) at Microsoft.VisualBasic.CompilerServi
-
- Huge bug in .NET 2.0 TripleDESCryptoServiceProvider
by David_Reynolds
- 2 Replies
- Last post
by David_Reynolds
- Hi we use the TripleDESCryptoServiceProvider to encrypt passwords which works fine on the .NET 1.1 framework. While porting our code to 2.0 we noticed that a CryptographicException is being thrown when trying to decrypt certain passwords. The exception says "Length of the data to decrypt is invalid". I've provided some test code that works fine in 1.1 but causes the exception in 2.0. How can we fi
-
- XSD Types derived from XML Elements/Attributes
by ChrisCurry
- 6 Replies
- Last post
by Martin Honnen
- Hello,
I am using the MSXML 6.0 DOM and have written an XSD which describes how my XML should be formatted etc. (as expected). I load the schema into the a schema cache and associate it with a DOMDocument object. I then load my XML file into the DOMDocument and it is validated as expected.
My question is this: in my XSD schema my elements and attributes have XSD type specifiers (unsignedByte
-
- File.Exists method
by Korsten
- 14 Replies
- Last post
by Korsten
- Hey everybody,
I have a question regarding the File.Exists method.
I'm using VS2005 and C#
What I want to do is to check if a File exists on the Pc.
When I do this on a PPC everything goes well, the file can be opened and I can read the contents of the File.
BUT when I do this on a normal (desktop) PC it says the file doesn't exist. (and I know it does exist)
I'm using the sa
-
- Managed add-in API, invalid cast on activation
by Acer11
- 5 Replies
- Last post
by Joe Smugeresky
- Hi,
On activation of my plugin into a new AppDomain I get an Invalid cast Exception - failed to cast Transperant proxy.
This does not happen when activating to the current AppDomain.
Any leads on the cause or how to debug this What am I doing wrong
many thanks
Acer
-
- Best way to secure web services
by Luis Esteban Valencia Mu&a
- 3 Replies
- Last post
by cds_ks
- Hello, I am reading about WSE.
the question is simple, I need to secure that nobody can put a sniffer in the middle an see the SOAP request body and headers in plain text.
As long as I know this can be done using only SSL on Internet Information Services.
So the question is why should I go further and implement x509 certificates
-
- IO.Directory.Delete - Read-only "Access Denied"
by Stuart J. Travers
- 10 Replies
- Last post
by nobugz
- I'm in the middle of a major project converting a VB6 application to .NET and have a requirement to delete a folder and its contents, in this case a complete user profile folder from C:\Documents and Settings. In VB6 I used the Scripting.FileSystemObject's DeleteFolder method successfully, however I'm unable to do so in .NET. I'm using the following function: Public Function DeleteFolder(ByVal st
-
- Intermittent Web Service
by SLang
- 5 Replies
- Last post
by John Saunders
- Hi Guys
I have written a small web service (vb.net vs2005), i have got it functioning correctly (on a web site) but randomly times out for no reason, when it does run it works well, its just frustrating (especially as i am launching my new product very soon).
If i type the url in a browser, this also times out, but i can still access other pages on my website
I have just put an as
-
- Semaphore.Release() - thread safe?
by Nick Tompson
- 2 Replies
- Last post
by Ntompson
- Hello,
I am writing some data processing code, which uses asynchronous techniques, based around the ThreadPool.QueueUserWorkItem() method. Essentially, the code has 10,000s of elements of data to process (each of which are very large in memory). Each element is processed by calling a method asynchronously.
To manage memory, I am using the Semaphore class, to ensure that not too many
-
- Statically obtaining the type of the containing class
by Omer_Mor
- 1 Replies
- Last post
by Mike Stall - MSFT
- This is probably not the best forum, but since I the BCL forum was unable to find an answer, I wanted to find with you guys if my problem can only be solved using the debugging interfaces.
What I need is a way to get the type of a containing class, without explicitly using it's name, and doing it statically (no "this" instance).
In the past I used to do something like this: