Hi!
I'm doing ClickOnce updating via code (i.e. using the ApplicationDeployment object) and I've come across an unexpected issue:
Say I have version 1.0 installed. If I stick up a new version (say 1.1) and run the app, it'll update just fine to 1.1.
But if I then stick up a new version soon after (say 1.2) and run the installed app (1...
I would like to know if it is possible to consume a AMF Service using .NET. I would like to consume a AMF service written in PHP using my ASP.NET Application, that is possible?
...
Hi All,
I am looking for a method which can fetch available time zones.
Using .net framework 3.5 I got method to do the same, but I am looking to fetch it using .net framework 2.0.
.net framework 3.5 specific code is as follows;
Dim timeZones As ReadOnlyCollection(Of TimeZoneInfo) = TimeZoneInfo.GetSystemTimeZones()
For Each timeZoneI...
Hello,
I have problem installing simple Windows Service, my code looks like this:
using System;
using System.Collections;
using System.ComponentModel;
using System.Diagnostics;
using System.ServiceProcess;
using System.Threading;
namespace Tools.FileMonitorService
{
public class Service : System.ServiceProcess.ServiceBase
{
...
I have "Microsoft.Web.Services2.dll" V2.0.3.0 in my GAC of two machines.
I am running this line in both of them:
Assembly.Load("Microsoft.Web.Services2, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35");
(note the version is 2.0.0.0 and not 2.0.3.0)
On one machine this fails (as I would expect). In another it works...
Using Moq, I have a very odd issue where the setup on a mock only seems to work if the method I am setting up is public. I don't know if this is a Moq bug or if I just have this wrong (newbie to Moq). Here is the test case:
public class TestClass
{
public string Say()
{
return Hello();
}
inte...
Hello.
I have faced with a situation in VB.NET and C# (.NET2) with the visibility of the static/shared members. It seems to me a little strange in VB.NET:
public class A
{
private static A instance;
public static A Instance
{
get { return instance; }
}
public string Name {...
I've lost the source code for one of my programs. Is there anyway to disassemble all the code in .Net reflector and then load it into Visual Studio (express preferably), and hopefully get the designer view as well?
...
When I try to see the internal list of Dictionary item I hate to expand every single node one by one. I'm looking for an easier way to do this.
For example:
I've got a Dictionary object Dictionary(Of AnotherObject, Integer) and I want see a property of AnotherObject as a list during the debug.
Normally I'd use this:
For Each item As ...
Hello,
I have a property getter with a lock like this one:
Public ReadOnly Property ActiveClientList() as List(Of TcpClient)
Get
SyncLock(m_activeClientListLock)
Return m_activeClientList
End SyncLock
End Get
End Property
When I do a ForEach loop when is the property getted? I mean, in this loop wh...
Is there a standard way in .Net to access and modify the windows services file? Right now I'm just accessing the file via a stream and writing to the file like I would for any other file. The file is located in c:\windows\system32\drivers\etc\, but I'm worried that this may change in 64 bit versions of Windows or may vary in different ve...
Is there a way to programmatically determine how busy a physical disk is in C# without using a System.Diagnostics.PerformanceCounter?
I ask because the documentation for System.Diagnostics.PerformanceCounter states that the user requires elevated priveleges and must be adminitrator or member of performance counters user group. I have n...
I have a WebBrowser control displaying some HTML.
I want the user to be able to copy the entire document, but not do anything else.
I've set the IsWebBrowserContextMenuEnabled and WebBrowserShortcutsEnabled properties to false, and I want to handle KeyUp and run some code when the user presses Ctrl+C.
How can I do that?
The WebBrowser ...
The software company I work for offers data conversion as a service for new clients who have previously used other similar software. I've written a VB.NET application to automate common conversion operations, and have separate logic between known vendors. A particular file layout has become rather common, but due to the nature of how t...
I'm interested in teaching myself different data structures, something I currently know very little about. My plan is to implement a few key structures so I understand how they work. I'm looking for suggestions on important data structures to start with.
I'm primarily interested in data structures that are relevant to search applicati...
hi,
I am new to developing UI in .net. Basically I am using a listview and I want to search through items in listview.
Suppose the list contains this:
Sno Name
1 Michael Jackson
2 John Mitchel
If I search usign the second or third term it should display all the items that match the criteria.
I tried using .FindString, but it is...
Hi,
consider the following two pieces of code:
public static Time Parse(string value)
{
string regXExpres =
"^([0-9]|[0-1][0-9]|2[0-3]):([0-9]|[0-5][0-9])$|^24:(0|00)$";
Contract.Requires(value != null);
Contract.Requires(new Regex(regXExpres).IsMatch(value));
string[] tokens = value.S...
I have a usual html form with text inputs inside of it, and everything works, but if I will insert some > < characters in a input than
I get this error:
A potentially dangerous Request.Form value was detected from the client
anybody knows how to handle this stuff
...
I am a .Net 3.5 WinForm app that is used for Data Entry in house only. Mostly various forms of Textboxes etc. With Windows 7 Speech Recognition it seems like it works "out of the box" with my app for me.
What I am wondering is if that is completely true. What steps do I need to take to ensure the highest level of usability in my ap...
What’s the equivalent of
System.Diagnostics.Debugger.Break();
in the Java world?
Purpose: I have a tomcat based webapp launched by a custom build tool and need to debug the application in eclipse. In the .net world the above statement when encountered will prompt the OS to attach a debugger and I can attach Visual Studio to deb...