|
Well I would be VERY happy if I could get an API that supports currency operations according to local rules and regulations. For instance, it should use "Argentina Rounding" and 2 decimal precision if you are making operations in an Argentina culture and the operations should follow the other rules and regulations that apply to Argentina. But I could settle for less.
Maybe I could settle for an API that implements various rounding schemes. Swiss rounding, Argentina rounding, bankers rounding etc. The currency precision is already available in the framework today using the CultureInfo class although I'm not sure which standard it follows.
Kind regards,
Johannes Hansen
frontAvenue A/S
PS: I loved your articles on image manipulation in C#... Very cool!
|
|
|
|
|
The SmtpClient does not seem to call the QUIT Command to close the connection to an SMTP server, is this usual behaviour? It appears to keep the connection open between each mail that is sent.
I would assume that at bare minimum it should call QUIT when the application that is using the SmtpClient object is shut down.
Regards,
J
James Simpson
Web Developer
imebgo@hotmail.com
P S - This is what part of the alphabet would look like if Q and R were eliminated Mitch Hedberg
|
|
|
|
|
James Simpson wrote: I would assume
Didn't your mother tell you impolite to swear like that?
The SmtpClient class is a wrapper for the CDONTS COM Component, and its NewMail class. It is NOT a full .NET implementation of a SMTP client.
It is poissible that the CDONTS class doesn't send a QUIT command. You'll have to setup a packet sniffer between your machine and the network to figure this out. I haven't been able to find any documentation on whether it actually does this or not.
If you have to guarantee a QUIT command being sent, you'll have to implement your own SMTP client in your code. Just Google for "C# SMTP Client" and you'll find a bunch of examples.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-- modified at 13:19 Wednesday 11th January, 2006
|
|
|
|
|
Dave Kreskowiak wrote: The SmtpClient class is a wrapper for the CDONTS COM Component, and its NewMail class. It is NOT a full .NET implementation of a SMTP client.
I think you are refering to the 1.0/1.1 version of the Web.Mail classes, the new one (2.0) appears to be a ground up implementation of an Smtp Client which would work standalone
Dave Kreskowiak wrote: If you have to guarantee a QUIT command being sent, you'll have to implement your own SMTP client in your code. Just Google for "C# SMTP Client" and you'll find a bunch of examples.
Its not that I need the QUIT Command sending, it is workable. If you created a forms app with a button to send a simple mail through the local SMTP server (lets assume IIS), run the application, click the button to send the mail, then restart the IIS SMTP Service, and click send again the application will fall over because the connection was closed, even though the connection has been reopened. We have an inhouse smtp service which causes exactly the same problem because it has a timeout on it, if this is normal behaviour then someone using the SmtpClient would need to wrap it in a Try Catch to resend under these conditions. I would have hoped that the SmtpClient would clean itself up and attempt to reconnect to the server itself. Or send a QUIT message after the message has been sent to the server.
Thanks, James
James Simpson
Web Developer
imebgo@hotmail.com
P S - This is what part of the alphabet would look like if Q and R were eliminated Mitch Hedberg
|
|
|
|
|
Nope. 2.0 wraps up the same CDONTS object. It just uses more code to do it.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
is there any asembly in vb.net/.net compact framework which supports functions of media player for development of media player for pocket pc using .net compact framework?or any control which i can use to delvelp media player for pocket pc using .net 2003? chimranashraf@yahoo.com
|
|
|
|
|
Not built in, no. Is there a Windows Media Player control for compact framework ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
How to craete an Pivot table object with
ActiveXObject("Excel.PivotTable");
Excel.PivotTable does not work
|
|
|
|
|
I have completed all of the step to get a simple windows service up and running and i can not find it anywhere in the computer managment console.
Here is a pic that shows the process of installing the serive.. and the prompt says all is good.. i just can not locate it to turn it on..
http://afcc1.com/Examples/Images/WindowInstaller_Help.jpg
thanks..
erik.
|
|
|
|
|
necesito una idea o al menos una imlementacion de como limpiar la consola en c# 2003 .net porque las funcionalidades no me sugieren nada
soy nuevo en este tema
|
|
|
|
|
In English please. This is an English speaking board.
I'm assuming you want to clear the console window. A little search on MSDN reveals this[^] article on how to do it.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I am trying to create a mailbox from a web applicattion that it is not in a domain controller (a webservice) using CDOEXCH. The code works fine when the web service is in the domain controller but no way out of it. If we put the code in a Windows applicattion then everything work fine even in a non domain controller computer. We have try to impersonate the asp, or even the application pool. The security context was ok but there is something wrong with any permission or something like that though the credentials have domain administrator rights.
I have tried to encapsulate the code in a COM+ object and impersonating with administrator rights but I didn´t success. I copy the general idea from our code and the return error. Any idea wolud be really apreciate
DirectoryEntry container, user;
CDOEXM.IMailboxStore mailbox;
//This creates the new user in the "users" container.
//Set the sAMAccountName and the password
container = new DirectoryEntry("LDAP://cn=users," + defaultNC);
user = container.Children.Add("cn=" + fullName, "user");
user.Properties["sAMAccountName"].Add(alias);
user.CommitChanges();
user.Invoke("SetPassword", new object[]{password});
//This enables the new user.
user.Properties["userAccountControl"].Value = 0x200; //ADS_UF_NORMAL_ACCOUNT
user.CommitChanges();
//Obtain the IMailboxStore interface, create the mailbox, and commit the changes.
mailbox = (IMailboxStore)user.NativeObject;
mailbox.CreateMailbox(homeMDB);
user.CommitChanges();
RETURN ERROR:
Unable to create a mailbox for the specified user. Using homeMDB path: LDAP://PRSRVDCCAM1.redcam.local/CN=Mailbox Store (PRSRVDCCAM1),CN=First Storage Group,CN=InformationStore,CN=PRSRVDCCAM1,CN=Servers,CN=First Administrative Group,CN=Administrative Groups,CN=CAM,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=REDCAM,DC=local. Inner exception attached from: mscorlib. Current user context: REDCAM\AdministratorWith error
Facility: LDAP Provider
ID no: 80072020
Microsoft CDO for Exchange Management
|
|
|
|
|
I don't know if this helps, but according to the article ASP.NET Web Application Security[^] from MSDN, ASP.NET has client impersonation set to false. I don't know if this affects your ASP.NET application (I don't do that kind of thing), but I thought it might be a direction for you to look.
(Don't double post.)
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
Thanks for your answer. I have tried impersonating so you indicate in several ways but the problem was the same. It looks like the process need to be granted with some special permissions because we have seen that the account used is correct, the impersonation works fine but the web service is not able to create a mailbox. The strange thing is that we have no problems with the same code but running in a windows application.
The other key point is that if we install the web application in a domain controller everything work fine. The problem here is that we do not want to install this web service or web application in a domain controller.
Thanks
|
|
|
|
|
Hi everyone -
I'd like to develop an own browser with the new .net 2.0 framework. With the Browser Control this shouldn't be so hard. I'd just update my registry so far that my program will be the standard browser of windows.
but now i have the following problem: on the start of my browser (for example if a new instance/window is created by a popup-link), how can I get the desired url?
is there an active-x component or something like that and how do I access to that in my .net program?
Thanks for all your answers.
Greetings -
Tom
|
|
|
|
|
Try reading Microsoft's Pluggable Protocol Overview[^]. It briefly explains how Windows finds the correct application for a given protocol (like http) and the arguments that it sends to the specified application.
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
|
hi there -
thank you for your answers. i found out, that the new browser control in .net 2.0 does not yet support the event that i need. it can only cancel a newWindow event, but nothing more. there is no newWindow2 or newWindow3 event or a BeforeNavigate2 event. So i decided to use the axWebBrowser. it is not so comfortable then the BrowserControl, but it has more fexible event handlings.
thanks
tom
|
|
|
|
|
How to call a javascript function from c# code behind
|
|
|
|
|
You can't. The javascript function doesn't exist until the page is loaded in the browser.
If you want the function to run as soon as the page loads, you can add a call in the onload property in the body tag, or add a script tag to the page:
Page.RegisterStartupScript("Description", "<script type=\"text/javascript\">theFunction();</script>");
---
b { font-weight: normal; }
|
|
|
|
|
I am learning C# and .net and am using visual studio 2005. I would like to know if there is a way to examine the built in classes (such as 'Object', 'String', 'Array' etc) and to view there methods and how there're implemented.
is this possible or are the built in classes hidden from view?
|
|
|
|
|
Easily done using Lutz Roeder's Reflector for .NET[^]
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
thanx thats just what i needed
|
|
|
|
|
Hi
I have an application where the front end is in ASP and the dll which supports it is written in C#.
I am using 'regasm' command to register it for com inter-operatibility.
C# dll methods are working fine for string type parameters, but not for LONG and INT type parameters. It throws an error saying:
__________________________________________________________________________
Microsoft VBScript runtime error '800a01c2'
Wrong number of arguments or invalid property assignment: 'GetReportsData'
__________________________________________________________________________
I am passing the LONG parameter from ASP. Example:
_________________________
Method in C#
public string takeint(long param)
{
//code
}
________
Call from ASP
var1=object.takeint(Clng("100"))
_________________________
This operation throws above mentioned error.
What are the compatible datatypes for LONG and INT of ASP in C# as I can't change the ASP call, but I can change the C# code?
Thanks.
--------------------------------
From: saurav goel
|
|
|
|
|
I think a classic ASP (vb) Int is a .Net system.int32 and a ASP Long is a .Net system.Int64
Jon
|
|
|
|