Recently I came across the error "Collection was modified after the enumerator was instantiated" and I have no idea why. The error specifies the web.config. What causes this error?
I haven't been able to reproduce it. The error pops up very seldom and random. My program takes in a file and processes it. When I receive this error I ...
I know that we cannot set the Command Timeout in the Connection String. So I put it in the MyDataContext constructor. But there are many constructors, this file is usually overwritten by the visual designer and it doesn't seems the right way to do that. How would you do that?
...
Does anyone know of a Reflector add-in that allows you to distribute assembly lists? That is, the lists that can be maintained when using the File, Open List menu option?
I have a list of assemblies for development that needs to be updated between several machines used by different developers at the moment. Something less painful would ...
I'm working on designing an EDI system for two companies: Company A and Company B. Company A already exists as a small manufacturing business, and Company B is a new company formed around a specific product with the involvement of the owner of Company A. Company A will have exclusive rights to produce the product for Company B.
I'm res...
We have large IBM Infoprint printers. I need to read a bunch of PDF files off a database, merge them together, and send it to one of these printers. I need to be able to specify many options such as what tray to use, with/without staple, etc. All of these options can be manually set when I try to print something off my computer (via t...
I'd like to call into a .NET assembly for some data and library functions from a Processing user interface. What's the best way to achieve this? Expose a web service? A RESTful API? Some godforsaken processing/Silverlight monstrosity?
Good ideas are welcome.
...
Is there a preferred way to identify core .net framework assemblies ? i.e. asm which are part of the framework ?
This is for a an application auto updater which
1) takes in an assembly using ASP.NET upload
2) checks it's assembly references
3) ensures they're available for deployment too
4) they're pulled as needed based on auth/a...
I have a WCF service exposed with a webHttpBinding endpoint.
[OperationContract(IsOneWay = true)]
[WebInvoke(Method = "POST", RequestFormat = WebMessageFormat.Json,
BodyStyle = WebMessageBodyStyle.Bare,
UriTemplate = "/?action=DoSomething&v1={value1}&v2={value2}")]
void DoSomething(string value1, string value2, MySimpleObject ...
I'm having a problem with setting up a WCF web service integration with a 3rd party. It appears that it's not correctly deserializing the response object, I'm just getting a null from the web service call.
The 3rd party is using this web service framework, which has a large set of abstract and complex types for performing simple operat...
Is there a way to make a standalone web application that runs in the tray or something like that using .Net and opens a port with a web server (embedded in the application) using either WebForms or MVC?
...
Is this possible? I am able to send through localhost, but on godaddy the email doesn't get sent. Has anyone managed to achieve this?
I'm using C#
...
I have a ever growing project using StructureMap as the IOC container. I am trying to reduce the amount of code in the StructureMap registries by using the auto-registration with Scan(). As I make changes is there an easy way to dump the current container to the console so i can see if the changes have done what I expected?
...
As the title asks, is VistaDB 3.x/4.x supported in Data Access Application Block (DAAB) of Microsoft Patterns and Practices Enterprise Library 3.x/4.x?
If it is and you have used the two together, are there any issues or caveats I should know about? Or... Could anybody provide links to source code for the custom provider for Enterprise...
I'm sorry for not being clear enough in my question, here we go again.
I'm in the middle of a research for defining a reporting tool and I've being studying a number of them: Active Reports is very good but expensive in comparison to DevExpress XtraReports (talking about features and support).
My customer requires me to tell him about ...
I have a WPF application that occasionally crashes, and say "not responding". Is there a way to detect if the program is not responding? And if so, restart the WPF application?
This will be a temporary fix until the bugs are fixed.
...
What is the best way to access components (e.g. imagelist, timer) from a form instance? I am working on multi form windows forms application on .NET Compact Framework version 3.5 SP1 with C#. I have a Controller class associated with each form for MVC implementation. Here is my sample Controller class.
public class Controller
{
pu...
Hi Fellow StackOverflowers,
I am receiving a string in one of my .NET function. The string when viewed from the XML Visualizer looks like this:
- <root>
- <Table>
<ID>ABC-123</ID>
<CAT>Housekeeping</CAT>
<DATE>21-JUN-2009</DATE>
<REP_BY>John</REP_BY>
<LOCATION>Head Office</LOCATION>
</Table>
- <Table>
<ID>ABC-124</ID>
<C...
I have a function that I want to allow to run for a given length of time and then, if it hasn't quit on it's own, abort. What is the best way to do this?
The best I have thought of would be to run it in another thread, wait with a timeout for it to die and then use Thread.Abort() to kill it (this might not work if the function has the w...
So I'm designing a WCF service. I'm unexperienced with WCF, and I'm trying to decide whether it should be hosted in IIS, or a custom Windows service.. Or some other option?
Things to consider:
It needs to load data from a database on startup.
It needs to maintain this data across requests, not load it each time.
It needs to process mu...
I've noticed that some .NET structs can be compared to null.
For example:
TimeSpan y = new TimeSpan();
if (y == null)
return;
will compile just fine (the same with the Guid struct).
Now I know that stucts are value type and that the code above should not compile, unless there's an overload of operator == which ta...