microsoft.public.dotnet.framework Archive - October 2001
Post a message to this list
Messages
Page: 12345
telnet and ftp with .NET? (2 replies)
microsoft.public.dotnet.framework
Hi, where in .NET is functionality to use telnet and ftp? I have to copy a file to a remote system, and then run an executeable on that system. Thanks for pointer, HariNam
Can you do all this with dot Net? (5 replies, VIP)
microsoft.public.dotnet.framework
Hello, My company is thinking about doing a .Net "rich client" which used to be a Java applet based on the MS JVM (we got burned on this from MS, so we are a little tepid about going forward with .Net). I have some questions about the ability of the technology. I need it to do the following: 1) Run in Internet Explorer. 2) Be written in C# preferably. 3) Can be downloaded by a third party web brow...
How to set the AppBase (4 replies, VIP)
microsoft.public.dotnet.framework
Hi, I am trying to download an assembly from the bin directory of my AST.NET web application using the OBJECT tag in my browser based app. I am able to download it successfully as long as the assembly(dll) resides in the virtual directory exposed to the outside world. But, if I place the dll in the bin directory the browser is not able to download it. I looked at the log file while the runtime tri...
Synchronous call to a .NET web service does not work (2 replies)
microsoft.public.dotnet.framework
Hi, I am trying to use a WebService behavior(HTC) in my client side script in IE to make a call to a web service. I am successful at making an asynchronous call. Making a synchronous call does not work. This what i do. 1.Create a script Object (Var callObj New Object()) 2.Set the Call Object properties funcName "MyFunctionName" and async false) 3.call the useService method 4.call the callservice m...
Foreach will not work... (2 replies)
microsoft.public.dotnet.framework
Sorry about the cross post (original post in microsoft.public.dotnet.languages.csharp)! ORIGINAL MESSAGE Using MS CDO, I'm trying to loop over the Messages collection using the foreach statement. this does not work because the COM object doesn t support a few methods (or something)... Instead i m trying to use the count property together with a for loop. this doesn t work because the object don t ...
How to rotate X & Y coordinates around a point - Matrix ? Other ? (2 replies)
microsoft.public.dotnet.framework
Hi, I need to rotate a point (x,y) around another point (cx,cy) by and angle (a) & thought perhaps a matrix could be used but I can't figure out how ! Any help much appreciated. Alister Alisterb@Respond uk.co.uk
Windows or ASP.NET (2 replies, VIP)
microsoft.public.dotnet.framework
Is there a way of determining at runtime whether a component is running inside a Windows forms appdomain or an ASP.NET appdomain? I wish to provide a components that can be used in either a Windows app or a web app. This component must perform some specific actions in one of it's methods depending on how it is being used. I want something like: AppDomain.IsASP(). Can anyone help? Graham Allwood
Hi, I want to know, what should I learn in VB6 or direct 7 (4 replies, VIP)
microsoft.public.dotnet.framework
Hi People, I am DHTML, JavaScript Programmer, I want to start Learning DotNet. some of my friend told me that If you want to learn vb.net then you haveto know or first learn VB6. and should I learn csharp instead of vb.net? And Is it necessary to learn Visual Basic 6 first to learn vb.net? Please help me in this as soon as possible. Thankx in Advance. Sachin
Console Input Question (3 replies, VIP)
microsoft.public.dotnet.framework
I'm scratching my head right now, because I can't find an equivalent to the getch() c run time library function. Both Console.Read() and Console.ReadLine() require carriage returns before they return. I want to read a single character entry without the user hiting return. Is there no such facility within the .NET framework to do this?
Mapping validation error to DOM document (2 replies)
microsoft.public.dotnet.framework
When using the ValidatingReader functionality you can get an error list of invalid xml lines or a schema exception, according to the schema . Both of these give you the element name and the line number and position e.g. Line 56, Column 4, MyNameSpace:LastName. I want to be able to map this error data, in code, back to the xml being validated. Now i cannot see a method within the class libaries of ...
Accessing programatically the dll's in Global Assembly cache (4 replies)
microsoft.public.dotnet.framework
Hi all, When I try to access dll's in Global Assembly cache(C:\Winnt\Assembly) programatically using File IO classes. I am not able to do, I get an exception. But if I try to access dll's in any other folder I am able to do successfully. Can anyone please tell me the reason for this.. Has it got anything to do with permissions? ... Any help will be highly appreciated. Thanks PrashanthG
The path of the assembly (2 replies)
microsoft.public.dotnet.framework
I want to get the path of executing assembly; System.Reflection.Assembly asmWeb System.Reflection.Assembly.GetExecutingAssembly(); string strPath asmWeb.CodeBase; This code returns me the path, but it contains file:/// and the name of the assembly. Is there a method which returns just the path or do i need to modify this string to get it? And a second question. In c or java you can add the excepti...
How to get the binary representation of values types (3 replies)
microsoft.public.dotnet.framework
Hi guys I want to get the memory representation of some primitive value types (Double, DateTime, Integer, etc.), in other words a byte array (8 bytes for DateTime, 4 for integer, etc.) and viceversa, to create Value types from they memory representation. In VB6 I used the Win32 API "CopyMemoryA", but now I would like to use native .NET methods. Any idea ?
aspnet_wp.exe hanging -> Towards a solution (2 replies)
microsoft.public.dotnet.framework
[posted to framework as well as I feel it is a framework distrib problem] Hello, I've been experiencing problems with aspnet wp.exe hanging the whole system. My system started hanging when I processing a page relying heavily on DataBinder.Eval. and casting. This post is based on Richard Purchas's post indicating a link between DataBinding and the crash [Message ID: #NM4um0KBHA.508@tkmsftngp03 ] wh...
Problems with embedded resource file (2 replies)
microsoft.public.dotnet.framework
Hello, i have a problem with embedded resource file. In my resource a string named "Test" exist. I do the following steps: 1) embed resource file "resource.resx" in my project 2) get the resource with "System.Resources.ResourceManager rm new System.Resources.ResourceManager(" project name .resource",this.GetType().Assembly);" 3) access strings with "String B rm.GetString("Test");" When i start the...
ICollection vs. NameObjectCollectionBase (2 replies)
microsoft.public.dotnet.framework
Hi All, I am implementing an Iterator that will hold a number of objects filled with data retrieved from the database using DataReader may be bound to a page becomes the Datasource may be sorted may be serialized Here is my question should I create my class with the implementation of ICollection interface or do I inherit from NameObjectCollectionBase What is the difference between the two? What is...
Creating user using System.DirectoryServices (2 replies)
microsoft.public.dotnet.framework
Has somebody been able to successfully create an Active Directory user by using the System.DirectoryServices namespace? So far I can read and update existing accounts from AD. However, when I try to create a user, I get the "The server is unwilling to process request" COMException. I've read that this exception is an indication that required properties in the user Schema have not been populated; t...
immutable types (4 replies)
microsoft.public.dotnet.framework
Hi. Here are some questions about immutable types that I would like to get answered if possible. 1) Is System.String type only type that's immutable? If not, what are others? 2) How does one make a class/struct immutable? How is System.String made immutable? Is it possible for me to create a class/struct that's immutable? 3) What is the benefit of making a class/struct immutable? From what I under...
reading the manifest without loading the assembly (3 replies)
microsoft.public.dotnet.framework
For practice I want to write a little command line tool that can check the version dependencies for a given CLR DLL and determine whether all the required DLLs are present for it to load. The easy way to do this would be to load the assembly into memory and use the Assembly class to request the info I want: Assembly a LoadAssembly(dll); AssemblyName[] names a.GetReferencedAssemblies(); Something l...
TcpClient hangs on HTTP GET? (5 replies)
microsoft.public.dotnet.framework
The code below hangs inside the DataAvailable wait loop. Any ideas why? using System; using System.Net.Sockets; using System.Text; using System.Threading; class Test { public static void Main(string[] Args) { Console.WriteLine(HttpGet("www.microsoft.com", 80, "/")); } public static String HttpGet(String host, int port, String page) { Console.WriteLine("REQUEST"); TcpClient client new TcpClient(hos...
FileSystemWatcher exception (2 replies)
microsoft.public.dotnet.framework
Hello, I have a FileSystemWatcher setup to watch the inbox of my SMTP server. When a file is created, I am trying to read that message, to do some processing. The problem I am having is that the File is still being used by another process, so an exception is thrown when I try to open read. The notifyFilter on the FileSystemWatcher is set to LastWrite ... so the exception is unexpected. I tried sle...
is there something like a LineIterator? (3 replies)
microsoft.public.dotnet.framework
Hi, I have a string that consists of multiple lines. I want to break that string into a string array, where one element represents one line. Is there a utility class in .NET to help me do this? E.g., in Java there is a LineIterator class, which has a next() method and a hasNext() method. I can simply in a loop iterate, until hasNext() returns false to get all the elements. I see that StringReader ...
SMTPMail /Message Headers (3 replies)
microsoft.public.dotnet.framework
Excuse me for asking what should be obvious, but the beta documentation seems a bit sketchy on this topic. I am trying to add header information to an email message using the SMTPMail function. Specifically I want to add a ContextType "text/calendar" to the message header. The problem is that the MailMessage().Headers seems to be read only. I thought that the solutions was to use the add method......
System.Web.Mail?? (3 replies)
microsoft.public.dotnet.framework
Hi I'm trying to send a mail using the System.Web.Mail message library. It works okay on a NT server with the SMTP server installed. I can see that the System.Web.Mail.MailMessage is just a wrapper for the CDONTS.NewMail COM object. But how do I send a mail from a win 98 client which does not have the CDONTS COM library installed???? Isn't it pretty bad that System.Web.Mail.MailMessage is a wrappe...
Bug when Inherit from DataRow ? (4 replies)
microsoft.public.dotnet.framework
Sample code follows (console app) code using System; using System.Data; namespace data { public class maRow : DataRow { public maRow(DataRowBuilder rb) : base(rb) { } } public class maTable : DataTable { protected override Type GetRowType() { return typeof(maRow); } } class Class1 { static void Main(string[] args) { maTable table new maTable(); table.NewRow(); } } } /code Why this code raises an A...
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com