.net

how to update product.wxs file dynamic

Hello, i want to make an application which includes dynamic screensaver. User can select multiple images from their PC and generate swf file. so i want to include swf file and images in the wix project dynamically. and want to generate an MSI file.is there any way to add images path and swf file dynamically reply me soon Sami...

Does static make it slow

Not sure how it works but I have a question:- Does static make the application slow as same variable or method is shared throughout the application, and while one request is using the method or variable other one has to wait for it to be released. ...

Images and Geometry in C#

Hello! I'm developing an application which loads an image, and then i have to mark some points with the mouse, above the image. these points should be on a separate layer, ie i don't want to modify image data. What is the best way of doing this ? I was thinking of using directX, but i've seen that it is a little bit obsolete. Does GDI+...

Word Count of .resx files

Hello, we will be processing our .resx files for translation. Since these files have lots of xml data apart from strings to be translated, I was looking for a way where we can count the words/strings that are translated. We have winform created resx file Thanks. ...

Using StructureMap to Configure Prism

I'm using Prism and the Unity IoC container that comes along with Prism. However, I'd like to use a different IoC container if that's doable. So; is it? Preferrably I'd like to use StructureMap. Note that I'm not yet familiar with StructureMap, but based on several recommendations I'd like to give it a try. The question is really how t...

Why shouldn't I use Unity?

I'm using the Unity IoC container. It really wasn't a decision I made, it just came with Prism, and I've just stuck with it. I've never used any other IoC frameworks, and I must admit I'm quite happy with Unity. However, the satisfaction may come from ignorance as I don't really know what the other frameworks have got to offer. I keep h...

socket queue problem?

I'm a dotnet propgrammer. recently i wrote aclient server application that use system.net.sockets for connecting and check client is on with a timer that clients send byte.minvalue for checking alive. when a client disconnected i shutdown the socket and close it. this work fine, but when number of clients increased connections can't esta...

How do you declare a C# variable into an HTML type variable?

What's the C# equivalent of <% dim name %> so you can use it for web forms in PayPal API integration? ...

secure web service

I am going to be creating a web service that will be passing confidential information across the network. What would be the best way to secure the web service? how do I know if the application requesting the information is who it says it is, and it's not another application that is using another's user name and password? ...

Help with system.stackoverflowexception

All of a sudden my app is handing this out in the application event viewer: EventType clr20r3, P1 w3wp.exe, P2 6.0.3790.3959, P3 45d6968e, P4 app_code.ahowircm, P5 0.0.0.0, P6 4b167253, P7 30, P8 0, P9 system.stackoverflowexception, P10 NIL. Nothing has changed since yesterday, and everything worked fine before. The server is running s...

Is it possible to get the value for a key in a Hashtable without iteration?

Using .NET 3.5, is there a way to retrieve a value from Hashtable corresponding to the key without iteration? ...

How do I load different images, PNG, GIF and JPG in the background using WPF?

I am using WPF to load an image in the background using the answer at Stackoverflow: How do I load images in the background? The problem is the URL string could be PNG, GIF or JPG and I need to use either JpegBitmapDecoder, PngBitmapDecoder or GifBitmapDecoder If the correct decoder is not used then a FileFormatException occurs. I c...

Testing whether item is visible in virtual ListView

Hello, all! Here's my predicament: I'm using a ListView control in virtual and OwnerDraw mode to display a number of items. Is there a way to test whether a certain item is visible (within the client area of the control) without triggering a draw event or a RetrieveVirtualItem event? The problem is, I have a background thread that peri...

HTTP POST in .NET doesn't work

Hi all, I've got a problem with creating an HTTP post request in .NET. When I do this request in ruby it does work. When doing the request in .NET I get following error: <h1>FOXISAPI call failed</h1><p><b>Progid is:</b> carejobs.carejobs <p><b>Method is:</b> importvacature/ <p><b>Parameters are:</b> <p><b> parameters are:</b> vacatur...

SQL Bulkcopy for Client / Parent relationship

Hi, we have 2 DataTables in a .NET application having a Client / Parent relationship with millions of rows. This data should be inserted into a SQL Server database via SQL BulkCopy. It is possible that multiple instances of this .NET application run in parallel inserting different data to the same tables. For the automatic generation o...

Is there a workaround for the unsupported IParameterizedType in Fluent NHibernate?

Fluent NHibernate is currently unable to use the IParameterizedType of a CustomType but I need to use the fluent mapping because I want to adjust the mapping within my code. Is there a workaround for Fluent NHibernate that somehow injects the XML elements that would be used within the normal mapping XML-file? I did already find the sim...

Javascript not loading right when using updatepanel

Hello, I've encountered with an difficult bug, that Im not quite sure if there is a good way to solve it. But I have page(.aspx) which contains a control called widget. The widget appears multiple times in the page. And each widget has alot of js and jquery, some of them reads properties from the control. The problem I have is that the ...

IL / CLR / DLR References?

I'm wanting to learn more about IL and CLR / DLR under the hood. A friend of mine recommended the book "Inside Microsoft .NET IL Assembler", but since it came out in 2002 I fear it's pretty out of date at this point. Does anyone have any more up-to-date books or websites that can be used by someone who understands .NET languages to lea...

Where to keep things like connectionstrings in an IoC pattern?

In my everlasting quest to suck less I'm currently checking out mvc Turbine to do the IoC dirty work. I'm using the mvc Turbine nerd dinner example as a lead and things look rather logical thus far. Although I'm refering to the turbine project here, I'm guessing the philosophy behind it is something general to the pattern Safe for some r...

XML Resolver takes ages - Stops request going to server, or does it?

I am processing an XML document who's DTD is on a server that doesn't respond and the request times out. XmlReaderSettings settings = new XmlReaderSettings(); settings.ProhibitDtd = false; settings.XmlResolver = new cXMLResolver(); settings.ValidationEventHandler += ValidationEventHandler; settings.ValidationType = ValidationType....