If I select an extensibility addin of Excel, I'm able to debug my Add-In in Debug Mode with Excel, like
_application.ActiveWorkbook.ActiveSheet.Count
in Immediate window, but now I've moved to VSTO Excel 2003 Add-in,
here I've goto following message while debugging,
Cannot obtain fields or call methods
on the instance of type
...
I have a console application written in C#. This application copies e mails from exchange mail A to Exchange mailbox B. I am making use of Outlook redemption to log on to exchange mail boxes and do the copy operation.
The issue is thatwhen I connect to exchange mail box, the exchangeConnectionMode is olCachedConnectedFull so when I do co...
I am getting an error means intellisense not producing 'regkey' variable, when i am assigning value in to the property.Can we assign value in to a property like this way
like this way
public string Wrmversion
{
get { return m_wrmversion; }
set { m_wrmversion = value; }
}
private string m_wrmversion = (string)r...
Hi, I have a WCF Webservice that returns a bank list from database, when I use IIS server I get the message "Cannot process the message because the content type 'text/xml; charset=utf-8' was not the expected type 'application/soap+xml; charset=utf-8'.".
And when I use self hosting (application console) to run the WS, works without error...
I have an algorithm of which I'm using System.Diagonstics to time - via the Stopwatch.
It works great but one thing I have noticed is that the first time I run the algorithm it takes around 52 milliseconds which is great.
The second time I run the algorithm it takes only a fraction of that time.
Is this due to the nature of .NET?
Ea...
Is it possible to tell xUnit.net to perform all e.g. Assert.True() in one test method? Basically in some of our use/testcases all assertions belong logically to one and the same 'scope' of tests and I have e.g. something like this:
[Fact(DisplayName = "Tr-MissImpl")]
public void MissingImplementationTest()
{
// parse...
I'd like to gather some stats about the usage of my application, and since I already have web stats in Google Analytics, I thought it'd be cool if I could send a request from the app that causes a hit in Analytics, eg.
/app/v1.0/debug
This would allow me to see how often my app is starting up (or whatever).
I had a look online and fou...
Hi,
I'm trying to figure out how data binding with BindingSource is supposed to work
I want a DataGridView to be populated with the content of a List<> upon update of the list.
I can see the List grow and verify it's being filled when I check the debugger. I thought the BindingSource would fire an event when the List is changed. But ...
Hi everyone.
I have ObjectContext named for example MyEntities. There is also some entities, let's say they are Entity1 and Entity2. I want to make MyEntities internal. Entity1 and Entity2 must be public. Is it possible?
...
Hello
I have a situation when I need to access the private members of a class in an embedded private class. How can I do it efficiently.
public partial class Form1 : Form
{
// this private label will be used only in this form
private class MyFormLabel : Label
{
MyFormLabel()
{
this.BorderStyle ...
Is there a way to programmatically run T4 text templates from code? I'm making a custom domain specific language and I would like the related text templates to run every time the user saves. Currently, this is what I do in the DSL model:
protected override void OnDocumentSaved(EventArgs e)
{
IVsCommandWindow commandWindow = (IVsComm...
Hi all.
We have a plugin system here, written in c++. Now that this has to have an ability to upgrade plugins(which are COM) we need to unload the plugin, install the plugin and then load it again. Now the problem is that this has to happen without closing an app. c++ COM dlls get unloaded pretty good but .NET ones not. Here's the sample...
Hi,
My company is to develop a touchscreen application. We have some prior experience with thouchscreen application, not all of which are positive. Our last touchscreen application contains some vast disadvantages:
First, the application is built on a bunch of forms that are loaded each time a user presses a “Next” or “Previous” button...
If I execute a stored procedure with passing parameter it's executing fine.
If I didn't pass a parameter, sometimes it is giving an error. null dataset.
Same sp if I pass with dummy parameter it is returning dataset.
Somebody help me please.
Priya
...
Related to a previous question re. the debugger not working for me from VS Express:
http://stackoverflow.com/questions/1840542/visual-studio-express-cant-debug-the-debugger-is-not-properly-installed/
I established that the problem seemed to be with the particular project that VS had set up when I chose "Open Web Site > Filesystem". I w...
Our team is evaluating various ways to validate entity properties and I came across this new feature in .NET. I haven't had much time to learn about what it can do for data valiation. Can someone, who has experience with this, tell me the concept behind this and it's usefulness for use in a C# application.
Randy
...
As the subject is self explainatory, I need help.
I'm writing a small tool that displays a splash screen when starting.
The splash screen is a Form. When there was only a Button control on it it was working fine.
But when I removed it and placed a WebBrowser control on it, it throws the above exception.
Thanks in advance.
...
Is it possible to manipulate the bytecode of a (signed) .NET program at runtime? E.g. by forcing the JIT to re-evalutate the IL?
...
Hi,
Often i have a problem that I need to determine which assebmly to include
into my project in order to use specific class. For instance I want to you
TypeInfo class. MSDN does not say it belongs to. Actually I am not even been able to find
TypeInfo class using MSDN document explorer search. All the results relate to some other stuff....
Here's my table:
<table class="detailTable">
<tr>
<th>
Event Title:
</th>
<td>
<asp:Label ID="lblTitle" runat="server"></asp:Label>
</td>
</tr>
<tr>
<th>
Date:
</th>
<td>
...