Out of curiosity, I've created 2 assemblies which both have a class (Class1) with the exact same namespace (Library1). I then create another client referencing those 2 assemblies and try to create an instance of Class1.
The compiler, not surprisingly, gives me a compile-error about the ambiguous reference. Is there any way to explic...
We are having nondeterministic System.AccessViolationException thrown from native code. It's hard to reproduce it, but sometimes it happens. I'm not sure if I can "just debug it" since the time needed for access violation is about 2 hours and there is no guarantees that access violation will happen.
The native library is used by managed...
Hi guys,
I have two projects in a solution: GUI and Controls.
Controls is supposed to have our company's custom controls, and all the forms live in the GUI. However back in the dark times before the Empire, some genius thought it would be a great idea to create a TextBoxLookup control. This has a custom property you can set (eg BankAc...
Can I use tracing instead of my manual logging mechanism?
Please recommend good references and advices.
...
Hi folks,
I've got some tables in my Linq2Sql designer (in Visual Studio 2008). Works great.
Now, I just tried dropping in a View onto the designer. It dropped on there ok, but there's NO foreign keys/associations.
hmm. Ok, so then I tried to manually add an association between the View and a parent table. That worked .. but when i ...
Can a .NET component be used from a COM component?
...
Hi guys:
My company is doing the future planing at the moment. One of important things is to decide which framework we should build our company IT on? .Net or Java? It seems both frameworks have it advantage and disadvantage. Just want to hear how you guys think about this issue.
Cheers
...
hi,I developing a mobile web application where i need to display data retrieved from database to a grid or datatable in .net.i have tried out with list but it is not serving my pupose as i ned to siaplay multiple columns and rows fetched from the databse.
Thanks in advance!!
...
I want to enhance an application with scripting support like many other applications have, e.g. MS Office using VBA or UltraEdit using JavaScript.
Which libraries exist for C# / .Net (and which language(s) are they supporting)?
...
Is there a good way to allow only a certain class to have read/write access to properties in another class without having inheritance structure between them during design mode in .NET?
So if a class has public properties, only a certain class has visibility to these properties?
If not possible during design mode, then during run time. ...
Hello everyone,
My development/deployment environment is, IIS + Windows Server 2003/2008 + .Net + VSTS2008 + C#. I have several web sites, each of them has stable and beta version, for example, I have beta version order system and stable version order system, the same as purchase system. I deployed the 4 systems on 4 different physical ...
I have a not null sql datetime field and if my text box in the asp.net mvc app is blank, as it cannot convertt string.empty to datetime i get error. What is an elegant way of handling this situation?
...
I have recently considered going on a training course for WPF so I did a quick search and at the top of the list was this training course from Learning Tree.
It seemed like possibly what I wanted however when I looked at the price I nearly choked. £1700 for a 4 day course. As if that wasn't enough I was greeted with this tempting phot...
I have to inherit some legacy code in company, which is written in Visual Basic.NET 7.0 (Visual Studio.NET 2002). I don't have much experiences in VB.NET, and this line of code gets me in trouble:
Public Class Global : Inherits System.Web.HttpApplication
Visual Studio gave this error: Error 31 Keyword is not valid as an identifier....
The answer to What is the correct way to make exceptions serializable? says that the "correct" base implementation for a custom exception includes 4 ctors:
[Serializable]
public class SerializableExceptionWithoutCustomProperties : Exception
{
public SerializableExceptionWithoutCustomProperties()
{
}
public Serializabl...
Hi,
I am using DataReader to write data into excelsheet cells. I have no problem until the cell has write previleges. But in one case, only one cell is readonly and the rest cells are writable.
Eg : 10 * 10 cells, only first cell is readonly. so, i shuld leave this cell and write it to rest of the cells. But with the data reader it wr...
I have implemented caching Images in my website, It is working fine in IIS 6 but not working in IIS 7 problem is images not shown on my website on iis7 hosted server but shown on iss6 hosted server
I have implemented caching using this Article....
http://www.codeproject.com/KB/aspnet/CachingImagesInASPNET.aspx
Does anyone have any idea ...
Hi!
Is there a way to declare that the variable type of a generic class must be serializable?
Best RegardsOliver Hanappi
...
I'd like to generate the classes the xsd.exe way and not the linqtoxsd way.
Thanks,
--Ran.
...
Hello,
We have a web application that produces reports. Data are taken from a database.
When we ran the web application on a localized system, it blows up. We traced the problem on a DateTime.Parse(dateString); call.
The dates stored in the database is somewhat dependent on the locale of the machine.
On an English system, the date is...