I have a small web product develop in MS .NET with Azure SDK used. I have tested the project in my local machine with the Azure UI Locally installed but I will like to try it out in the Azure platform itself. Is there anything special that we have to do to obtain access to the Azure Beta Platform?.
As you can see in the picture ab...
I've heard the claim before that .Net 3.5 made no changes to the IL that it compiles to. Upon thinking through all of the compiler features that I know were introduced, it does, in fact, seem that they could all be implemented in the same old IL, but I can't find an official source to corroborate this claim. Is it true?
...
I have a simple XmlReader:
XmlReader r = XmlReader.Create(fileName);
while (r.Read())
{
Console.WriteLine(r.Value);
}
The problem is, the Xml file has ISO-8859-9 characters in it, which makes XmlReader throw "Invalid character in the given encoding." exception. I can solve this problem with adding <?xml version="1.0" encoding="IS...
Hi,
I need to change Logon user for a Windows service programmatically. And I am using the following code to do that:
string objPath = string.Format("Win32_Service.Name='{0}'", ServiceName);
using (ManagementObject service = new ManagementObject(new ManagementPath(objPath)))
{
object[] wmiParams = new object[11];
if (PredefinedAccount...
I want to user the asp:ListView
I want to use it for editing
I dont want the postback to use Javascript when I put it into the edit mode.
Is this possible?
...
I'm calling the SQLDMO 8.0 COM library from VB.NET (using a PIA I generated with tlbimp) in order to backup a database with percentage completion notification:
Dim server As SQLDMO.SQLServer = Nothing
Dim backup As SQLDMO.Backup = Nothing
Dim restore As SQLDMO.Restore = Nothing
Dim backupAbortable As Boolean
Dim restoreAbortable As Bool...
I'm working on a relatively small proof-of-concept for some line of business stuff with some fancy WPF UI work. Without even going too crazy, I'm already seeing some really poor performance when using a lot of the features that I thought were the main reason to consider WPF for UI building in the first place. I asked a question on here...
Suppose I have a .Net Framework 3.5 SP1/CLR 2.0 application which needs to run on both x86 and x64 platforms. Suppose as well that for whatever reason, I need to create separate x86 and x64 installation programs.
As I have an x64-specific installer anyway, would there be any benefit to recompiling the application itself as x64 rather th...
C#: ListView in VirtualMode not displaying design-time columns when adding items & subitems at runtime?
I have a listview set up at design time with 5 columns. column[0] == empty checkbox item and the other 4 contain text.
My problem is that it 'whites out' my column headers & text when I press the button to add items to the listview f...
How can i write code for send Flash SMS (Sms Class 0) in Windows Mobile? please guide me with .NET or C++ code also .Net is better.
...
I have a silverlight 2.0 object on content of masterpage. i see it on local but can't see on the host after publishing. according to Microsoft blog i add 2 MIME type of xaml and xap but silverlight object doesn't appear. i can't see the content of silverlight object but i can configure silverlight by right click. please guide me.
...
How to create array of labels with Microsoft Visual C# Express Edition ? Is there way to do it with graphical (drag'n'drop) editor or I have to manually add it to auto generated code ?
...
Suppose I have designed a DataGridView to have a comboBoxColumn named 'dataGridViewComboBocColumn'.
I can populate the comboBox using the following code:
private void DataGridViewForm_Load(object sender, EventArgs e)
{
BookCollection books = Book.GetAllBooks();
foreach (Book b in books)
{
...
How can I determine by reflection if the type of an object is defined by a class in my own assembly or by the .NET Framework?
I dont want to supply the name of my own assembly in code, because it should work with any assembly and namespace.
...
Everytime I write some data class, I usually spend so much time writing the IEquatable implementation.
The last class I wrote was something like:
public class Polygon
{
public Point[] Vertices { get; set; }
}
Implementing IEquatable was exaustive. Surely C#3.0/LINQ helps a lot, but the vertices can be shifted and/or in the revers...
Let's call it "<<<"
int32variable <<< numberOfBits
equals
(int32variable << numberOfBits) | (int32variable >> (32 - numberOfBits))
(Assuming << and >> discards overflown bits)
There is such an operator?
...
A particular class has a Hashtable containing 1..N elements. I'm wondering if there are generic getter/setter methods for the Hashtable used in a class. I'm looking to make the hashtable values behave more like regular object properties:
public class foo
{
private HashTable _stuff;
public HashTable stuff { get; set; }
public fo...
I am using .NET (C#).
if I have 2 threads running T1 and T2 and T1 is like this:
while (true)
{
dosomething(); //this is a very fast operation
sleep(5 seconds);
}
at the same time T2 is doing something completely different however from time to time it needs to give T1 a kick such that it wakes up from the sleep even though the s...
The directory 'C:\temp' has two files named 'GZ96A7005.tif' and 'GZ96A7005001.tif'. They have different length with the same extension. Now I run below code:
string[] resultFileNames = Directory.GetFiles(@"C:\temp", "????????????.tif");
The 'resultFileNames' return two items 'c:\temp\GZ96A7005.tif' and 'c:\temp\GZ96A7005001.tif'.
But ...
Hi,
Can anyone suggest how to debug stored procedure from a remote sql server using visual studio.net 2005?
I am able to debug my stored procedure from local server, but I'm unable to do so if the sql server is remote. I will often get an error that
"Unable to start T-SQL Debugging.Could not attach to SQL Server process on [Remote S...