I have the following problem:
I need to get a ConfigurationSection - object from a stream that contains a well formed app.config - file (which will has to be loaded from the assembly resource streams).
Is there any way to load that from a stream?
Background (to satisfy the "why would you want that" questions):
I'm working on some ki...
Since you can only assign it after the document have been loaded, and you don't need to assign it every time a document loads, do I just don't have other choice than to do something like this?
private void WebBrowser_DocumentCompleted(object sender,
WebBrowserDocumentCompletedEventArgs e)
{
if (!mouseDownAssigned) // mouseDownAs...
We have three tables. TableA relates to TableB and TableB relates to TableC.
Is it possible to create a new entity framework entity composed of all three tables without using a stored procedure or view?
It only seems to allow one level of mapping where we have two in this case.
Any help or tutorial appreciated.
...
Is the Close() method required for the System.Diagnostics.Process class?
EDIT: The Process is monitoring a console application which terminates almost instantly...
Billy3
...
I am trying to call a session based webservice from my Iphone application. However, I can't get it to work since an Iphone App doesn't allow having a cookie which is necessary for storing the session information.
I have read the following article and there seems to be a way to deal with session based webservices however, I can't find o...
For brevity, let's say I have the following 3 tables (m:n): Articles, Topics and a joining table ArticleTopic. I need to get the top n articles for n topics. Each article should only show once for the entire result set.
Article:
-Id
-Title
Topic:
-Id
-Name
ArticleTopic:
-Id
-ArticleId
-TopicId
Thanks for your help!
...
Any time I use the code below it throws the error:
Method 'System.String
Join(System.String,
System.Collections.Generic.IEnumerable`1[System.String])'
has no supported translation to SQL.
var items = from t in fc.table
where t.id== objId
select new
{
...
I need to make a front-end desktop application for a MySQL database to be used on a Windows machine. What language(s) should I use to make a front end that will connect to the MySQL backend?
I will need to be able to search through the database and pull data.
...
Hi Folks
I'm using NHibernate and I have the two following classes which map my DataBase schema:
public class A
{
public virtual int Id { get; set;}
public virtual List<B> MyList { get; set; }
}
public class B
{
public virtual int Id { get; set; }
public virtual DateTime Date { get; set; }
public virtual A FKtoA { ...
i will need to print an "x" according to the coordinates given to me from one of the tables in my database. im probably gonig to use c# to connect to mysql.
i will probably have a winform that is 8.5 x 11 inches (The size of a regular sheet of paper) and i will populate the entire thing with labels of "x" and they will be invisible.
e...
NOTE: Posted on Sandcastle Help Builder website as well.
I got this error:
BUILDASSEMBLER : error :
BuildAssembler: The type
'SandcastleBuilder.Components.ShowMissingComponent'
was not found in the component
assembly 'C:\Program
Files\EWSoftware\Sandcastle Help File
Builder
I checked (vis Reflector); it's there.
Uninst...
Hi
I'm trying to encrypt and decrypt some text file data using .NET's ProtectedData.Protect method. I'd like to be able to encrypt the text (and save it to a file) on one machine and decrypt the text on a different machine. The machines are both in the same domain and both running the same service under the same username so I thought us...
So i Got a tmplist of ObservableCollection in which i got few elements.
I connect it to the ItemsSource of DataGrid in WPF 4.0 and it doesn't show anything. Doesn't add any colums. If I add breakpoint I can see that the "ItemsSource count equals quantity of tmplist elements, but the Columns count equals 0. Why is that? Here is some code...
I am encountering an issue trying to route my WCF client requests through Fiddler. I have searched the web high and low, and found only two references to Fiddler having problems when WCF services are configured to listen on IPv4, but IPv6 is enabled. However, while my issue is similar, it does not seem to be my problem.
I am encounterin...
I have the following action:
public JsonResult GetGridCell(double longitude, double latitude)
{
var cell = new GridCellViewModel { X = (int)Math.Round(longitude.Value, 0), Y = (int)Math.Round(latitude.Value, 0) };
return Json(cell);
}
I'm calling it with the following jquery:
$.post('Grid/GetGridCell', { longitud...
I have a bunch of files (on the order of 10 per second) coming into a system (stored into a database). Each file contains an entry for somewhere between 1 and 500 devices. A given device will appear in multiple files (but not every file). This data eventually needs to be stored in another database, stored per-device. There are two differ...
What is the best way to pass data from one .NET application to another at run-time?
Basically I need to transfer a 10-100 kilobytes of data in a few minutes from one app to another (locally) and get response for this action.
Ideally - ability to sign on events in another app, and ability to call methods of classes in another app.
Than...
I have a List<Point> of multiple points. How can I draw these points into a bitmap, to get the same as this:
Points are known, I just need to achieve this gradient effect somehow.
Please note that the gradient isn't radial, if you untwist the polygonal line to a straight one, you would get simple linear gradient from one end to anoth...
I'm currently using Retlang for message-based multithreading in .NET, which is a great library. I've got no explicit locks anymore, every thread is doing its own business, managing its part of the application and communicating with other threads via messages.
I now have to implement a feature of my application that could also have its o...
If the website's physical directory is not in C:\inetpub\wwwroot and is instead in C:\MyProjects\Project1 - which account needs what rights to the MyProjects or the Project1 folder?
I get a security error when I browse to the website.
...