The type or namespace name 'Generic' does not exist in the class or namespace 'System.Collections'

  • Thread starter Thread starter pantagruel
  • Start date Start date
P

pantagruel

Hi,

This is in a windows service in .NET 1.1 I seem to remember reading
somewhere that in .NET 1.1 Windows Services are limited in what
namespaces they can use - is this so? the only thing that seems to be
supported is System.Collections.Specialized.
 
If you're talking about framework object namespaces, the 1.1 framework
is limited (just like all other versions) to namespaces that are
defined in the framework libraries and any externally referenced code.
There are no generics in the 1.1 framework, so you won't find
System.Collections.Generic.

It looks like you may be trying to down-convert 2.0 code into 1.1. If
this is the case, it will not be as trivial as I think you're trying
to make it seem. You'd need not only to replace all of the instances
of things like List<> and Dictionary<> with their 1.1 equivalents, but
also deal with any typing issues that raises.

s}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top