| Running compiled (VB.NET) exe on Rotor (Linux, etc)? (9 replies) |
| microsoft.public.dotnet.framework |
| To my knowledge the Rotor (port of .NET framework for other operating systems than Windows) allows you to compile C# source codes into yourname.exe files on the system and then execute them using the CLR. Does this mean that I could for example write a .NET application using VB.NET in Windows, copy the compiled exe to linux/unix/whatever and it runs just like that? |
|
| Error: File or assembly name System.Xml, or one of its dependencies, was not fou (6 replies) |
| microsoft.public.dotnet.framework |
| Hi, Whin I am making applicaiton in VisualBasic.Net, in ASP.Net application I am importing System.XML class, While building I am not getting any error. But At run time I am getting below Error File or assembly name System.Xml, or one of its dependencies, was not found. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for mo... |
|
| FileSystemWatcher filter (2 replies) |
| microsoft.public.dotnet.framework |
| Is there a way to put a FileSystemWatcher filter that does more than just filter one type of file extention? For example, how would I filter both jpeg and gif files? I tried this: FileSystemWatcher fsw new FileSystemWatcher(someDir); fsw.Filter "*.jpg;*.gif"; but it doesn't work. I tried with | instead of ; as well. The documentation does not address the issue. Thanks, Frank |
|
| .NET equivalent of PathCompress() API (3 replies) |
| microsoft.public.dotnet.framework |
| Does anyone know of a .NET equivalent of the PathCompress() API in the Base Class Library? Just a reminder, this API call takes a long pathname, chops the middle out and replaces it with periods (....) to make a specified number of pixels long so it will fit in label controls etc. Regards Chris |
|
| Stop async socket service (2 replies) |
| microsoft.public.dotnet.framework |
| Hi all, today i am stuck with a socket operation problem i cannot solve by myself, although i think it should be done easily.... I have created a socket, bound it to an endpoint and called Socket.BeginAccept() from the main thread: System.Net.Sockets.Socket Listener; this.Listener.Bind( EndPoint ); this.Listener.Listen( 100 ); this.Listener.BeginAccept( new System.AsyncCallbac( BeginAcceptCallback... |
|
| Invoke batch file (2 replies) |
| microsoft.public.dotnet.framework |
| Hi, how can I invoke a batch file from .NET/C#? Can anybody point me to the corresponding library. Thanks, rene |
|
| FTP in VB.Net (5 replies) |
| microsoft.public.dotnet.framework |
| I want to program an FTP client in VB.Net. Does anyone have ideas where I have to start? Thx, Dennieku |
|
| COM Interop and threads (2 replies) |
| microsoft.public.dotnet.framework |
| I have a problem making a call to a method on a COM component in response to a MessageQueue.ReceiveComplete event. The code exits at the point of the method call on the COM object only if called from the event delegate, stopping any further receive notifcations. I've had this problem previously with the MSComm.OCX and thus imagine that I need to configure the thread in which the delegate operates,... |
|
| Type.GetType returning null (3 replies) |
| microsoft.public.dotnet.framework |
| Hi, I am having a problem with Type.GetType. In sum, I have a class DataRetriever residing in namespace com.valtech in an assembly called TravelAgent.dll. The DLL is not in the GAC, as I want it to be private to my App. My main class is in completely different namespace and it is compiled into an exe. When I compile I obviously reference the TravelAgent assembly. When I run the main class I can di... |
|
| why is there no PropertyInfo.IsStatic? (2 replies) |
| microsoft.public.dotnet.framework |
| Why is there no IsStatic property in System.Reflection.PropertyInfo (as in FieldInfo)? Is there another way to find out if a property is defined statically? (Except for waiting if GetValue(null,null) throws an exception) |
|
| csharp compiler bug?! (4 replies) |
| microsoft.public.dotnet.framework |
| I am getting a strange bug while running my application in the dotnet runtime. The machine is Windows 2000 workstation and the application is web application. I have deployed the dlls in the bin directory. The source cs files are no deployed. The error I am getting is the following: Compiler Error: stage 'IMPORT' error CS0587: Internal Compiler Error: stage 'IMPORT' error CS0587: Internal Compiler... |
|
| TCPClient, Sockets & buffers (3 replies) |
| microsoft.public.dotnet.framework |
| Hello, I'm hoping someone can help. I'm pretty new to socket programming, but want to have a server receiving variable length messages from a client. Each message has the message length embedded at the start of the message. My question is: Will TCPClient::Read or Socket::Receive always receive exactly one message, or could it receive half a message, or one and a half messages? If so, I will need t... |
|
| Hi. A simple question about inheritance (3 replies) |
| microsoft.public.dotnet.framework |
| Hi. Why are some key classes not inheritable? I just wanted to use OledbConnection as basis for a simple new class, wich should automatically reconnect/try to connect to a backup system when the connection fails... It could be sooooooo simple to do that with OledbConnection... But now since it's not inheritable I have to write a vast bunch of code to get it done... hmmmpppppff.... Any hints? Thank... |
|
| Error sending messages. (2 replies) |
| microsoft.public.dotnet.framework |
| Hi, I'm getting the following exception whenever I try o send a message. "Exception has been thrown by the target of an invocation." The stack trace is: at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters) at System.RuntimeType.InvokeMember(String name, BindingFlags invokeAttr, ... |
|
| BUG: System.IO.FileSystemWatcher or System.IO.FileSystemEventArgs! - case insensitivity (2 replies) |
| microsoft.public.dotnet.framework |
| Is there an official place to submit this bug? I'm not sure which of the two classes would be the source of the problem. "System.IO.FileSystemEventArgs" or "System.IO.FileSystemWatcher" to recreate: 1) Initialize a "System.IO.DirectoryInfo" instance to a folder name that has capital letters. IE. System.IO.DirectoryInfo dir new System.IO.DirectoryInfo("C:\New Folder"); 2) create the directory... di... |
|
| remoting (2 replies) |
| microsoft.public.dotnet.framework |
| What is really the difference between remoting and just referencing the dll of an object. For example using Dim obj As New ServerClass.myRemoteClass() by referencing the ServerClass.dll which is on another computer on the same network without any remoting configuration directly excecutes the methods on myRemoteClass while also using obj CType(Activator.GetObject(Type.GetType("ServerClass.myRemoteC... |
|
| Sending data to fields on an HTML page (2 replies) |
| microsoft.public.dotnet.framework |
| Is it possible to pass fields into a web page via .NET? What I want to accomplish is logging into a web site to gather data from a program. The web page requires that you enter a username and password via textboxes and then posts the data back to the server. I have started by trying to utilise the System.Net.WebClient class but I am not sure this is how I need to be approaching the issue. Any help... |
|
| Difference between Thread and Asynchronous programming (4 replies) |
| microsoft.public.dotnet.framework |
| Can someone explain the difference between the two, specifically when to use one versus the other? I am having a hard time getting my hands around this. Thanks, Joe |
|
| Threads And Threadpooling (4 replies) |
| microsoft.public.dotnet.framework |
| I have a windows application wrote in C# that times how long it takes a particular web site to respond. What I found when I finished the application was that the code I used to connect to a given site would block the main thread thus making the GUI unresponsive during this operation. My next approach was to use Thread Pooling. I solved the problem of the GUI being unresponsiveness during a connect... |
|
| Assembly.GetType("System.Data.DataSet") is not returning the type object (2 replies) |
| microsoft.public.dotnet.framework |
| I am using the Assembly.GetType method of my current assembly (application that references the System.Data.Dll) to get the type object of System.Data.DataSet It is returning NULL. If I am using typeof (System.Data.DataSet) it is working! Why is GetType not returning the type? I thought that GetType will resolve the types defined in the assembly all referenced assemblies. GetType for system data ty... |
|
| Using Certificates for encryption. (3 replies) |
| microsoft.public.dotnet.framework |
| I'm new to .NET Cryptographic classes. I want to sign a piece of data by one program that can be checked authentic by other programs. I created a test certificate with MakeCert, in a system store called "AuthServiceCertificate". I called the key container "AuthServiceKey". I want now to use the generated key pair in order to sign a piece of data using the .NET Cryptographic classes. I thought that... |
|
| A better solution please (System.IO.Stream related) (5 replies) |
| microsoft.public.dotnet.framework |
| Hi, I want to download a file, To do this I have the following code. The code works, but isn't really good. 1 I can't find the size of the file I'm about to download (Seek is not allowed it says) 2 I don't know when the download is finished, so I have a poor test to see if the download is completed What do I need to change in the following code ? Thnx in Advance. TP. Private Sub frmMain Load(ByVal... |
|
| How to read a custom application.config file (4 replies) |
| microsoft.public.dotnet.framework |
| Say if I have a app called boo.exe, I know I can create a boo.exe.config to associate with it and load the application config data at runtime. But is it possible to set the the config filename to something other than the *.exe.config? Thanks Andrew |
|
| ***** CDO ***** (3 replies) |
| microsoft.public.dotnet.framework |
| I am using the .NET system.web.mail.smtpmail class to send emails from an asp.net application. When I fill in one of my forms and click on submit, I am thrown the error shown below. The strange thing is that when I run the site from several different machines all with IIS and .NET, it works on some but not others. As far as I can tell, CDO is installed on all the machines. I have looked long and h... |
|
| Async methods without a callback? (5 replies) |
| microsoft.public.dotnet.framework |
| Is there a way to use asynchronous methods without using callbacks? I have a method that I want to process but I don't care if it returns or what happened while it was doing whatever it was doing. |
|