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...
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...
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...
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?
...
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 ...
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...
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...
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<...
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...
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...
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...
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 ...
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...
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?
...
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).
...
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...
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...
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, ...
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'...
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
...