Hi there,
With some kindly help from StackOverflow, I've got Unity Framework to create my chained dependencies, including an Entity Framework datacontext object:
using (IUnityContainer container = new UnityContainer())
{
container.RegisterType<IMeterView, Meter>();
container.RegisterType<IUnitOfWork, CommunergySQLiteEntities>(n...
Where is a good place to start learning LINQ for .net, and what are the resources i should use to put the knowledge into practice?
...
What is the easiest way to ping/notify a .NET Windows Service? Do I have to use WCF for this? Or is there an easier way?
I would like to be able to wake up the service using a Python (or an Iron Python) script from anywhere.
Also is there a way I can be notified (by email) if that the service has stopped?
...
In the streams I am parsing I need to parse something in this pattern:
<b>PaintTitle</b></td><td class=detail valign="top" align=left><div align=left><font size=small><b>The new great album by Pet Shop Boys</b>
How would I get the string "The new great album by Pet Shop Boys" where <b>PaintTitle</b> is guaranteed to be once per album?...
I have a Iron Python script that I want to run and then have the ipy interpreter output an assembly that I can run on other machines. How do I do that? Is there a siwtch I can pass to ipy.exe?
...
Is there an equivalent library for JAXB in .NET? I am trying to convert an XML I get to a .NET class. I have the XSD, but not sure how to convert the XML received into a concrete Class? I used the XSD tool to generate a class from the schema, but what I want to to convert the XML I receive on the fly to a object that I can work with in c...
HI all....
i want to ask 2 questions and i would be thankful if somebody can reply....
1) how can i check (using C#) whether the PC is connected to LAN or not?
2) HOw can i check (using C#) my pc is connected on LAN or not
...
Hi,
I have created a DeclarativeServiceLibrary using VS2010 beta 2,
Please check this image of Sequential Service
Following is the code used to call these two activities ` int? data = 123;
ServiceReference1.ServiceClient client1 = new ServiceReference1.ServiceClient();
string result1 = client1.GetData(data);
...
hi,
can i know what is type-safe please. thank you
...
Hi
this is a discussion between me and me to understand isolated storage issue. can you help me to convince me about isolated storage!!
This is a code written in windows form app (reader) that read the isolated storage of another win form app (writer) which is signed. where is the security if the reader can read the writer's file, I ...
Hi,
I have a dataset that has two datatables.
In the first datatable I have EmpNo,EmpName and EmpAddress
In the second datatable I have Empno,EmpJoindate, EmpSalary.
I want a result where I should show EmpName as the label and his/her details in the gridview
I populate a datalist with the first table, and have EmpNo as the datakeys....
Hi folks:
I'm studying struct; some book advises creating struct if it has an instance size less than 16 bytes.
Why?
Thanks for any reply.
...
I'd like to develop an application to monitor HTTP traffic to/from my PC. (what websites are being visited by the PC user).
The problem is, that I couldn't get any articles how to start developing application like that.
What am I missing?
...
I havent used lucene. Last time i ask (many months ago, maybe a year) people suggested lucene. If i shouldnt use lucene what should i use? As am example say there are items tagged like this
apples carrots
apples
carrots
apple banana
if a user search apples i dont care if there is any preference from 1,2 and 4. However i seen many for...
We're using silverlight on our SharePoint site. When someone navigates to the page containing the silverlight object, they are prompted for credentials. Other pages work fine.
I'm wondering if the client is trying to retrive the xap file (which is in a location the process hosting the web application has access to, but not the user).
I...
Why do I use Tracing for logging exception in TextFile? What is the advantage of using trace over simple log while I am logging in text file.
...
I've got a WCF service, in which there are operations which accept a non-generic base class as parameter.
[DataContract]
class Foo
{ ... }
This base class is in turn inherited, by such generics classes as
[DataContract]
class Bar<T> : Foo
{ ... }
To get this to work, I'd previously have to register KnownTypes for the Foo class, and...
How can I get a Stream object to read the file that is on SFTP share?
I see that there is functionality to download a file from SFTP using Sftp class, but I need a Stream object to be able to show the download progress.
...
Hi.
We have a flexible process control system by which automation engineers configure up large application comprising thousands of small logical units that are parameterized and integrated into the control flow.
There are many tasks that are repetitive on the granular level, and there are a multitude of proprietary productivity tools t...
I'm trying to evaluate an XPath varable I'm building dynamically based on the position of the node.
I can create the XPath string in a variable but when I select the value of this just get the string and not the node set I need.
I use the following to create the XPath query.
<xsl:variable name="xpathstring"
select="no...