I would like to know if there is a way to see Assembly Version number of the last completed build within the Visual Studio 2008 IDE. I don't want to see the 1.0.* that is in the Assembly Information dialog box or AssemblyInfo file, but rather the full version (with the *'s replaced by real numbers). I also don't want to have to bring u...
What unusual, unexpected consequences have occurred in terms of performance, memory, etc when switching from running your .NET applications under the 64 bit JIT vs. the 32 bit JIT? I'm interested in the good, but more interested in the surprisingly bad issues people have run into.
I am in the process of writing a new .NET application w...
How to convert the .snk RSA keypair file used to sign the .NET assemblies to XML based files that can be used with PHP or other software?
XML file sample:
<BitStrength>1024</BitStrength><RSAKeyValue><Modulus>tk=</Modulus><Exponent>QB</Exponent></RSAKeyValue>
...
Users of my application type HTML into a TextBox control.
I want my application to validate their input in the background.
Because I don't want to hammer the validation service, I've tried to build in a one-second delay before each validation.
However, I don't seem to be able to correctly interrupt an already-running BackgroundWorker ...
I'm just curious why class/property attributes in VB.NET have a weird optional syntax such as:
<TestAttr("a", "abc", Optional1:="foo", Optional2:=3)>
VB.NET allows you to set optional parameters like this to avoid order restrictions (which is lovely) but in this case it's forcing you to that.
For example this is not possible:
<TestA...
I'm using TeamCity to manage one of my projects however it doesn't seem to be working well with Nant on Windows Server 2008. What can I do to fix this?
BEFORE Installing the ASP.NET 2.0 Framework SDK:
[10:21:07]: BUILD FAILED
[10:21:07]: Failed to initialize the 'Microsoft .NET Framework 2.0' (net-2.0) target framework.
[10:21:07]: ...
I have a serie of child items of a table, that I wan't to delete and then add the new ones.
I don't care about performance, because it is a non frequent operation.
How must I do it? I have tried Order.items.clear() and Order.Items.Remove(x) but both give me exceptions
Simplified code:
Dim db As New MainDataDataContext
dim o as...
Is there a way to turn option strict off for just a single line of code?
I'm doing some maintenance work and I need to "cheat" in just one place and I don't want to lower the standard for the entire file.
...
I'm trying to consume some .NET web services using JAX-WS. I have generated the Java classes using the wsimport tool. However, when I try to use these (proprietary, not public) web services in Java, I notice that most of the methods and properties provided by the vendor in their C# examples are not avaiable in the generated classes (desp...
What is the best way to handle this I have an application where I constantly have to "pivot" 12 month records into one year record/object to be able to display a single year per row in a DataGrid. I have been doing this work up until this point in DataSets with some ugly T-SQL to get the pivot to happen.
I'm upgrading this application t...
Hello,
I was wondering if there is a way to remove text and images from a PDF.
My goal is to create two images, one being just the text and the other the images.
I tried to looking at the following SDKs but didn't find what I was looking for:
Pegasus PDFXpress
Tall Components
LeadTools
Thanks!
...
Consider the following code:
partial class OurBusinessObject {
partial void OnOurPropertyChanged() {
if(ValidateOurProperty(this.OurProperty) == false) {
this.OurProperty = OurBusinessObject.Default.OurProperty;
}
}
}
That is, when the value of OurProperty in OurBusinessObject is changed, if the val...
While I can't get my desktop, running Win7 64, to connect to our network printer, I'd like to be able to paste files, using Input Director, into a share on my laptop. There I'd like a FileSystemWatcher to pick them up and print, then delete them. How can I do thi? I assume I need to hook into the shell somehow, meaning my app can't be...
Is there a sane way to get a list of expected parameters from an SqlDataSource given the name of the stored procedure assigned to its SelectCommand property?
...
Hello,
I have a SQLServer 2005 database on a client server. I have a VPN connection to their server. I am using the connection code from here
When I run the winforms app from my local dev machine it works fine, reports display things are great. When I run the app from testing machine it fails. I have followed the trail and found out th...
Hi,
I'm broadcasting a simple message to ..*.255 (changing to 255 the last part of my ip) and i'm trying to listen to it. the code returns no error but i'm not receiving anything. In wireshark I can see the broacast is sent correctly, but with a different port each time (I don't know if that's a big deal). Here's some parts of my code.
...
I share a lot of feeds on my google reader, i want some code using asp.net to read all these feeds and put in a page, may be with paging because feeds are too much.
Any one know how to do so?, or if there is a tool for that
...
I'm making asynchronous web service calls from a C# app:
{
//Put UI in 'loading' state
...
//Now call web service
webServiceProxy.BeginMyMethod(param, new AsyncCallback(MyCallback), null);
}
private void MyCallback(IAsyncResult res)
{
...
//process result
// Put UI back in normal state (yes I'm marshalling back to t...
I am planning to use various objects that are exposed as COM objects. To make them easier to use, I'd like to wrap them as C# objects. What is the best approach for this?
...
I have a DataGrid in ASP.NET 2.0 with the following column in it:
<ASP:TEMPLATECOLUMN>
<ItemStyle HorizontalAlign="Right"></ItemStyle>
<ItemTemplate>
<asp:HyperLink id="HyperLink1" runat="server"
CssClass="DataGridCommand" Target="_blank"
NavigateUrl='<%# GetPreviewURL(DataBinder.Eval(Containe...