| .NET Remoting channels (2 replies) |
| microsoft.public.dotnet.framework |
| I have to use remoting over http, port 80, to two different servers, one on my local network, the other on the internet. i'm inside a proxy, so the calls to the internet site have to go through the proxy, but i don't want my local calls going through the proxy. my idea was to create and register two httpchannels, setting the proxy properties on one and leaving them blank on the other. but how do i... |
|
| vb.net and excel programming (5 replies) |
| microsoft.public.dotnet.framework |
| Hi I'm working on a small web application that gets data from a database, creates an excel spreadsheet, inserts the data, and saves the spreadsheet. I'm not sure how to create the spreadsheet and insert the data. I tried using Dim ExcelAp As New Excel.Application() to start but then it says that this type is not defined. Do I need to install something on my computer first? Thanks. |
|
| Is it possible to add a web reference on runtime ? (2 replies) |
| microsoft.public.dotnet.framework |
| Is it possible ot add a web reference to a web service in runtime ? Also is it possible to pass a serializable object as an argument to a web service ? When I try that after referencing the dll on the web project, I receive a type mismatch The object types are the same (however named differently by visual studio) on the client and on the server. Best regards, Marco |
|
| How to access the framework version (2 replies) |
| microsoft.public.dotnet.framework |
| How can I access the .NET framework version (1.0.3705 for eg.) programmatically. Is it possible to access what patches have been installed in order to show these in an about box? Thx! Chandika |
|
| Fatal Execution Engine Error (0x792dc413) upon AppDomain.Unload (2 replies) |
| microsoft.public.dotnet.framework |
| I wonder whether someone else has observed the following behavior: I have three AppDomains, let's call them A1, A2, A3. A1 creates A2 and creates and instance of an class in it. The object in A2 in turn creates A3 and creates an instance of yet another class in it. Now when I try to unload the application domains, I receive a "Fatal Execution Engine Error (0x792dc413)" when calling AppDomain.Unloa... |
|
| installutil (2 replies) |
| microsoft.public.dotnet.framework |
| Can any one shed some light on this error pls Installing assembly 'c:\xmlord~1\print\xmlorders.exe'. Affected parameters are: assemblypath c:\xmlord~1\print\xmlorders.exe logfile c:\xmlord~1\print\xmlorders.InstallLog An exception occurred while trying to find the installers in the c:\xmlord~1\print\xmlorders.exe assembly. System.Reflection.ReflectionTypeLoadException: One or more of the types in ... |
|
| FileSystemWatcher loses capitalization? (2 replies) |
| microsoft.public.dotnet.framework |
| I posted about this once before but never got any answer from one of our MS folks, so I'm trying again. I am using the FileSystemWatcher and finding that the FullName field returned to delegates in the FileSystemEventArgs structure has the filenames in lower case. While the filesystem doesn't care about case in filenames, users do. And since I'm displaying the filenames to the user I really need t... |
|
| First Start .net c# Application after boot under Windows 98 hangs (2 replies) |
| microsoft.public.dotnet.framework |
| We write a Application in c# working with Remoting to a Windows 2000 Server with SQL Server. The Structure is like this: Server: Windows 2000 Server SQL Server 2000 c# Service with ServicedComponent(Transaction)(COM ) Clients: Windows 98 SE Windows 2000 professional Windows XP professional ..net Framework with SP2 Remote Call from the Client App. to the c#Service on the Server over remoting (TCP/P... |
|
| Catching FileNotFoundException when unable to load an assembly (3 replies) |
| microsoft.public.dotnet.framework |
| Hi, I want to catch FileNotFoundException in case my application is unable to find a required assembly file, for logging a error message to my log file. Is it possible to handle this exception ? I treid catching this exception in Main(). But it wont work! Please let me know if any one has any idea. Thanks, Prashanth |
|
| Security flaw in FolderBrowserDialog? (3 replies) |
| microsoft.public.dotnet.framework |
| I just wrote a small Windows Forms control that is hosted in IE to show the security features of .NET to some fellow developers. My form has a simple button on it and contains a FolderBrowserDialog as component. The button executes the following code: this.folderBrowserDialog1.ShowDialog(); The funny thing is, I can look at the whole directory structure and even CREATE folders without any FileIOPe... |
|
| SmtpServer (3 replies) |
| microsoft.public.dotnet.framework |
| Greetings, I have begun using the Web.Mail.MailMessage Properties along with Web.Mail.SmtpMail.Send(Web.Mail.MailMesage) The main concern I have is that my Website is on a remote host when I use these functions Web.Mail.SmtpMail.Send() uses the remote host's default SmtpServer (CDO for Windows) it seems many ISP's block these messages. My Website's SmtpServer is named mail.[domain] but I can't use... |
|
| .NET - COM+ (2 replies) |
| microsoft.public.dotnet.framework |
| Hi, I am trying to fill a datagrid with a class installed on remote server that I call with remote service of .NET. When I call the method, this error appears: Exception Details: System.Runtime.Remoting.RemotingException: This remoting proxy has no channel sink which means either the server has no registered server channels that are listening, or this application has no suitable client channel to ... |
|
| ServicedComponent - ObjectPoolingAttribute (2 replies) |
| microsoft.public.dotnet.framework |
| Hi, I'm working with Visual Studio .NET 2002 (.NET Framework 1.0). I want to use the ObjectPoolingAttribute. In the .NET documentation on ServicedComponents I found the following code snippet: [ObjectPooling(Enabled true, MinPoolSize 2, MaxPoolSize 5, CreationTimeOut 20000)] public class TestObjectPooling : ServicedComponent { ... } When using it I got the following error after compiling: The name... |
|
| Derived exception class? (2 replies) |
| microsoft.public.dotnet.framework |
| I want to derive an exception class and I want to be able to report inner exceptions. For instance if I get an error while accessing our database for a particular field I want to record the fact that I was trying to access a particular field (via the derived exception class) but I also want to store the detail (SqlException in this case) that led to the problem. My problem right now is that the In... |
|
| Pending processes in SQLServer (2 replies) |
| microsoft.public.dotnet.framework |
| Hi, I made a small program with this code on OnLoad : Dim cc As New SqlConnection("Server localhost;UID sa;PWD ;Database pubs") cc.Open() cc.Close() Then I opened SQLServer and I saw one process which points to that code(a process whose application is .NET SQLClient Dat Provider). Isn't the close command supposed to kill it ? Then I thought 'maybe it has something to do with GC' and I appended a G... |
|
| AppDomain.Load :: Can't find the file error. (3 replies) |
| microsoft.public.dotnet.framework |
| I hope I missing something really simple here, check this out. When attempting to load a new AppDomain, like this: REM Setup the Application Domain. Dim oSetup As New AppDomainSetup With oSetup .ApplicationBase "D:\TEMP\bin\" .PrivateBinPath AppDomain.CurrentDomain.BaseDirectory .ApplicationName "MyApp" End With REM Load the Application Domain. Dim oAppDomain As AppDomain AppDomain.CreateDomain("M... |
|
| Should I close a connection in a dispose method? (6 replies) |
| microsoft.public.dotnet.framework |
| I've built a class to broker the data in may application. In other words, when my business logic needs a list of widgets in the db, it calls mybrokerclass.getWidgetList, which might return a collection or arraylist of widgets. This way, the business logic doesn't care about where the data comes from. (BTW, this is a web application) So my problem is this.. during a postback, a series of operations... |
|
| delegate performance (4 replies) |
| microsoft.public.dotnet.framework |
| Yesterday, a guy walked into my office, complaining that events perform poorly in his application. Wondering what's wrong with them, I understood that by attaching thousands of handlers to a multicast delegate, the performance outcome is bad. Well, besides it's maybe not necessary to attach so many handlers, I never really considered multicast delegates to perform poor. I might have considered tha... |
|
| Return string from Fortran Dll back to C#. (3 replies) |
| microsoft.public.dotnet.framework |
| Dear all: My C# program need a string returned from a Fortran Dll. The Fortran Dll is like this: SUBROUTINE REDO(s) !DEC$ ATTRIBUTES DLLEXPORT::REDO, C CHARACTER*(*) s !DEC$ ATTRIBUTES REFERENCE :: s s 'Let them talk, now!'C END And I use C# PInvoke to call it, the client code like this: public class BackString { [DllImport(@"BackString.dll", EntryPoint "REDO")] public static extern void REDO(stri... |
|
| Overriding ProcessKeyPreview, Enter WM_KEYDOWN... (5 replies) |
| microsoft.public.dotnet.framework |
| Hi, I have 3 questions regarding the code below: 1) Why can't I trap the KEYDOWN while I can trap KEYUP? 2) Is it correct that I use Return True within the IF Statement? (I've already read the documentation but it is rather hard to understand so please don't refer to it :) 3) Many examples in the newsgroups use Return MyBase.ProcessKeyPreview(m) as the last code line while I have used Return MyBas... |
|
| DataRowCollection.Add exception (3 replies) |
| microsoft.public.dotnet.framework |
| Hi everyone, SOMETIMES, when I call the DataRowCollection.Add method is called, the .NET framework seems to throw the following exception: System.ArgumentOutOfRangeException: Index was out of range. Must be non negative and elss than the size of the collection. Parameter name: index. Can anyone explain to me why this exception is thrown and what must I correct in my datatable or datarow or dataset... |
|
| Closing a Help window (3 replies) |
| microsoft.public.dotnet.framework |
| I open a help file using Help.ShowHelp the help file is a .chm I need to be able to manually close this window. I guess I can use the FindWindow API call to do this, but what do I use as the lpClassName paremeter? Or is there a nicer way to do it? Thanks in advance Mark |
|
| Reflection question (4 replies) |
| microsoft.public.dotnet.framework |
| Hi everyone, i was playing around with reflection and got the following problem (i'm using .net 1.1). I cannot cast an object created by reflection even if i know which type the activator will return an object of... I don't know what i'm doing wrong, so if anyone could share some lights that would be really nice. I would definitely not want to use reflection on each method i wanna call, or each pr... |
|
| SerializationException (8 replies) |
| microsoft.public.dotnet.framework |
| I have created an add in for VS.NET and when it starts I want the add in to read the options from file. I have created a class (with the [Serializable] attribute set) that contains the options and implemented GetObjectData(SerializationInfo info, StreamingContext context) as well as a copy constructor: protected Options(SerializationInfo info, StreamingContext context). The serialization process d... |
|
| I'm tired, I don't know if is my problem or if is a framework problem (6 replies) |
| microsoft.public.dotnet.framework |
| I have an application (Console Application). Every second it use more and more memory, with the .NET memory profiler I see that thousands of (Byte, Regex, String etc) instances I have in memory. But, when I run the GC.Collect and the the GC.WaitForPendingFinalizers manualy, the memory is released and the number of instances of the classes mentioned are redused to 10, 5, 15 etc My Question is, If I... |
|