.net

LINQ to SQL : Why can't I have a Zero to Many Cardinality

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...

How to manually clear the TEMPORARY TABLESPACE in oracle 9i

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...

How can I create PDFs programmatically using Acrobat in .NET?

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...

Bulk cancel deployment SharePoint

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...

what is the best way to learn the database connectivity in .net

I like to learn about database connectivity in .net, Where i will start for that ...

Windows 7 installer error 2902 (w/ manifest)

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...

Finding what methods a LINQ provider supports

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? ...

how to put radio buttons in windows installer - deployment project?

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 ? ...

access webservice from .net ,throws error

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...

Converting ASP.NET MVC to n-Tiered Architecture

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...

Convert string to guid in DataColumn

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. ...

please tell me which one is faster desktop application or web application in .net

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...

Shared memory between 2 processes (applications)

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 ...

Parse percentage to double

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 ...

Best Practices for Microsoft Message Queue and Resource Release

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...

When to use lock vs MemoryBarrier in .NET

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...

Access denied running sn.exe on Windows 7

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 ...

How to get the set/real value of the Visible property in Asp.Net.

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 “...

Oracle remote connection without installing the oracle client

Is there a way to connect to a remote oracle DB from a client PC without installing oracle on the client ? ...

Getting full URL of action in ASP.NET MVC

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...