.net-1.1

How is IDisposable implemented on FileStream in .Net 1.1

This might seem like a noddy question, but I was looking at this because I heard someone claiming that you must call Close() on a FileStream, even if it is in a using block (and they have code where Close() is being called right at the end of the block). I know that Close() is meant to call Dispose(), but I thought I'd look deeper since...

Making a .NET 2.0 Windows Form Application backward compatible with .NET 1.1

Hi, I have created a Windows Form Application using Visual C# 2008 Express Edition with target as .NET 2.0. Now I need to build this project for .NET 1.1. The problem I am facing is that the designer classes are not supported in .NET 1.1. They use the partial keyword which is not supported in .NET 1.1. What steps do I need to follow to ...

What is a clean/intuitive approach to extending a sealed class in .NET 1.1?

Hey all, I'm in the process of architecting a library that will be used in multiple releases of a product, and part of its job is to augment some of the functionality that doesn't exist in .NET 1.1, since we're required to use it. Probably the best example of this is the String.IsNullOrEmpty method, whose functionality we rely on fairly...

.NET 1.1 WSDL - Unable to use IntPtr (WindowsIdentity.Token) as input param on WebMethod (ASMX Web Service)

We're in a strange situation with a legacy winforms VB.NET 1.1 application using ASMX web services. Trying to send a user Token from a WindowsIdentity object as a parameter to a WebMethod. I will be adding a 'HACK: comment. System.Security.Principal.WindowsIdentity.GetCurrent().Token The token is of type IntPtr, the first problem is t...

Get a boolean value from DataTable

How do I retrieve a Boolean value in dataset, I'm using visual studio 2003,I am trying the following, but it's not working: //if product inactive, don't display, and redirect to main page if((dbDataSet.Tables["productGeneral"].Rows[0]["Active"].Equals(0))) I even tried, but not working: if((dbDataSet.Tables["productGeneral"].R...

Can Failure to Access the URL in an XML Schema or Document Cause my Application to Fail?

I'm usng this: http://schemas.microsoft.com/cdo/configuration/smtpauthenticate The schema is down? My software doesn't work anymore. Gives me a message: Can't access to CDO Message. I'm using Framework 1.1 with mail send authentication and failed. Anyone have solution? ...

Repository pattern with .NET 1.1

What is a typical approach to using the repository pattern with .NET 1.1 (C#)? I'm looking for something along the lines of this Stack Overflow question, except that in .NET 1.1, I don't have generics, so I'm just looking to see if it's possible (I'm sure it is), and how it's typically done. ...

.NET 1.1 and MS SQL 2005 problem

Suddenly I'm getting the following error on all web applications using dotNET 1.1 and trying to access MS SQL 2005. The applications and SQL server run on the same machine. System.Data.SqlClient.SqlException Message: General network error. Check your network documentation. I have googled the following and tried all suggested solution...

NDoc syntax highlighting for CODE block (tag)

I use NDoc 1.3.1 to generate documentation in VS .NET 2003, framework v1.1. For the following block /// <example> /// <code lang="C#" escaped="true"> /// try /// { /// // ... /// } /// catch (Exception ex) /// { /// // ... /// } /// </code> /// </example> in the code file, NDoc produces the contents in the <code> block formatte...

Caching Proxy Design Advice

Hi, I'm relatively new to proxies. I am currently required to design a caching proxy for work. We have a webservice which serves up data based on calls to it, naturally. I am required to create a proxy for a rich client application that caches the results of these calls. The results are basically string names of products identified by a ...

.NET 1.1 DLL Website Access Problems (Access is denied for NON-ADMINS)

We are using the ASP.NET 1.1 version of dtSearch and are having an issue that is affecting our users authenticating with Active Directory (AD). This issue also is affecting another custom, in-house .NET 1.1 DLL in the same websites. When a standard user hits the search after a period of inactivity the site will give the error below. A...

How can I change the mouse cursor image?

Hi, I need to change the cursor image. Whenever the mouse is over my form I need to load my own image from a local path. I am using version 1.1 of the .NET framwork. Here is what I have tried: Cursor = new Cursor(GetType(), Application.StartupPath+ "\\windowfi.cur"); But this throws an exception: Value cannot be null. Paramet...

Pass an object into a UserControl in a repeater? .Net 1

I want to wrap up a chunk of HTML render logic in a User Control. Then I want to pass a custom product object (title, thumbnail, id, etc.) to the UserControl that it can use when it renders. Ideally I want to use this in a repeater (or for loop) and pass the current custom product object into the UC. Every example I've seen has been pas...

URL with no query parameters - How to distinguish.

Env: .NET 1.1 I got into this situation. Where I need to give a URL that someone could redirect them to our page. When they redirect they also need to tell us, what message I need to display on the page. Initially I thought of something like this. http://example.com/a.aspx?reason=100 http://example.com/a.aspx?reason=101 ... http://ex...

split byte[] array

private Arraylist split(byte[] filebytes, int range) { } how to split this filebytes by given range i.e if range is 100 it should split the filebytes by 100kb and put this into the arraylist untill the eof. i have .net framework 1.1 only... thanks in advance. ...

How to generate a UUID for Exchange - using WebDav for appointment creation

I have an web app that is creating appointments for clinicians within a EMR. The clinicians wanted a way to send the created appointments to their outlook calendars as a way to sync appointments to their Palms, Blackberries, etc. I am following this: http://msdn.microsoft.com/en-us/library/aa493903.aspx What I am running into is that ...

will asp run in .net 1.1 framework?

I have an old asp app I am moving to a new server with .net 1.1 Will it run in this environment? ...

Finding COM ports

hi evry one, i write a code(vs 2003,ver 1.1) for listing all the com ports available in a system.Now i want to know which of these com ports are connected to a device,and which one is available. i wrote a dll in vc++ and done it. thnx ...

How to return custom objects with WebServices.

[Problem] Having created a shared library that is to be deployed on a server machine and client machine how do I communicate between the client-server with the classes provided by the library? Transferring the information via webservices does not seem to work as the serialised object returned by the web service is a webservice class whi...

Zip File .Net Framework 1.1

How Can We Zip A File In .Net Framework 1.1 Without Use Any Third Party Control... ...