Develop.com's DOTNET List
Up to: Discussion Lists

  • RSS Syndication
  • Latest Discussions Archive
    Connecting to Sybase using ODBC (3 replies)
    Develop.com's DOTNET List
    Cross Posting this reply since the dotnet list is supposed to be retired today You can only use the OleDb Managed Provider if you have an OLEDB Provider for Sybase. If you are using ODBC, you must use the ODBC Managed Provider. Here's a site with connection strings for all sorts of environments... Here's the typical ODBC Managed Provider Usage: http://www.able consulting.com/ado conn.htm#ODBCManag...
    J# Final (3 replies)
    Develop.com's DOTNET List
    Ummm...isn't this list supposed to have been retired? Thanks, Shawn Wildermuth swildermuth@adoguy.com Original Message From: The DOTNET list will be retired 7/1/02 [mailto:DOTNET@DISCUSS.DEVELOP.COM] On Behalf Of Thomas Scheidegger Sent: Monday, July 01, 2002 10:12 AM To: DOTNET@DISCUSS.DEVELOP.COM Subject: [DOTNET] J# Final J# Final PR: http://www.microsoft.com/presspass/Press/2002/Jul02/07 01Vis...
    Designer Host (7 replies)
    Develop.com's DOTNET List
    Anyone have any insight on building/leveraging a designer host? I am finding plenty of resources for customizing design time behavior of components and their respective designers, but very little on creating/leveraging the actual host. Specifically, usage pattern of ParentControlDesigner (which seems to behave as a designer host canvas?), DocumentDesigner and/or ComponentDocumentDesigner (which im...
    Setting Webservice url of proxy object on the fly (2 replies)
    Develop.com's DOTNET List
    You can use wsdl.exe to create proxy classes for your service. Then modify the source code of those classes to accept url upon construction or via a property/method :) Original Message From: The DOTNET list will be retired 7/1/02 [mailto:DOTNET@DISCUSS.DEVELOP.COM] On Behalf Of Mattias Konradsson Sent: Friday, June 28, 2002 10:03 PM To: DOTNET@DISCUSS.DEVELOP.COM Subject: [DOTNET] Setting Webservi...
    Using Open File Dialog to Select a Directory (2 replies)
    Develop.com's DOTNET List
    Did you ever figure out how to do this? On Thu, 26 Apr 2001 08:54:43 0700, Marcey, Joel I joel.i.marcey@INTEL.COM wrote: Greetings, Is there a way to using the OpenFileDialog component to select a directory instead of file? Or is there another component to use to do this? Basically, I want a user to have a visual way to select a directory. An example where I am using this is when I want ask a user...
    Server side controls vs client side script. (7 replies)
    Develop.com's DOTNET List
    Some client side code purist argue that ASP.NET's server side controls put to much of a load on the server and cause to many round trips to the server. When you are pitching ASP.NET and run into these arguments how do you answer these criticisms of ASP.NET? I would say that an ASP.NET app that makes more round trips to the server than the equivalent classic ASP or CGI app is improperly designed. R...
    Hi, Possible - automate MsWord using C# ? (2 replies)
    Develop.com's DOTNET List
    http://www.gotdotnet.com/team/csharp/information/default.aspx has a whitepaper titled "Using Microsoft Office from C#" by Kerry Loynd that you can download.It includes a Word doc called "Word and Excel with CSharp.doc" and also some C# source code. I haven't had time to really explore it myself but I think it might include what you are looking for. Graham Original Message From: The DOTNET list wil...
    How to call C++ COM object from C# (3 replies)
    Develop.com's DOTNET List
    I'm not an interop expert, but I think this is not possible. .Net uses typelibs for interop and typelibs can only marshal automation compatible interfaces. This is not specific to .NET when you try to use your TLB from a COM Client you'll see that the sizeof disappears there as well. Use a SafeArray instead and you're on the right track however there *might* be a way to let the marshaller handle t...
    Using Verign Keypair in .NET Cryptography (4 replies)
    Develop.com's DOTNET List
    This looks more like a Base64 certificate. Where is the private key corresponding to this certificate? Anyway, the private key will be coded in some blob format (this may be pvk spc files for example). If you can import the certificate to a certificate store and the private key into a key container, then you can construct the RSACryptoServiceProvider instance passing the correct CspParameters. The...
    .NET Inadequacies (3 replies)
    Develop.com's DOTNET List
    Jeff Roberts [mailto:jeffr@NEWHARTSYSTEMS.COM] wrote: That's all I have ! It is not much considering the amount of c code I have ported ! If anyone can tell me how to solve these issues in managed code that will run in the Internet security zone I would be a very very happy camper ! Jeff, By overriding WndProc and P/Invoke you ARE solving those problems the right way. It is true that your app won'...
    Databinding and Binding Context (2 replies)
    Develop.com's DOTNET List
    Steve, What are you binding to? If it is related to ADO.NET you should be able to use 2 DataViews over the same datasource. Look at System.Data.DataView Original Message From: Steve Wallace [mailto:swallac@COLUMBUS.RR.COM] Sent: Thursday, June 27, 2002 12:49 AM To: DOTNET@DISCUSS.DEVELOP.COM Subject: [DOTNET] Databinding and Binding Context I have two controls on a form one is a grid and the other...
    Trace Access Database Activity (7 replies)
    Develop.com's DOTNET List
    Hi Avi, Depending on your back end, you can create a trace. With SQL Server, for instance, if you click on your server of choice in the Enterprise Manager, you can then select the "Create Trace" option. Check out "Books Online" for more information. HTH, Mat Original Message From: Avi Nahir [mailto:avin@BEZEQINT.NET] Sent: Wednesday, June 26, 2002 12:33 PM To: DOTNET@DISCUSS.DEVELOP.COM Subject: [...
    Using Verign Keypair in .NET Cryptography (2 replies)
    Develop.com's DOTNET List
    I have tried securing webservice request and response with asyemmtric algorithms. I used RSACryptoService Provider. Evrything works fine. But now I have a question. How do I use the public and private key pairs of the user(he might have purchased it from Verisign)? 1. How to get such keypairs from verisign and using it in RSA Keypairs? 2. Are the formats of the .NET RSA Keypair and Verisgn RSA KEy...
    SqlCommand Timeout (2 replies)
    Develop.com's DOTNET List
    Does setting SqlCommand.CommandTimeout not do what you want? Bob Beauchemin bobb@develop.com Original Message From: Nischal Muthana [mailto:nischal muthana@YAHOO.COM] Sent: Wednesday, June 26, 2002 9:34 AM To: DOTNET@DISCUSS.DEVELOP.COM Subject: [DOTNET] SqlCommand Timeout Hi All I am writing a small C# program which uses a SqlCommand object to insert a row into the Table in the database. The row ...
    object pooling (5 replies)
    Develop.com's DOTNET List
    Jeff Mangan [mailto:asp jobs@HOTMAIL.COM] wrote: We are interested in using object pooling, and it looks like the only thing I have found is using System.EnterpriseServices and Com . Is this enough justification for using it, or how can we determine if there will be more overhead in using System.EnterpriseServices then we will have by instantiating the object over and over again. I keep hearing "d...
    ConfigurationSettings.GetConfig (3 replies)
    Develop.com's DOTNET List
    Kerry Whelan [mailto:whelan kerry@HOTMAIL.COM] 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 [ .NET MVP | weblog: http://radio.weblogs.com/0104813/ ] You can read messages from the DOTNET archive, u...
    Last! (NOT) (24 replies)
    Develop.com's DOTNET List
    shoots *Bang!* /shoots Original Message From: The DOTNET list is retired as of 7/1/02 [mailto:DOTNET@DISCUSS.DEVELOP.COM] On Behalf Of Alois Reisinger Sent: Tuesday, July 02, 2002 6:16 AM To: DOTNET@DISCUSS.DEVELOP.COM Subject: Re: Last! (NOT) Information from the mail header Sender: The DOTNET list is retired as of 7/1/02 DOTNET@DISCUSS.DEVELOP.COM Poster: Alois Reisinger a.reisinger@GBS SOLUTION...
    FileStream question (10 replies)
    Develop.com's DOTNET List
    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://www.microsoft.com"; Uri uri new Uri(s); WebRequest req WebRequest.Create(uri); WebResponse resp req.GetResponse(); Stream str resp.GetResponseStream(); ...
    ASP.NET Problem (2 replies)
    Develop.com's DOTNET List
    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 does NOT go in the \bin directory but the assembly (dll) that the code behind is in does. This can be a l...
    Security Zones (2 replies)
    Develop.com's DOTNET List
    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 permissions assigned to an assembly of your choosing. This is really cool when playing with the various sec...
    ADO.NET Datasets (3 replies)
    Develop.com's DOTNET List
    [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 2) get the data 3) disconnect Your application then loops through the dataset to process the data. This lea...
    How to run a Hello world in .NET Framework (7 replies)
    Develop.com's DOTNET List
    You should take a look at this one: http://www.gotdotnet.com Regards, Rune Christensen Original Message From: Mathew James [mailto:mjames@CONCIO.COM] Sent: 25. juni 2002 09:12 To: DOTNET@DISCUSS.DEVELOP.COM Subject: [DOTNET] How to run a Hello world in .NET Framework Hi all, I have recently downloaded .NET Framework(21 MB) from Microsoft site and installed in my PC (Win2k). Now How should I start ...
    Crypto Problem (2 replies, VIP)
    Develop.com's DOTNET List
    I have created a webservice. When I try to use "RSACryptoServiceProvider" in this webservice I am getting Exception Exception : CryptoAPI cryptographic service provider (CSP) for this implementation could not be acquired. What is this error? Dinesh Upare It probably has to do with the rights to the X:\Documents and Settings\All Users\Application Data\Microsoft\Crypto\RSA\MachineKeys directory, mak...
    OT: Network links sought (4 replies)
    Develop.com's DOTNET List
    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:DOTNET@DISCUSS.DEVELOP.COM] On Behalf Of Dean Cleaver Sent: Tuesday, June 25, 2002 7:07 AM To: DOTNET@DISCUSS.DEVELOP.COM Subject: [DOTNET] OT: Network links sought Can anyone su...
    VS.NET Extensibility, AppDomains & Assembly Unloading (2 replies)
    Develop.com's DOTNET List
    On Mon, 17 Jun 2002 13:34:36 0700, Andres Aguiar aaguiar@ARTECH.COM.UY 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 exception when we get the 'remote' instance in the following line: remoteLoader (RemoteLoader) appDomain.Crea...
    A bug in Abort()? (2 replies)
    Develop.com's DOTNET List
    Form the abort method documentation: Raises a ThreadAbortException in the thread on which it is invoked, to begin the process of terminating the thread. Calling this method usually terminates the thread. You have to manage the exception. Pierre Pierre Greborio pierre@pierregreborio.it http://www.pierregreborio.it Original Message From: The DOTNET list will be retired 7/1/02 [mailto:DOTNET@DISCUSS....
    XPath Query using set operators (2 replies)
    Develop.com's DOTNET List
    The XPath expression is not valid. If you want all the book elements in the file /books/book will do it. if you want all of the name, author, and publication elements that have book as a parent then /books/book/name | /books/book/author | /book/books/publication will do it. If you want all the book elements that have at least one of a name, author, or publication element as a child the /books/book...
    Callbacks from unmanaged code to managed code (5 replies)
    Develop.com's DOTNET List
    Can you share code? Original Message From: Axel Heitland [mailto:heitland@INHERENT.DE] Sent: Monday, June 24, 2002 6:07 PM To: DOTNET@DISCUSS.DEVELOP.COM Subject: [DOTNET] Callbacks from unmanaged code to managed code Dear list, It's quite easy to call unmanaged functions from MC and it's easy to hold a reference to a managed type from unmanaged code as well. But how the heck can I call a managed ...
    .NET Zero Deployment (2 replies)
    Develop.com's DOTNET List
    The runtime Framework needs to be installed on the client (will not work on Win95): Watch for URL wrap: http://msdn.microsoft.com/downloads/default.asp?URL /downloads/sample.asp?url /MSDN FILES/027/001/829/msdncompositedoc.xml Be aware also that the app will be running in a different security zone if you load from the Internet or an Intranet than one launched from the user's PC directly, so be sur...
    Security Problems with Dynamically Loaded Assemblies (2 replies)
    Develop.com's DOTNET List
    In answering your question, I have to make a couple of assumptions. The first is that you plan to distribute your application to other users. The second is that you will not have administrative control over your users' machines. As you have indirectly discovered, code that executes from a file share has fewer privileges (by default) than code that executes from the local hard drive. This is called...
    Security Problems with Dynamically Loaded Assemblies (2 replies)
    Develop.com's DOTNET List
    Hi List, I am encountering interesting security problems with my VB.NET application. I have an MDI form that instantiates a utility object for things like program load, message passing, etc. The MDI form uses System.Reflection.Assembly.LoadFrom() to dynamically load an assembly off a server. This is connected to the utility object and calls various methods on it. I get an error thrown when the loa...
    XmlSerialisation (3 replies)
    Develop.com's DOTNET List
    Robert, Generally, it would help if you posted specifics about the exception youare catching, together with some code to reproduce the problem. I am gueesing, however, that you would see the following message upon examing the Message property if the InnerException of the exception you are catching: The property 'Source' on type 'System.Exception' cannot be serialized because it is decorated with d...
    reading from a stream (2 replies)
    Develop.com's DOTNET List
    Use a StreamReader object. Here's an example for reading the entire contents of a file into a string. StreamReader sr new StreamReader(@"c:\myfile.txt"); string s sr.ReadToEnd(); sr.Close(); 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:DOTNET@DISCUSS.DEVELOP.COM] On Behalf...
    can't launch .net framework configuration (6 replies)
    Develop.com's DOTNET List
    Bob, It's working fine for me here on XP... Not that it helps, but you know it's not just a platform issue. Dino Original Message From: The DOTNET list will be retired 7/1/02 [mailto:DOTNET@DISCUSS.DEVELOP.COM] On Behalf Of Bob Edwards Sent: Sunday, 23 June 2002 00:54 To: DOTNET@DISCUSS.DEVELOP.COM Subject: [DOTNET] can't launch .net framework configuration I'm running XP and VS.NET. When I click ...
    XslTransform & XmlReader with html "issue" (2 replies)
    Develop.com's DOTNET List
    Steven Livingstone [mailto:s.livingstone@BTINTERNET.COM] wrote: I dunno if this is a bug of some kind, but i would love either the answer or solution to how to do this. I use an Xslt with the XslTransform class to output an Html document straight into a XmlReader instance. When i try to use the ReadOuterXml() method to get all the code in the reader i cannot it says it is not an instance. If i use...
    XmlTextReader with an XPath (2 replies)
    Develop.com's DOTNET List
    Untested, but this should give you what you want (2 changes to your code): string strStreet ""; FileStream fs new FileStream(myXml.xml",FileMode.Open); XmlTextReader myReader new XmlTextReader(fs); while(myReader.Read()) { if(myReader.NodeType XmlNodeType.Element) { switch(myReader.Name) { case "street": strStreet myReader.Value; } } } Richard Original Message From: The DOTNET list will be retired...
    Load an image from a resource file (2 replies)
    Develop.com's DOTNET List
    You could add your bitmap to your project, change its property to embeded resource, and then in code: Image img new Bitmap(this.GetType(), "test.bmp"); Original Message From: The DOTNET list will be retired 7/1/02 [mailto:DOTNET@DISCUSS.DEVELOP.COM] On Behalf Of Dean Cleaver Sent: Friday, June 21, 2002 9:12 AM To: DOTNET@DISCUSS.DEVELOP.COM Subject: [DOTNET] Load an image from a resource file I've...
    Proxy Authentication Required (3 replies)
    Develop.com's DOTNET List
    ...What I have not been able to determine is how to send the required authentication information to the proxy server. Add a Proxy Authentication header. Format: Username:Password (Base64 encoded) Steve Johnson 3t Systems You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.
    Managed provider for Oracle (5 replies)
    Develop.com's DOTNET List
    No. Visual Studio Server Explorer is hardcoded to use OLE DB (hence, any OLE DB data source). It is also special cased to, when you select the SQL Server OLE DB provider, use the SqlClient data provider instead (in most wizards). You can also use Server Explorer to explore (only explore) an ODBC data source, but you can't use any of the wizards with an Odbc data source and the Odbc data provider. ...
    Redirect problems (2 replies)
    Develop.com's DOTNET List
    Karen Healey [mailto:khealey@ATTBI.COM] wrote: I have relative redirects in my code like this: Response.Redirect("~/DesktopDefault.aspx?tabindex " tabIndex "&tabid " tabId "&menuid " menuItem.MenuItemId.ToString() "&menuindex " menu.SelectedIndex); Just get rid of the ~, like so: "/DesktopDefault.aspx?...etc..." HTH, Drew [ .NET MVP | weblog: http://radio.weblogs.com/0104813/ ] You can read messag...
    WindowsForms don't works correctly with multithreading? (3 replies)
    Develop.com's DOTNET List
    If you are going to update the UI from a thread which does not own the UI elements, you need to use Control.Invoke to marshal between the threads. Jacob A. Grass Original Message From: Luca Marchesi [mailto:lucamarchesi50@LIBERO.IT] Sent: Thursday, June 20, 2002 5:01 AM To: DOTNET@DISCUSS.DEVELOP.COM Subject: [DOTNET] WindowsForms don't works correctly with multithreading? You know that WindowsFor...
    Change MDI BackColor (4 replies)
    Develop.com's DOTNET List
    Hi Dinesh ! After calling InitializeComponent(); write following code in constructor foreach(Control con in this.Controls) { if(con is MdiClient) { con.BackColor this.BackColor; con.BackgroundImage this.BackgroundImage; } } HTH... Shishir Kumar Mishra Agni Software (P) Ltd. www.agnisoft.com Vidya Dadaati Viniyam Original Message From: "Dinesh Upare" dinesh upare@GMX.NET To: DOTNET@DISCUSS.DEVELOP....
    Timbuktu and GDI+ (2 replies)
    Develop.com's DOTNET List
    Has anyone ever had any trouble with a windows forms app running with Timbuktu remote control software? I just tested my app while someone was controlling the PC with Timebuktu. It was bad, very bad. The main form came up, except a label on it had a big red X through it, instead of the usual text. Then the "An unhandled exception..." screen with details, continue, quit buttons pops up. Except all ...
    Windows CE support (3 replies)
    Develop.com's DOTNET List
    With Smart Device Extensions add in, yes. You can nab it here: http://msdn.microsoft.com/vstudio/device/sdebeta.asp j Original Message From: Jeff Roberts [mailto:jeffr@NEWHARTSYSTEMS.COM] Sent: June 19, 2002 3:18 PM To: DOTNET@DISCUSS.DEVELOP.COM Subject: [DOTNET] Windows CE support Does .NET run on the Windows CE operating system ? thank you You can read messages from the DOTNET archive, unsubscr...
    STA to MTA (once more) (2 replies)
    Develop.com's DOTNET List
    Am I right in thinking that you are presuming that a RCW is only callable from a single thread? That's not actually true in .NET you can pass a reference to a COM object around from thread to thread and it just works. The CLR does all the marshalling for you. I think the silence may well speak volumes about the comprehensiveness of interop, but not in the way you think RCWs are callable from any C...
    Alernative for Gettype (3 replies)
    Develop.com's DOTNET List
    What you try to do, getting the type of System, is not valid, since System is not a type but a Namespace. If you want to get the type of a real type, e.g. Control, you can use Dim ty as Type GetType(System.Windows.Forms.Control) There is an alternative: If you hold a reference to an object, you can use the following: Dim ctrl As System.Windows.Forms.Control Dim ty As Type ctrl.GetType Urs Ursprüng...
    Populating a dropdown listbox problem! (4 replies)
    Develop.com's DOTNET List
    Well it's because the add method requires a listitem object and not a string...here If you're not using data binding and want a quick fix add this after the first { in your while loop ListItem li new ListItem(); li.Value sEmployClass; li.Text sEmployClass; ddemployeeClassification.Items.Add(li); There's more that could be done, but this should fix your problem for now! Wayne Lee Evident Systems Lt...
    Urgent pls -finding the assembly name from namespace (13 replies)
    Develop.com's DOTNET List
    Not possible, because namespaces can appear in multiple assemblies. BTW please don't mark posts as "urgent", as doing so is bad netiquette. Also, it won't make the slightest bit of difference, except to annoy your fellow subscribers. G. Graeme Foster (graeme.foster@aston.tv) Principal Software Engineer Aston Broadcast Systems Ltd. (http://www.aston.tv) Disclaimer: I really don't have a clue what I...
    Interesting Problem, what am I missing (WAS: Urgent pls -finding the assembly name from namespace). (7 replies)
    Develop.com's DOTNET List
    hi Thanks for the code. The problem is I am using system.ComponentModel.component the reference type is nothing .. how will i get the assembly name for this.. my requirement is like this if the user says imports Microsoft.Biztalk.btsconfig I have to find the assembly name from the microsoft.biztalk.btsconfig and i should add the assembly name to the .net script engine What will i do if the referen...
    Change Directory (3 replies)
    Develop.com's DOTNET List
    You need to use Environment.CurrentDirectory property. Environment.CurrentDirectory path of new directory Original Message From: Eric Shiau [mailto:eshiau@LEHMAN.COM] Sent: Monday, June 17, 2002 9:42 AM To: DOTNET@DISCUSS.DEVELOP.COM Subject: [DOTNET] Change Directory My app. requires create a lot of files on a certain directory. My immediate thought is first change to that certain directory, then...
    Visit the archive for messages from this site.
  • August 2000 (1 item)
  • June 2001 (384 items)
  • July 2001 (673 items)
  • August 2001 (540 items)
  • September 2001 (288 items)
  • October 2001 (459 items)
  • November 2001 (349 items)
  • January 2002 (69 items)
  • February 2002 (502 items)
  • March 2002 (105 items)
  • April 2002 (288 items)
  • May 2002 (364 items)
  • June 2002 (178 items)
  • July 2002 (17 items)
    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