I created a foreign key relationship in my database so that I could access another table as a property in this case House.Area
Now if I create a House object and have Area as null I get the following exception on SubmitChanges():
An attempt was made to remove a relationship between a Area and a House. However, one of the relationshi...
Hello everyone,
We are currently developing an application to our company that uses Oracle 9i as the central repository. The applications we developed are .Net Applications, and we use Oracle ODAC 11g as our Data Access Library to the database. Every changes made to the database are transaction based, to ensure that there would be no "d...
I have a web app that needs to be able to convert word documents into pdf programmatically just prior to send an email out.
I've been using a 3rd party utility (aspose) but the client writes very complicated word documents and they need the formatting to come out perfectly on the pdf. Aspose isn't rendering everything correctly.
I cal...
Is there and easier way to cancel all WSP files currently being deployed to a SharePoint farm?
I'm currently using the STSAdmin function CancelDeployment but this requires me to run STSAdmin EnumDeployments first and manually copy and paste the job IDs into another script.
I need an easier way to do this, as I might have to ask someone...
I like to learn about database connectivity in .net, Where i will start for that
...
I have added a manifest file to my .net winforms app since the app needed write access to the install folder in programs files. I therefore added the following app.manifest:
<?xml version="1.0" encoding="utf-8"?>
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
<requestedExecutionLev...
I just tried to use Contains in an Entity Framework query only to have it fail as this method doesn't exist in EF. However the code compiles which is frustrating.
Does anyone know how to find which methods a LINQ provider supports, given any LINQ provider?
...
I've a deployment project of windows installer, with some of prerequisites.
I want to perform some operations while installing the product, for that I need to put 2 radio buttons on installer setup project,
do anyone tell me how can I alter setup screens with new controls provided on canvas ?
...
When accessing a cgi web service ,it throws the error [there is an error in xml document(]
this error happens only If the return paramater is an array of objects
how to resolve this?
------------execption details---------------
System.InvalidOperationException was unhandled
Message="There is an error in XML document (1, 452)."
Sou...
I just built an application using ASP.NET MVC. The programmers at my company want to build all future modules using n-Tiered (Presentation Layer, Business Logic Layer, Data Access Layer) architecture.
I am not the programmer and need to know why this makes sense? Do I have to completely rewrite the entire code or can it be converted...
How do you convert a DataColumn of GUIDs set as type string to a DataColumn of GUIDs where the type is Guid? A column in the source data has the wrong type and I cannot change it there.
...
i am to create a application which will send an xml file through https protocol and get a xml file as a response. and this process will go for more then lac. times(continusly to download all xml files around 1-2 lac.). so please tell me i should create a desktop application for this (in .net) or asp.net . and should i use threading for t...
Hi,
I cant find any useful answer for this question, although it has been asked in a different way several times
I want to share a memory between 2 processes (2 different applications).
so that one of them can write to that memory and the other can read.
is this possible in .NET? how?
Thanks
...
Is there a better way to parse percentage to double like this?
Dim Buffer As String = "50.00%"
Dim Value As Double = Double.Parse(Buffer.Replace("%",""), NumberStyles.Any, CultureInfo.InvariantCulture) / 100
...
I would like to know what are your best practices in using and disposing a message queue. I would also appreciate if there is code especially in the disposing part in order to visualize your concept. The language is in C# or any .NET language will do. The queue that is being used is Microsoft Message Queues.
Currently I am encounteri...
In .NET the lock keyword is syntactic sugar around Monitor.Enter and Monitor.Exit, so you could say that this code
lock(locker)
{
// Do something
}
is the same as
Monitor.Enter(locker);
try
{
// Do Something
}
finally
{
Monitor.Exit(locker);
}
However the .NET framework also includes the MemoryBarrier class which works in a s...
I'm trying to build / sign an assembly on a Windows 7 machine and I get the following exception:
x:\> SN -q -Vr "x:\someassembly.dll"
Failed to open registry key -- Access is denied.
I've found the following thread that appears to be the same problem, and it mentions that he fixed it by changing permissions on a registry key, however ...
The Get of the Visible property of a control recursively looks up the tree to indicate if the control will be rendered or not.
I need a way to see what the "local" visible value of a control is regardless of what its parent controls are set to. i.e. Whether it itself was set to true or false.
I have seen this question, How to get the “...
Is there a way to connect to a remote oracle DB from a client PC without installing oracle on the client ?
...
Is there a built-in way of getting the full URL of an action?
I am looking for something like GetFullUrl("Action", "Controller") that would return something like http://www.fred.com/Controller/Action.
The reason I am looking for this is to avoid hardcoding URLs in automated emails that are generated so that the URLs can always be gener...