.Net Base Class Library's Today Newest Questions & Articles Featured
- How to read values out of non-default configuration file?
- I have configuration files whose sections are simple key/value pairs, handled by System.Configuration.DictionarySectionHandler. E.g., here's a trivial one:<?xml version="1.0" encoding="utf-8" ?><configuration> <configSections> <sectionGroup
- Can't start a Windows Service in Win2000 that i developed in VS2005
- Hi, i have created a Windows Service, wich task is to write a single message in the eventlog, The service won't start on my Win2000 servers. I also tried to run it on a few other machines, WinXP and Win2003, and it works fine. It does the task like it should and there is no problem with it. I
- Deleting file with no file extent
- Hi, When using System.IO.File.Delete to delete a file across a nework, I'm getting the exception: System.UnauthorizedAccessException: Access to the path '\\ServerName\ShareName\file' is denied. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at
- Auto incrementing the version #'s
- I have a .net application in 2.0 I'm trying to auto inc the FileVersion. In 2003 you could do AssemblyFileVersion("1.0.*.*") and VS would inc when you compiled. Doing this in 2005 generates a warning and no auto inc. Any ideas?
- Need help understanding dynamic DLL loading
- Hi all, need some help with dynamic DLL loading.I am trying to create an application that will instantiate a class (from a DLL) at runtime. The type, exposed properties, and exposed methods of the instantiated class are known (inherited from a custom designed class). Using
- String.Compare with Unicode characters
- I am trying to sort a list of Greek Unicode strings, but I can't get the .NET framework to correctly sort or compare the accented vowels. For exampleString.Compare("?","?") // or String.Compare("\u1f00","\u1f30");always returns 0
- Microsoft.VisualBasic.Vsa & Microsoft.Vsa do not work in Windows Vista.
- I am using "Microsoft.VisualBasic.Vsa" and "Microsoft.Vsa" to dianamically code, compile and run the script. This is working properly in Windows XP however when I run same Widows Application in Vista then it does not compile the script but gives following Error. "An
- app.config xsd. (Invalid schema elements)
- Hi, In moving from .NET 1.1 to .NET 2.0 I note that the new configuration attributes and classes based on ConfigurationManager validate the app.config file. I receive several warnings and messages abount unknown elements in the config file, even though I have declared my config section and used
- Error 25007.Error occurred while initializing fusion. Setup could not
- Hi, I am trying to install .net framework 2.0 on Windows XP OS. I get the following error " Error 25007.Error occurred while initializing fusion. Setup could not load fusion with LoadLibraryShim(). how do i solve this?
- codedom CompilerError Column always = 0
- I'm looking to get some debugging information from code that was built with codeDom and while CompilerError.Line and .ErrorText seem right, CompilerError.Column seems to always be 0. Am I missing something? Has anyone else seen this of ever received a CompilerError.Column > 0 ?On a somewhat
- need urgently - finding out downloadable updates programatically
- Hi Everybody,what I need is - when I click update mysystem button on my site page then it should check for latest updates available and should automatically update the system in backend without the intervention of the user to update the system and after updating it should display an alert
- Is there a better math expression evaluator than datatable.Compute() out there?
- Currently using (more like abusing) the datatable.Compute() method in order to evaluate string math equations in my project. Example: Code Snippetstring _result = new datatable.Compute("(5 + 3) * 8", null); It's clear intended use is for working with datatables (obviously). I
- Catching generic Exception
- Hi, Though Microsoft's class design guidelines clearly mentions not to catch generic exceptions but i see in most of the code for custom frameworks or in UI they catch generic exceptions.If someone can throw light on the limitations it will be really helpful
- Unload Assembly
- Hi all,I am running into trouble of linking to a dll dynamically. I found that I can only do this through a second AppDomain, while done unload that AppDomain completely, which apparenly for me, a guy from unmanaged C++ background, sound a bit scary ...I do want to know how dangerous and how
- How do I pass Binary data to an unmanaged C++ func from C#?
- Code Snippet I am calling a C++ function from C# code. One of the parameters to the function needs to contain a sequence of mixed data (bytes, chars, ints).I can get the data into a byte[] in my C# code, and ultimately I need the same bytes to be in a std::string in my C++ code. The
- Programming WMI in C#
- I have seem many articles which teach programming WMI in C++ and COM. Can I do it in C#?I understand that there are many unmanaged component in current versions of Windows. Does it means I can only program WMI in windows Longhorn?Thanks
- Looking for advice in designing audio voice recording & playback support for a call-center sup
- My PlatformOperating System: Windows XP SP2Primary Language: Visual C# 2005 / Visual Studio 2005 ProfessionalOther Languages: Visual C++ 6.0 / Visual Studio 97 and Visual C++ .NET 2005 / Visual Studio 2005Microsoft Library Interface: Microsoft Multimediat API’sMicrosoft Runtime File:
- how to add arraylist to string[].
- Greetings All,can anybody pls help me to complete the following. i am having a sting array and i want to add arraylist to string array.string[] vaOutput = new string[4];System.Collections.ArrayList arsList = (System.Collections.ArrayList)ars0.GetValue(0);vaOutput[0] = "E" +
- How to convert an object to a generic list based on a type parameter?
- I store a few list of items in my cache and I need a way to retrieve them and convert them back to the object I want. For example, I store a List (of InvoiceA) and a List (of InvoiceB) in my asp.net cache. The classes InvoiceA and InvoiceB both inherit from one abstract class called Invoice.
- Access Denied when writing to a file.can you help?
- Hi guys,Despite several pages on goggle on "access denied" I have not found a proper solution.I have a vb.net project 2005I have created a folder called "c:\Test"then I m trying to create a file in this folder and I get "access is denied"Could somebody give me a walkthrough or what permission
- Multithreaded Socket Problems
- Hello everyone! I'm running into a slight snag here pertaining to a networked application. I have a little "network test" program (two actually, a client and a server app) that connects and disconnects just fine across two computers. My main project though has the server in another
- When is the new version of dot net schedule to come out?
- hiI'm a student that is soon to be out of school. Please be kind, I'm a virgin to this so I'm probley asking many basic questions.I have net 2003 and I don't know if I get a break by getting net 2005?My question is when is the next version of dot net due to come out? The reason I am asking
- ? MethodInfo Props are Wrong (or Docs are Wrong) ?
- Hi everyone, I hope you can comment on this -- I'm pretty darned sure that either some of the MethodInfo properties are wrong or the Microsoft documentation is wrong. Please have a look at the program below. It attempts to print out the accessibility (i.e., "visibility") of each
- MSMQ public queue
- Hi, recently i was trying to create public queues on a workgroup machine but i realised that i cannot create public queues on a workgroup. Only on domain but i am still not sure about this.And can i create a public queue remotely on another computer? Say Machine A creates a public queue on
- String & Like
- Is there a Like operator that can be used with the String class?
- Dealing with implicit meaning, collections, Dictionary
- I wrote out a nice long explanation of the problem I'm trying to solve, but then I realized that it's probably less confusing to just look at the code below, and then respond. Think charts.In the code below, the Dictionary's keys serve as the x-axis coordinate of points, and the keys'
- The following components failed to install while Installing Visual Studio .NET 2003
- Hi QuanTon,Thanks for your update. I have formatted my system and re-installed Windows 2000 PE OS in my system and started installing VS.Net 2003 Architect Edition. It was installed successfully. But I have encountered an error while opening new ASP.Net project file. The Error message is given
- Reducing "Asm dynamic load" time/load.
- Hi. The application i am working on required loading Assembly dynamic loading as application at runtime read the name of Asm from DB based on system state (for ex. LoanCriticalRisk or LoanApproved) and calls method DoProcessing which is implemented by all Business classes in my system.Runtime
- very weird .NET bug
- I'm having the most weird .NET bug.I have a very simple application (I won't even post the code here). But in some PCs this application behave very weird. ComboBox, ListBox, MessageBox... nothing seem to work. I know there's something specific about this machines (some software installed)
- Bug with NullableConverter ?
- When attempting to convert Decimal to Decimal? at runtimeType targetType = typeof(decimal?); decimal newPropertyValue = 2.3; -- NullableConverter nullConverter = new NullableConverter(targetType); object nonNullableValue = nullConverter.UnderlyingTypeConverter.ConvertTo(newPropertyValue,
- »» Read More about ".Net Base Class Library"...