I am using the office interop to open word documents and saving as html to do parsing work. After a few executions I notice that in the task manager under processes there are still instances of WINWORD.EXE running. I have used the
following to close the object but it is still there
wordApp.Quit()
wordApp = Nothingenter code here
How d...
This is really driving me nuts, I have a datagridview bound to a bindingsource, on the click of a button I add new objects to my database using my datacontext, how can I make the binding source to show the new objects in my datagrid? I already tried setting the datasource of the binding source again but it wont work, eventhough the new ...
Either I do not see the solution or I found a pitfall in using MVVM.
I have this sample Master-Detail:
class Customer
{
int CustomerID {get;set}
string Name {get;set}
ObservableCollection<Order> Orders {get;set}
}
class Order
{
int OrderID {get;set}
int Quantity {get;set}
double Discount {get;set}
}
Lets assu...
I am trying to install my ASP.NET 3.5 website on EC2 windows instance and i get this error although i am running it under the admin user:
"You do not have sufficient privileges to complete this installation for all users of the machine. Log on as administrator and then retry this installation."
...
I have been looking at monotorrent and while investigating the whole bittorrent thing I saw that a torrent file may also specify web seeds, which are basically standard HTTP downloads but which can work e.g. as an initial seed.
I have also seen in the release notes of monotorrent 0.8 that they
Added the ability to easily add webseed...
I'm about to create an API for a existing .NET application and want to go the RESTful service route. Our backend platform is .NET and MSSQL. I'm hoping for a good blend or scalability combined with clean architecture.
Are there any strong opinions on the best way to implement a RESTful .NET API (WCF, standard ASP.NET, MVC or even HTTP ...
I'm currently involved in a very large supply chain management software system internal to where I'm employed. The system's UI is currently only implemented through ASP.NET, but we're in development of Windows Forms and Windows Mobile Compact interfaces as well. We have a pretty good setup in terms of separating the interface, business, ...
.NET's ProviderBase was established in the 2.0 release of the .NET Framework. Have there been any new features since then that supercede or improve on this pattern that should be used as an alternative?
...
hi ,
I've written a server programm lets call it progie , this progie working just like a clock on my windows 7 (my ms VS is installed on windows 7) after compiling the progie and transfer it to windows server 2003 I tried to run the progie but no chance.
here is the symptom :
when i was trying to run the progie I was also monitoring ...
I was just reading http://stackoverflow.com/questions/25458/how-costly-is-reflection-really
I do numerous reflection calls for property sets and was wondering if I should be looking at converting all of my PropertyInfo.SetProperty() into MethodInfos calls so that I can run Delegate.CreateDelegate against.
Finally if I do this, I assume ...
I'm working with a WPF/C# app where I need to lock out users from accessing a particular feature for some amount of time. Basically, from the time a certain event happens, I want to prevent certain access for the next 24 hours.
The simple case:
Event happens, save timestamp (using DateTime or similar)
User tries to access area 15 hou...
I've been reading Rockford Lhotka's "Expert C# 2008 Business Objects", where there is such a thing as a data portal which nicely abstracts where the data comes from. When using the DataPortal.Update(this), which as you might guess persists 'this' to the database, an object is returned - the persisted 'this' with any changes the db made t...
I am working on an application at the minute that will originally be just installed on a client machine with a lightweight database (may SqlLite).
After a while I want to add a web version of the same piece of software and with this the smart client will then be able to sync with the online version.
Has anyone done anything similar, ...
I'm trying to parse my XML in C#.
Here's part of the file that is relevant:
<holder name="wnd_login" width="300" x="20" height="180">...</holder>
Here's the code that is supposed to read it:
while (reader.Read())
{
if (reader.IsStartElement())
{
switch (reader.Name)
{
case "holder":
...
I have a basic server control that I've written using .NET 3.5. If I give that dll to someone who is running a .NET 2.0 application, will it work?
...
I'm thinking of doing:
for(LinkedListNode<MyClass> it = myCollection.First; it != null; it = it.Next)
{
if(it.Value.removalCondition == true)
it.Value = null;
}
What I'm wondering is if simply pointing the it.Value to null actually gets rid of it.
...
In my home and work pc's and in one friend of mine's it runs just ok, but when i sent it to someone else it 'loads' for 10 seconds responseless, then there is an error:
Since it works on at least four computers, i assume the program itself is just ok (same exact EXE).
What could be happening ?
info:
C#
.net 3.5
worked on Windows...
I'm not able to connect a simple client and a simple server. When I run the server there doesn't seem to be any problem, but when I try to send it data with the client it throws an exception saying that it didn't connect within a timeout period.
Here is the server code I'm using:
public void server()
{
try
{
...
I'm trying to access the news stream to pan for certain events
I'm running into a few issues with the facebook developer toolkit
does anyone have or can point me to an example of getting the news stream?
...
I've just come across these in MVC, and would like to use them instead of tables sometimes, as tables and DIV's just don't mix well!
Never seen these before, and was wondering if there is any documentation about these new table-substitute TAGs? I've also heard recommendations to use these as opposed to tables and would therefore like to...