microsoft.public.dotnet.framework Archive - June 2004
Post a message to this list
Messages
Page: 123456789101112131415
File.Exists - need to know if the caller does not have permissions (12 replies, VIP)
microsoft.public.dotnet.framework
By design File.Exists method returns false if the caller does not have permission, even if the file actually exists at the specified path. No exception is thrown. How can I differentiate between a case where file is truly not found and a case where there are no permissions? Thanks, Stan
Static? (18 replies, VIP)
microsoft.public.dotnet.framework
Hi In a class with simple methods like: Products.Insert(string name, string desc) Products.Update(int id, string name, string desc) Products.Delete(int id) What is better? Static or common methods? This objects do not need instances. I have a lot of classes, and my only fear is the cost. Thanks, Bruno Rodrigues
Defining methods for a class that are accessible when declaring arrays of that class? (8 replies)
microsoft.public.dotnet.framework
Hello, this may seem a strange question, but is there a way of being able to call methods of a class through an array of that class when not referencing a specific object in the array. In other words, defined a class class A I'd like to be able to do the following: // defining an array of class A objects class A myArray[] new class A[10]; // calling MyMethod on the array myArray.MyMethod(); where ...
.NET Application Updater Component: how to handle an OCX? (4 replies)
microsoft.public.dotnet.framework
Hi, I have an VB.NET application that uses an OCX for some control. I integrated the application with the .NET Application Updater Component (http://windowsforms.net/articles/appupdater.aspx) to copy automaticly new versions of the application to the clients. The problem is: it copies the OCX, but the OCX isn't registered. Everything works fine until the the directory of the old version is deleted...
New MSIL Newsgroup (7 replies, VIP)
microsoft.public.dotnet.framework
Microsoft, Can I make a request for a newsgroup specific to MSIL? I have taken great interest in MSIL and have done a lot of reading into MSIL, and written, compiled and tested with success a few il programs. I'm sure this is a topic of interest to many people, as it is at the heart of .Net. If any of you readers/posters are also interested in an intermediate language specific newsgroup, please re...
Constructing instance by name? (2 replies, VIP)
microsoft.public.dotnet.framework
Hi Is it possible (in VB) to create an instance of a class based on its name?? What I want is something like: Public Class myBaseClass End Class Public Class myClass Inherits myBaseClass End Class Dim myTest as myBaseClass newInstanseOf("myClass") or something similar.... TIA Søren
whidbey related question (2 replies)
microsoft.public.dotnet.framework
is whidbey using .NET framework 1.2 or 2.0? are they the same? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Benjamin Fallar III Learning Solutions Manager dB Wizards Microsoft Gold Certified Partner for Learning Solutions Microsoft Gold Certified Partner for Business Intelligence Authorized Prometric Testing Center Authorized VUE Testing Center 28/F 88 Corporate Center 141 Valero cor Sedeño St. Salcedo Village, ...
Buffer Full or Queue Problem (2 replies, VIP)
microsoft.public.dotnet.framework
I am getting an error while using MS Framework 1.1 that says "An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full". I saw a refrence to a hotfix that you need to ask MS about. Does anyone have that hotfix or know an faster way to get it? Thanks
.NET Version control (2 replies)
microsoft.public.dotnet.framework
Hi! How can I achieve the situation like that: there is some application (.NET) and it is using some class library (strongly named, installed by .msi, registered within GAC). I'd like to have a crash on my client application when the class library version differs from the one compiled with my application earlier e.g. my app version1 and my class lib version1 works fine but my app version1 and my c...
dllhost.exe can't locate the assembly (2 replies)
microsoft.public.dotnet.framework
I use DevPath for developing w/ my .net serviced component. however, dllhost.exe can't locate the assembly, pasted below is the fusionLog. the assembly debug folder is added, however, there are "key" issue... can anyone help, somehow the developing experiences w/ .Net Serviced component has some room to improve... unfortunately, that's our major stages... Jim "*** Assembly Binder Log Entry (2004/6...
Converting an XML documentation file to a help file (2 replies)
microsoft.public.dotnet.framework
Hi all, This may seem like an obvious question. How do I convert the XML documentation file that the C# compiler emits from my XML comments into a help file for the Microsoft Document Explorer? Is there a tool program or something that I am missing? I cannot find anything in any of the documentation. Regards, Chris
TypeConverter.CreateInstance-Method (2 replies)
microsoft.public.dotnet.framework
Hi, in the .NET Framework Class Library there is the following text in the "Remarks" section: "Use this method for objects that are immutable, but for which you want to provide changeable properties." .... objects that are immutable ... what does this mean? Can someone please insert here an example? thx & bye Oskar
Importing Metadata for remoting. (2 replies)
microsoft.public.dotnet.framework
I am working on my first remoting application. I first created an exe application, and in it, I created a class that was a descendant of MarshalByRefObject. I want that class to be exposed to clients. //This is part of the code for myserverproject.exe namespace myserverproject { public int RemoteClass:MarshalByRefObject { public int AlwaysReturn3() { return 3; } } } So now I want to write a client...
thinstall violates .net license? (2 replies)
microsoft.public.dotnet.framework
I want to distribute an app with thinstall (thinstall.com) it creates a virtual machine with .net linked in so you don't have to distribute the framework. The problem is, I'm worried that this might not be kosher with the Visual Studio .NET license, which seems to say that if you want to distribute an app built with .net tools your users have to install the full framework. Has there been any *offi...
DateTime and timezone. (10 replies)
microsoft.public.dotnet.framework
I have some dates stored in a database. They are based on a fixed time zone (not GMT don't ask why). I want to know the offset between the local time and the time stored in the database. Is there an easy way to figure out the time span difference between the local time and an arbitrary timezone (not GMT)? Say the database stores the times in MT(mountain time) and the local time is in CT(central ti...
IIS programming (3 replies)
microsoft.public.dotnet.framework
Hi all, I'm looking for any docs (e.g. API) on how to programmatically read IIS configuration, create virtual sites, alter settings, etc. Thanks, Oleg.
CasPol security (5 replies)
microsoft.public.dotnet.framework
Whats the danger in doing: C:\...\caspol enterprise addfulltrust L:\foo.exe foo is a local network (non web based) application that references internal databases and general web based information sites. Steve
Time picker (2 replies)
microsoft.public.dotnet.framework
I want to implement time picker control in web forms? is it possible or only possible in windows form? if it is yes how can implement?
EndInvoke can only be called once for each asynchronous operation. (2 replies, VIP)
microsoft.public.dotnet.framework
Dear Sir I had created two components one component calls another component Asynchronously. The Problem is when i call EndInvoke Function, It will throw a error message saying that "EndInvoke can only be called once for each asynchronous operation" Please help me out in this regard. Thanks Regards, Umesha Y.K
web service on alternate port - HHTP 'Host' field incorrect (3 replies, VIP)
microsoft.public.dotnet.framework
The 'add web reference' in Visual Studio 2002 seems to be broken a bit. If I have the wsdl available at http://myserver:8080/services/MyService.wsdl The Project Add Web Reference shows the correct WSDL. But after using 'Add Reference' the WSDL file is incorrect. It seems that the request for the WSDL from within VS sets the HTTP 'Host' field incorrectly, in that, it does not append the port, even ...
serializing dataset with huge data (3 replies)
microsoft.public.dotnet.framework
Hi, I needed to load a dataset with x number of million records, to avoid database trips. To load the dataset with this amount of data, it is taking almost 10 minutes. We just wanted to see if, we can read it from file in less amount of time. So, this requires serialiaztion of existing data into a file. So, first I needed to load into dataset and serialize data set. I'm using binary formatter. It ...
Funny Behavior With DataGrids and CTRL-C (2 replies)
microsoft.public.dotnet.framework
I have come across an oddity with the Datagrid and CTRL C. If I populate a datagrid with data, then use the mouse to highlight part of the text in a cell, then do a CTRL C, when I got to another cell and paste, it paste the whole contents of the cell that I just copy'd from. If I use the Context menu to perform the same thing, it will only paste the selected text. I have tried to use a DataGridTab...
find-replace in word from vb.net ? (2 replies, VIP)
microsoft.public.dotnet.framework
This does work with Word 2000, 2002, 2003 but not with Word 97, any idea ? Public Function testMYWord() Dim wApp As New Word.Application Dim objWord As Word.DocumentClass objWord wApp.Documents.Open("c:\MyDocuments\Ontvangstmelding.doc") wApp.ActiveDocument.Content.Find.Execute("customername", False, False, False, True, False, False, False, True ,"REPLACED", True) wApp.Visible True End Function
Re-throwing an exception (3 replies, VIP)
microsoft.public.dotnet.framework
Hi, I'm new in c# and I've one doubt about re throwing exceptions. I already did many examples and I found that in the all cases the exception is re thowing by the method itself (without try/catch manage) with the complete stack trace information to the upper object that is calling the method or class where the exception is raised, so why the the re throwing is usefull for? static void Main(string...
Who's .NET Framework owner (2 replies, VIP)
microsoft.public.dotnet.framework
A friend of mine told me C# is not owned by Microsoft anymore and so does .NET framework. Is it true? Guess it's because open source community. Hope we can get some nice projects as in Java. I can't barely wait for signing me up in a C# open source project.
Ad
Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification