.net

asp.net send mail problem

I try to send email from my application. Everything seems ok, mailmessage, credentials etc. When I debug the code it doesnt fall in to catch exception and doesnt send email. Also there is no mail queue at the server.There is no error message. msgObj.Subject = this.Subject; msgObj.From = new MailAddress(this.From , this.Di...

Attach .net app to another process

I have a .net Console application that uses a COM component to generate PDF. Basically it prints the input document as PDF and is configured as a printer in the Desktop. Now, this component is singleton by design and does not support multiple instances. My application works fine if this process is not already running. However, if an i...

Singleton and Client Activated Object(CAO), Remoitng

Both perform the same operation that is MSDN Singleton: ""Single Call objects service one and only one request coming in.... " CAO: "Client-activated objects (CAO) are server-side objects that are activated upon request from the client...." in both cases, data is not shared, but in singleton only once client can be connected at a ti...

working with .net on linux

I have some applications developed in asp.net, WPF ,windows Form etc.How can i run that in Ubuntu? Using some commands I installed MONO on Ubuntu. But I dont know more.. Can any one help me? ...

Implementing MSSCCI providers in .Net

I would like to implement a MSSCCI provider, however if at all possible I would like to implement it in .Net (so my MSSCCI provider is in fact a thin wrapper around a .Net implementation) Is this possible? Is this a good idea? I know that implementing it in .Net would mean that anyone using my MSSCCI provider would be forced to host ...

Web Application working in VS Development Server but don't work in IIS

I've a ASP.Net application which utilizes SQL Server Stored Procedures and Web Services using Windows Authentication. The idea is to use the logged in user credentials for invoking the web service (This is critical since the web service use the authentication credentials to assign the owner of the created or updated record) and for execu...

Publishing a WPF Application

I’m new to WPF, so I apologise if this is an obvious question. I’m trying to publish a WPF application. I’ve gone through the publish process and published it to my local host (http:/localhost/app). Once it was published, it gave me the published URL: http://MyNetworkID/ProgramName/publish.htm. There is a run icon here, but when I cl...

regex to match <Key>....<Value> pattern

I have the following data sent by an external system which needs to be parsed for a particular Key <ContextDetails> <Context><Key>ID</Key><Value>100</Value></Context> <Context><Key>Name</Key><Value>MyName</Value></Context> </ContextDetails> I tried parsing this with the regex to fetch the value for the KEY : Name <Context><Key>Name<...

.NET regular expression

I have html page source code with img tags like <p>xyz </p>< img ....... 1 . gif >........<p>xyz</p> < img ........ 2 . jpg >..............<p>xyz</p> < img ........ 3 . jpg ><p>xyz</p> < img ....... 4 . gif >......<span>xyz</span> Img tags can contains both jpg and other format images and can be i...

C# .NET - Dataset type problem

Hi, I've got a few datatables in an Microsoft SQL database. I get those with an dataadapter and put them into a dataset. After this I want to change a few of the values, like some I want to change to: "Na/Na". Now the problem in this is, that the normal Type of this column is INT. So it gives me an error. Is there a way in which I can...

hiding a redirect to another domain

Hi, I want to hide the fact the user will be redirected to another domain. So for example from http://example1.com/test1.aspx the user clicks a link which will open a new window taking them to http://test2.com/test1.aspx. I want to hide the fact the request has been sent to http://test2.com/test1.aspx. I would ideally like to do this...

How to hide Web Reference from another project

I have two Visual Studio 2008 projects which are in the same solution. How can I add a Web Reference to project A so that project B doesn't see it? Project A needs web reference to WebService1 Project B shouldn't be able to see A.WebService1.* but needs reference to project A I don't want to manually modify the generated classes for ...

Nested Maps in Fluent NHibernate

I have a database table with Sqlite structure: CREATE TABLE Cashflows ( Id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, Fund_Id INTEGER NOT NULL, CashflowDate DATETIME NOT NULL, CashflowType INTEGER NOT NULL, CashflowValue DOUBLE NOT NULL ); Fund_Id is just a standard reference to the Fund table. In Fluent NHiberna...

Assembly Serialization, Why?

I've read that assembly serialization (sgen.exe) can improve performance. What exactly is providing the improvement? Is it metadata on the Types? I would have thought this would be available through reflection! so why is it required in a separate assembly? ...

How to make OS X "Drawer" under Windows ?

Hello there. I would like to know if it is possible to build a drawer under windows in .net. Drawer are something like this in Mac OS X : http://www.mcelhearn.com/images/articles/20041116135640496_1.jpg (the right panel). ...

Serialization and versioning

Hi, I need to serialize some data to string. The string is then stored in DB in a special column SerializeData. I have created special classes that are used for serialization. [Serializable] public class SerializableContingentOrder { public Guid SomeGuidData { get; set; } public decimal SomeDecimalData { get; set; } publi...

Counting Clicks C#

Hi guys, Made a simple app which using a timer, counts the number of mouse clicks on a panel for a given duration... simple enough, all working, except it seems to fail to count quickly enough to register all the mouse clicks? I am literally incrementing a private int value on the click event of the panel, and showing a message box wit...

Copy local and system dlls' - what is the point?

Visual studio by default copies all dlls' to each project's bin folder. This also includes system dlls' (with the exception of mscorlib.dll and System.dll), such as System.Xml.Linq, System.ComponentModel.Composition (included since SL4) etc. Since these files are included in each XAP, XAP sizes grow considerably. In my limited testing, ...

Creating non-existent database tables in code

Up to this point my company has had an aversion to databases and has stuck to storing all data in comma-separated files. I have run into a unique customer application that - I believe - would benefit from the use of a relational database. The application calls for storing 'summary' data concerning a manufacturing process and 'detailed'...

how to debug .net dll when ivoked from vbscript file

Hi, I created my .net class library, I have registsred the assembly and I am invoking the methods in the .net class library from VB Script file, I want to debug the code in the class library when methods are invoked from vb script file. Could you please help in doing the above ...