Hi,
I am calling a stored procedure through LINQ-to-SQL (yes, I know it's deprecated). I am getting back an error, but the IExecuteResult only seems to be able to provide me with a number, when I would like the full string error description (like what you would get if you executed the SQL by hand in SQL Management Studio). Alternatively...
I've implemented a system in C# that uses the Microsoft Message Queue (System.Messaging) for communication between related processes. Essentially, a number of Sender services generate messages to put in the queue and a number of Receiver processes watch the queues and grab those messages when they arrive.
I've just been told that there...
I've got the following scenario:
An application is built via the IDE and via a build script. The build script is used for the initial setup (fetching dependencies, setting up environment), to generate the binaries and for the continuous integration process.
I want the binaries to have as an AssemblyFileVersion the month and day on build,...
So having read some of the PostSharp documentation presented as an answer to my previous question regarding passive logging (http://stackoverflow.com/questions/687867/is-passive-logging-possible-in-net), I am led to my next question:
Where is a good place to start learning about Aspect Oriented Programming - I've done some searches on G...
I need to be able to get from .NET assembly a class/struct/interface definition location (filename,begin_line,begin_column,end_line,end_column) in my source files.
First solution that came to my mind was using some pdb quering api, but it seems that I can obtain such info only for method definition this way. Or maybe I'm wrong...
To pr...
I want to use the new Constraint-based model in NUnit. In which assembly and namespace are the classes defined? (Specificially, I'm looking for the "Is" class and the IConstraint implementations discussed in the documentaton). They do not seem to be in NUnit.Framework.
Also, I'm interested in v2.4.8, which as of this writing is the late...
How would one display what line number caused the error
and is this even possible with the way that .net compiles its exes?
If not is there an automated way for exception.message to display the sub that crapped out?
try
{
int x = textbox1.text;
}
catch(exception ex)
{
messagebox.show(ex.message);
}
...
Can someone point me to a C# open source implementaion with a simple image animations.
e.g. I feed the input image to animator, and the animation code produces a few dozen of images which if displayed sequentially looks like animation.
I am not something extremely fancy - a simple DirectX filter like animations would do.
...
I am trying to get zIndexing working on a custom UserControl but it clips the bottom of the control when it pops up inside a TabControl as shown here.
This is my XAML
<StackPanel Panel.ZIndex="1">
<TabControl Name="TabCtrlMain" Panel.ZIndex="2">
<TabItem Name="TabItmOrdrLst" Visibility="Collapsed" Panel.ZIndex="3" >
...
I have been a long time C# and .Net developer, and have been playing with the idea of learning c++.
One of the primary reasons I have been thinking about this, is how much faster C++ can be over apps using the .Net framework. But am I right in assuming that if I write a C++ app in Visual Studio, and/or reference .Net libraries in a C++...
Hi guys,
What is the Difference between .NET components and COM Components, sometimes we use .NET Components to include in our projects and sometimes we include COM reference. What is the idea behind? Thanks in advance.
...
How can I find out the properties and methods of COM objects returned from some .NET functions, which do not appear to be documented?
In the particular example I'm looking at, I'm inserting a picture into Excel using a function like:
Set NewPic = ActiveSheet.Pictures.Insert(FileName)
(See the SO post on this here.)
However, the MSDN...
Hi all,
Currently I have a test class called TestClass.cs in C:\Projects\TestProject\TestClass.cs
I also have an Xml file in C:\Projects\TestProject\config\config.xml
In TestClass.cs, I have a test method to load the Xml from the filesystem like so:
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load(Path.Combine(Assembly.GetExecuting...
I've got a Website project in VS.NET 2008. I have a class in App_Code folder
namespace RM{
public class MyClass{
...
}
}
I need to know what assembly this will compile to? You'd think it should be RM.dll but doesn't look like it.
I know that it's better to use WebApplication project instead, but it's not an option at ...
I am using the following code to set a session cookie
HttpCookie cookie = new HttpCookie("visitId");
cookie.Value = value;
cookie.Domain = ".example.com";
Response.Cookies.Set(cookie);
This works fine, although I was surprised to see in IE8 when I hit F12 (developer tools) and then 'Cache > View Cookie...
I need to pass information from one exe to another exe. Is it possible ?
If it is possible, can you give me idea to solve this problem.
here i need to send some string msg to another exe . the another exe should recive that msg and it should perform some operation depends on the that string msg...
...
I'm aware that WPF allows you to use images that require WIC codecs to view (for the sake of argument, say a digital camera RAW file); however I can only see that it lets you show the image natively, but I can't see anyway of getting at the meta-data (for example, the exposure time).
It obviously can be done, as Windows Explorer shows i...
I wonder if anyone has tried velocity in a production environment. It is in CTP2 version right now, and we are thinking of using it. Has anyone tried it? If yes was it a positive experience?
...
hi,
how to find whether a dll(c#) is registered or not programmatically.
i already tried this code.but it doesnt come off.
if i register a dll and check using this code it returns,if i unregister it and
run this same piece of code ,it returns true again,im giving the fullpath of the dll as argument
we developed a simple dll in vc++ ,a...
is there any api for vb.net that gives the possibility of making different shapes like word's autoshapes?
...