this code gives me the error: the Transaction has aborted.
if I remove 1 nested transaction than it doesn't throw
using(var scope = new TransactionScope())
{
repo.Insert(new Foo {Fname = "aaaa"});
using(var s = new TransactionScope())
{
repo.Insert(new Foo { Fname = "aaaa" });
//if ...
I'm attempting to fetch a URI in parts by setting the Range header on my HttpWebRequest, and then requesting them asynchronously using Begin/EndGetResponse :
using System;
using System.Net;
namespace MultiGet
{
class Program
{
static void GetterCallback(IAsyncResult ip)
{
try
{
...
How can we use required field validator on User Control in aspx page*strong text*
I have one user control that have one drop down. I am using this control on my page. I want to use required field validator on this drop down.
Please give me reply. How can I use?
...
Hi,
I am trying to use the AbcPdf .net component (version 7) to process some PDFs and generate metadata. I was wondering if there is anyway to list all the tags in a pdf document? As an example of a tagged pdf, I am using this file here
Are there any other components or tools available for listing or extracting pdf tags?
Thanks in adva...
I find numerous examples on how to add a new group to an existing ribbon, and this works just fine.
What I cannot figure out is how I can add new controls to an existing group on an existing ribbon. Say I want to add my own command to the "Proofing" group on the "Review" tab.
I'm developing this in VS2010 for Office2010, but I guess th...
i try to use generate MVVM pattern using Silverlight ListView. But if i bind data my silverlight control no data visualize. also no error return. i see empty gridview.
Model:
MyData.cs
public class MyData
{
public int ID { get; set; }
public string Name { get; set; }
public string Price { get; set; }
...
Ive got the following code in my site.master page:
<head runat="server">
<title><asp:ContentPlaceHolder ID="TitleContent" runat="server" /></title>
<link rel="shortcut icon" href="../../favicon.ico" type="image/x-icon" />
<%--<script src="../../Scripts/jquery-1.4.2.min.js" type="text/javascript"></script>
<script src="...
Hi.
Debugging unit tests with the NUnit 2.5.3 framework causes a crash on my machine.
var app = new Application();
throws an exception
System.EntryPointNotFoundException occurred
Message=Unable to find an entry point named 'nonexistent_dummy' in DLL 'MSVCR80.dll'.
Source=PresentationCore
TypeName=""
StackTrace:
at non...
Hi folks,
I've got a question concerning best practices with .NET remoting. The code is smelly and I need to do some refactoring.
The thing is:
I've got multiple classes that derive from MarshalByRefObject and their data is used in the client software.
Once the server disconnects I get RemotingException.
The bad thing about this...
When I was looking at the Action delegates in Reflector, I saw it has a constructor like
public Action(object @object, IntPtr method);
But I could not find any body for the same along with other member functions like Invoke, BeginInvoke etc. I can only see the definitions for it. Where does these functions are defined? Are they define...
I have a class which looks like this
public class Field
{
public string FieldName;
public string FieldType;
}
Based on an object List<Field> with values
{"EmployeeID","int"},
{"EmployeeName","String"},
{"Designation","String"}
I want to create a class that looks like this:
Class DynamicClass
{
int EmployeeID,
Str...
I got a COM+ application (ServicedComponent's) that doesn't free it's memory (possible memory leak).
I've generated a DMP file from it (about 1.4 GB large). How can I view the heap to see what all the memory are used for?
...
i'm new to linq, what i want is to do group by with having like in tqsl.
my class:
class test{
public int field1;
public int field2;
public int field3;
}
now i have:
IEnumerable<test> list;
i want something like:
IEnumerable<test> q=
from p
in list
group p by p.field1
having p.field2==p.field2.Max()
select p;
Can u help me?
...
I'm consuming a third party .NET SOAP WebService (.asmx). I want to log request and response. I have seen some solutions using SoapExtensions. But I like to integrate logging in my system, some like this:
public class MyWebService : ThirdPartyWebService
{
public string Request { ... }
public string Response {... }
}
Could i do...
If I have 2 SmtpClient objects and I call SendAsync() method on both simultaneously, will these 2 send requests be processed sequentially in one thread or simultaneously in more than one? What is the implementation of SendAsync() method?
If every SendAsync() method call is processed in new thread from the web server thread pool, this ca...
I have some code which detects when properties are changed on objects, which are persisted to the db. The detection happens before they are saved back to the db.
I want to know the best way to apply the change in time to a whole set of related log items.
Say I have an item with a datetime of
01/01/2000 00:00:00
and I change it to
...
I have the following query which I want to sort or filter using projected class names:
List<CompanyInfo> list = new List<CompanyInfo>();
using (var db = new DbContext())
{
list.AddRange(
db.Companies.Include("Projects")
.Select(row => new CompanyInfo()
{
Pr...
I have two tables, with foreign key.
linq to sql class generated for me classes.
now i want make linq select with join, what will be result of join?
is where any way to generate class, for that result?
want get something like
IEnumerable<par_of_class1+part_of_class2>.
thx
...
I have an Ajax enabled web app created with Visual Studio 2005 - .Net framework 2.0. I publish this to a Windows 2003 server and everything works fine.
I now need to publish to a Windows 2008 server with IIS 7.0 on it. Whereas before I used to publish to http:// .... (because the site on the 2003 server was Frontpage server extension en...