I am creating a simple email client program. I am using MS SqlCe as a storage of emails. The database schema for storing the message is as follows:
StorageId int IDENTITY NOT NULL PRIMARY KEY,
FolderName nvarchar(255) NOT NULL,
MessageId nvarchar(3999) NOT NULL,
MessageDate datetime NOT NULL,
StorageData ntext NULL
In the StorageData ...
Hi.
I have a Windows program that calling a WCF service. This service after a few times be strongly slow and eventually this error will encounter "an unsecured or incorrectly secured fault was received from the other party". Restart after once again to the service starts again. sincerely.
...
I'm trying to have classes serialized using MS runtime and Mono runtime. While using MS runtime everything goes fine, but using Mono I give me some exception and program startup.
The following exception are thrown:
There was an error reflecting a type: System.TypeInitializationException (a class)
There was an error reflecting a type: ...
Hi,
I have a wpf datagrid with many rows, each row has some specific behaviors like selection changed of column 1 combo will filter column 2 combo, and what is selected in row 1 column 1 combo cannot be selected in row 2 column 1 combo, etc...
So I am thinking of having a view model for the main datagrid, and another for each row.
Is ...
Right now we are using Fastpath ODBC DSN connection method to access our "ARUNA" Database. Our development platform is C# on the .NET Framework.
We are in need of connecting the DB without using DSN.
Is it possible to connect Aruna using DSN less method?
Update
Somewhere I heard about ODBC Bridge softwares, can anybody shed light on...
I'm starting getting tired of this exception. Can't handle it, even so I'm using this:
AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
Still no success, Can anyone explain me, how I should handle it in a nice way. Or how to detect that it have fired this message and cl...
I have a VB6 App that uses a .Net component (via a .tlb reference in the VB6 app) which is working fine when executed as a compiled app, but it produces an error from the VB6 IDE a certain point when it is trying to use the .NET component.
I should note that the error occurs when the .NET component is meant to be invoking a third party ...
Hi,
What is best pratices for inject and manage Session/Transaction for NHibernate using StructureMap for a Non Web Application like an Windows Service ?
In a web context, we use PerRequest Session management lifecycle using the Hybrid Lifecycle of StructureMap but for a Windows Service, i can't handle IDisposable UnitOfWork ...
Thank...
I Do not know any JQuery and have to create a Tab with JQuery or JavaScript which works well with Multiview. And note that I have this kinds of tabs in more than 40 pages so I'm looking for a solution which works for all of them. This is my current Scenario
I have a Multiview and some Buttons above Multiview. Each Multiview contains a ...
Hi all,
I'm new to the .NET compact framework (and pretty much new to C# as well) and I've got a problem with switching forms in my mobile application. At a high level, my application makes use of multiple forms, with a main "application manager" class which performs the navigation/switching between the forms. My plan was to create form...
Hello all.
I am about to embark in using a report viewer in my .net page. I have a page that will search for a catgory, upon a button click, the category chosen will pass into the parameter of report viewer.
Now, given that I am a newbie to both SSRS and .net, I'd just like a bit of advice on how to tackle this.
Should I make the repo...
Possible Duplicate:
What are the advantages and disadvantages of using the GAC?
Hi Guys,
I would like to hear your opinion regarding the benefits of disadvantages of using the GAC in .Net applications. To me, it looks more professional to sign & register the application dlls in the GAC. It's more secure, helps with backward co...
Does it make sense to use the "SAP Function Control" (wdtlog.ocx in connection with wdtlog.ocx and wdtaocx.ocx) to access (via the Interop-Assemblys SAPFunctionsOCX.dll, SAPLogonCtrl.dll and SAPTableFactoryCtrl.dll) to SAP with RFCs instead of the no longer supported SAP Connector of .NET ? I know there is also the product ERPConnect o...
Hello,
I encountered with some strange behavior of System.Data.Objects.CompiledQuery.Compile function - here is my code for compile simple query:
private static readonly Func<DataContext, long, Product> productQuery =
CompiledQuery.Compile((DataContext ctx, long id) =>
ctx.Entities.OfType<Data.Product>().Where(p => p.Id ...
Is there a way in Windows using C# to record a sample of the stereo mix?
In other words, record all pings, beeps and music being played via any application? I've had a look at NAudio which will record the microphone as it's source, but I can't figure out how to point it at Windows' stereo mix?
Or, if anyone knows, any pointers on how t...
Hello,
I am trying to use new .net 4.0 Routing for Web Forms with mixed success.
protected void Application_Start(object sender, EventArgs e)
{
RegisterRoutes(RouteTable.Routes);
}
public static void RegisterRoutes(RouteCollection routes)
{
routes.MapPageRoute(
"", "article/{id}/{title...
i try to use xml serilization in gridview but it returns me:
InvalidOperationException was unhandled by user code
My code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Xml.Serialization;
using System.IO;
namespace WebAppl_seri...
For historical reasons, we need to expose string constants in .NET through COM interface.
We managed to expose ENUM but we can't find a way to expose string const.
We try the following code :
<ComClass(ComClass1.ClassId, ComClass1.InterfaceId, ComClass1.EventsId)> _
Public Class ComClass1
#Region "COM GUIDs"
' These GUIDs provid...
I build a COM server in raw C++. And I have some trouble when adding reference to it.
Here is the procedure:
(1) write an IDL file to define the interface and library.
(2) use msidl.exe to compile the IDL file to necessary .h, .c, .tlb files.
(3) implement the COM server in C++ and build a .dll file.
(4) add the following registry entr...
I am looking for a static function in the .NET framework which takes an XML snippet and an XSLT file, applies the transformation in memory, and returns the transformed XML.
I would like to do this:
string rawXml = invoiceTemplateDoc.MainDocumentPart.Document.InnerXml;
rawXml = DoXsltTransformation(rawXml, @"c:\prepare-invoice.xslt"))...