Re: [DOTNET] OT: Network links sought

2002-06-25 Thread Yves Hanoulle @ ObjectSoft Extern
What version of XP do you have ? I know that xp home edition is designed not to work with domain networks... Greetings, Yves Hanoulle www.objectsoft.be -Original Message- From: The DOTNET list will be retired 7/1/02 [mailto:[EMAIL PROTECTED]] On Behalf Of Dean Cleaver Sent: Tuesday, Jun

[DOTNET] How to run a Hello world in .NET Framework

2002-06-25 Thread Mathew James
Hi all, I have recently downloaded .NET Framework(21 MB) from Microsoft site and installed in my PC (Win2k). Now How should I start to run a small application say (Hello World) with a small content in a code behind page also. Please Help me !! Thanks in Advance Mathews. You can read messages

Re: [DOTNET] Crypto Problem

2002-06-25 Thread Tarik Soulami
This would be the case if we were specifying the CspProviderFlags.UseMachineKeyStore flag in the RSACryptoServiceProvider constructor that accepts a CspParameters. By default, we try to use the user key store, but because the user profile for the ASPNET account is probably not loaded in this ca

Re: [DOTNET] How to run a Hello world in .NET Framework

2002-06-25 Thread Rune Christensen 8397
You should take a look at this one: http://www.gotdotnet.com Regards, Rune Christensen -Original Message- From: Mathew James [mailto:[EMAIL PROTECTED]] Sent: 25. juni 2002 09:12 To: [EMAIL PROTECTED] Subject: [DOTNET] How to run a Hello world in .NET Framework Hi all, I have recent

Re: [DOTNET] Security Problems with Dynamically Loaded Assemblies

2002-06-25 Thread Jay Ayliff
Hi John, Thanks for your answer. The words "quality time" and "intricacies" made my heart sink, but a doc search on "Code Access Security" has provided me with the way in. Regards, Jay Ayliff Stalis Ltd You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to oth

Re: [DOTNET] OT: Network links sought

2002-06-25 Thread Dean Cleaver
I have XP Pro - but I think I have it resolved now. A friend got me to modify the DNS server here, remove some things, then add some forwarding and away it went. I still have a phantom domain controller in Active Directories that I would like to remove (was a machine which no longer exists, but I

Re: [DOTNET] VS.NET Extensibility, AppDomains & Assembly Unloading

2002-06-25 Thread Keith Hill
On Sat, 22 Jun 2002 21:49:16 -0700, Keith Hill <[EMAIL PROTECTED]> wrote: >>The code runs perfect when we try it from a WinForm C# project, but it >does >>not work when we call it from inside the Visual Studio .NET AddIn (running >>in the Visual Studio.NET default AppDomain). We get a casting exc

Re: [DOTNET] Callbacks from unmanaged code to managed code

2002-06-25 Thread Tibor Bekesi
Dear Axel, Maybe You can find some hints that You can use at http://localhost/quickstart/howto/ at the Interoperability section. (http://localhost/quickstart/howto/doc/Interop/Building_Samples_COM2NET. aspx ) Best regards, Tibor -Original Message- From: The DOTNET list will be retired 7

Re: [DOTNET] Callbacks from unmanaged code to managed code

2002-06-25 Thread Henrik Enemark Rasmussen
I don't know if this helps, but from the subject line it I guess it may be what you want. - Henrik http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/htm l/cpconusingcallbackfunctions.asp > -Original Message- > From: Axel Heitland [mailto:[EMAIL PROTECTED]] > Sent

Re: [DOTNET] VBA for .Net

2002-06-25 Thread Chris M. Szurgot
It's called VSA (Visual Studio for Applications) and information can be found here [1]. It supports VB.NET & Jscript, but no C# yet. Chris http://msdn.microsoft.com/vstudio/vsip/vsa/default.asp -Original Message- From: Rolls, Robert [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 25, 20

Re: [ADVANCED-DOTNET] Strongly Typed DataTables aren't serializable - why?

2002-06-25 Thread Dan Green
Chad, > Have you ever looked at the generated code for a Strongly Typed (ST) > DataSet? Yes. Thanks for asking. If you check, you may even notice many of the facts you mention in my previous two posts. :) > The GetChanges() method on > the DataSet and DataTable returns an instance that is equ

[DOTNET] Security Zones

2002-06-25 Thread Jeff Roberts
I have a question about security zones (MyComputer, Internet, Intranet, etc) I am striving to create a 100% managed application that may be executed in a partially trusted environment "zone". I have been reading up on what rights my application has when started from the various zones. I have

Re: [DOTNET] Security Zones

2002-06-25 Thread Cavnar-Johnson, John
The .NET framework configuration tool (an MMC snap-in) or (less likely) caspol.exe, a command-line tool. -Original Message- From: Jeff Roberts [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 25, 2002 7:50 AM To: [EMAIL PROTECTED] Subject: [DOTNET] Security Zones I have a question about se

Re: [DOTNET] OT: Network links sought

2002-06-25 Thread Mark Burns
Dino, Hey, let me know if you manage to solve that problem - we have the same issue at play here as well. (Moreover, it was formerly the root controller - now gone, but the root authority was successfully transferred to our current server.) Regards, - Mark > -Original Message- > From: T

[DOTNET] ProfilerAPI + DebugAPI question

2002-06-25 Thread Łukasz Wielek
ICorDebugILFrame interface has method EnumerateArguments. But this method works sometimes strange. Returned enumerator contains 3 arguments for this method : public static void Fun2(Class1 c, int x, string s) { return; } and no arguments for this method : public static int Fun1(Class1 c, int x, st

[DOTNET] AsymetricAlgorithm Encryption Limit

2002-06-25 Thread Dinesh Upare
Hi, I was trying to encrypt some objects using RSACryptoServiceProvider class in .NET. But if the objects crosses certain limit I get the exception as "Bad Length". I went trough the MSDN, it says Asymmetric alorithms are used to encrypt small bytes of data. Is it really so? Can't i use RSACryp

[DOTNET] ConfigurationSettings.GetConfig

2002-06-25 Thread Kerry Whelan
Hi, Is it possible to set ConfigurationSettings.GetConfig("sectionName") to retrieve configuration settings from a config file other than web.config? Thanks, Kerry You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss

[DOTNET] why is wrong

2002-06-25 Thread Michal Jaeschke
How convert in "unsafe context" byte[] to sbyte*; I need to have pointer to array of sbyte. Any ideas? You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

Re: [DOTNET] ConfigurationSettings.GetConfig

2002-06-25 Thread Marsh, Drew
Kerry Whelan [mailto:[EMAIL PROTECTED]] wrote: > Is it possible to set > ConfigurationSettings.GetConfig("sectionName") to retrieve > configuration settings from a config file other than web.config? Yes... it works for application configuration files (i.e. MyApp.exe.config) as well. HTH, Drew

[DOTNET] ADO.NET Datasets

2002-06-25 Thread Avinash Lakshman
Hi Here are the questions I have as I am getting my feet wet with ADO.NET : (1) Why Datasets ? What is the need to have an in memory representation of the DB & some of the DB's we deal with have tables that have a million records -- in this case would it be prudent to have an in memory representat

Re: [DOTNET] ADO.NET Datasets

2002-06-25 Thread Patrick Steele
[NOTE: This list is closing 7/1/2002. This question should probably go to DOTNET-CLR]. Datasets are disconnected, in-memory representations of data. The advantage is that you *don't* hold a connection (an expensive resource) while doing something with the data. With a dataset, you 1) connect

Re: [DOTNET] Security Zones

2002-06-25 Thread Murphy, James
You can get to the MMC Snapin via: Start->Administrative Tools->Microsoft .NET Framework Configuration. That will launch the .NET config MMC snapins including the Runtime Security Policy. Incidentally, you can right click on "Runtime Security Policy" and pick "Evaluate Assembly..." to view the

[DOTNET] ASP.NET Problem

2002-06-25 Thread Dinesh Upare
I created a .NET component. I tried to use this component in .aspx page. But somehow the runtime is not able to find the Namespace I created. I created a bin directory in the virtual directory and put the .aspx file. I also tried to create a web.config file with add assembly element, but stil

Re: [DOTNET] ASP.NET Problem

2002-06-25 Thread Murphy, James
I'd spend a little time at [1] going through the ASP.NET tutorials. You need an .aspx file that contains an html "template" to return. This page can incorporate a code behind page and will derive from it. The class in the code behind page needs to inherit from System.Web.UI.Page. The aspx page

Re: [DOTNET] ASP.NET Problem

2002-06-25 Thread Murphy, James
Damn ASCII artshould be: > ++ > |Your Actual Page Type | > ++ > | +--+ | > | | System.Web.UI.Page | | -In System.Web.dll > | +--+ | > | | | > | +

[DOTNET] FileStream question

2002-06-25 Thread Jeff Roberts
Does anyone know if I can read a text file from a web server with the FileStream class ? For example, if my .net application was launched from www.ws.com\myapp.exe, could I read a file from www.ws.com by the name of mytextfile with the following code ? string Dir = AppDomain.CurrentDomain.Base

Re: [DOTNET] ADO.NET Datasets

2002-06-25 Thread Sandeep Kumar
Hi Avinash Datasets are the cache on client side and it is useful if you want that your application must't ask the same information again and again from the server. What you can do is to cache it on the client side and read the cache when you need the information again. You can use the data ad

Re: [DOTNET] FileStream question

2002-06-25 Thread Tom Archer
Here is an exapmle from my File Streaming chapter in Inside C# (second edition). using System; using System.IO; using System.Net; namespace WebPages { public class WebPagesApp { [STAThread] public static void Main(string[] args) { string s = "http://w

Re: [DOTNET] ADO.NET Datasets

2002-06-25 Thread Sandeep Kumar
Hi Avinash Datasets are the cache on client side and it is useful if you want that your application must't ask the same information again and again from the server. What you can do is to cache it on the client side and read the cache when you need the information again. You can use the data ad

Re: [DOTNET] FileStream question

2002-06-25 Thread Marsh, Drew
Jeff Roberts [mailto:[EMAIL PROTECTED]] wrote: > Does anyone know if I can read a text file from a web server > with the = FileStream class ? For example, if my .net > application was launched from = www.ws.com\myapp.exe, could I > read a file from www.ws.com by the name of = mytextfile with > t

Re: [DOTNET] why is wrong

2002-06-25 Thread Marsh, Drew
Michal Jaeschke [mailto:[EMAIL PROTECTED]] wrote: > How convert in "unsafe context" byte[] to sbyte*; > I need to have pointer to array of sbyte. > Any ideas? Sure, here's the basics: private unsafe void Test() { byte[] bytes = new byte[] { 1, 2, 3 }; fixed(byte* pbytes = &bytes[0]) {

Re: [DOTNET] FileStream question

2002-06-25 Thread Jeff Roberts
Thanks again ! I need to read a "binary" file into a byte array, can I do this with the StreamReader class ? I don't see a BinaryStreamReader Class ! You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

Re: [DOTNET] FileStream question

2002-06-25 Thread Tom Archer
Did you look at the BinaryReader class? -Original Message- From: The DOTNET list will be retired 7/1/02 [mailto:[EMAIL PROTECTED]]On Behalf Of Jeff Roberts Sent: Tuesday, June 25, 2002 12:24 PM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] FileStream question Thanks again ! I need to rea

Re: [DOTNET] FileStream question

2002-06-25 Thread Jeff Roberts
Yes I have and I tried it with your example and I get an exception when I try to a BinaryReader.ReadByte() call ! That is why I asked if there was a BinaryStreamReader class . thank you You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor

Re: [DOTNET] FileStream question

2002-06-25 Thread Tom Archer
If you can send me the code snippet, I'll take a look at it when I get home and try to help you. -Original Message- From: The DOTNET list will be retired 7/1/02 [mailto:[EMAIL PROTECTED]]On Behalf Of Jeff Roberts Sent: Tuesday, June 25, 2002 12:41 PM To: [EMAIL PROTECTED] Subject: Re: [

Re: [DOTNET] FileStream question

2002-06-25 Thread Jeff Roberts
Thanks Tom. Does your book go into web deployment in detail ? Can you give me a link to where I can buy it ? Thanks again You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

Re: [DOTNET] Callbacks from unmanaged code to managed code

2002-06-25 Thread Axel Heitland
Thanks to Sam, Tibor and Henrik. I'll check that out and post some samples later. My regards Axel -Original Message- From: Henrik Enemark Rasmussen [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 25. Juni 2002 12:50 To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Callbacks from unmanage

Re: [DOTNET] FileStream question

2002-06-25 Thread Tom Archer
Thanks for the interest, Jeff. My book is focused on the C# language and a few select .NET BCL classes that I feel most people would naturually associate with the language. As an example, even though technically the exception classes are not a part of C#, I felt as though most people new to the l

Re: [DOTNET] FileStream question

2002-06-25 Thread Sean Greer (SBI-Chico)
What about this: WebClient wc = new WebClient(); byte[] pageData = wc.DownloadData("http://www.someserver.com/mytestfile.txt";); This has worked for me... Seang -Original Message- From: Jeff Roberts [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 25, 2002 8:53 AM To: [E

Re: [DOTNET] FileStream question

2002-06-25 Thread Marsh, Drew
Jeff Roberts [mailto:[EMAIL PROTECTED]] wrote: > Thanks again ! I need to read a "binary" file into a byte > array, can I do this = with the StreamReader class ? I don't > see a BinaryStreamReader Class ! If it's binary, then you can read it by just using the Stream, which happens to be a Netw

Re: [ADVANCED-DOTNET] Component Design Problem

2002-06-25 Thread Michael Potter
Thanks, I didn't realize that NativeWindow was capable of its own window. "CreateHandle(new CreateParams())" is what I neeeded. BTW: I also peek at the WM_DESTROY message in my loop and jump out of the chain if necessary. That way misuse of the component could not corrupt the chain. I don't know

[ADVANCED-DOTNET] Caching & Business Layer

2002-06-25 Thread Thomas
You would not believe how many times in the past year I've seen people connect their presentation layer to datasets. From books to articles to full on projects. Admittedly its convenient. But I'm not so sure its wise to do that. Isn't the primary purpose of the DS to function as a cache? (Aside f

[DOTNET] Help: Debugger info not generated and not loaded

2002-06-25 Thread Cameron Cameron
All my DLL projects are setup the same to generate debug info, but I get "No Symbols Loaded" message for one of my class libraries and I can't step through. Any thought? Thanks, Cameron _ Get your FREE download of MSN Explorer at

Re: [DOTNET] Help: Debugger info not generated and not loaded

2002-06-25 Thread Steve Johnson
> All my DLL projects are setup the same to generate debug info, but I get > "No > Symbols Loaded" message for one of my class libraries and I can't step > through. Any thought? Is the .pdb file in the same location as the library? Is the source where the .pdb says it should be? -- Steve Johns

Re: [DOTNET] OT: Network links sought

2002-06-25 Thread Dean Cleaver
Mark, I have solved it - but some other admins might want to shut their eyes while I explain the resolution ;-) Basically, I set the DHCP to point to my DNS as the only DNS (not the router/internet). Then, on my DNS server (which is the root for my domain) I deleted the "." zone. This enabled th

Re: [DOTNET] FileStream question

2002-06-25 Thread Greg Reinacker
You don't need to use a StreamReader for this; just use Stream.Read. Greg Reinacker Reinacker & Associates, Inc. http://www.rassoc.com http://www.rassoc.com/gregr/weblog/ -Original Message- From: The DOTNET list will be retired 7/1/02 [mailto:[EMAIL PROTECTED]] On Behalf Of Jeff Roberts

[DOTNET] Questions on VS.NET Designers detecting controls

2002-06-25 Thread Sam Gentile
Hi, I am programatically trying to detect when a Component (System.ComponentModel.Component) or Control is dropped or removed from the form in a C# WinForm project. I know the action goes on in the InitializeComponent method. Something seems to trigger exactly when the new keyword appears in fron

Re: [DOTNET] How to run a Hello world in .NET Framework

2002-06-25 Thread Mitch Denny
Dinesh, As Paul has rightly pointed out. The Inherits attribute on the @ Page directive requires the full class name. FYI .NET doesn't really have any concept of namespaces, if you look at the IL for an application all the class names are fully qualified: System.Security.Cryptography.RSA