creating a Field of type File and Attachments in document library and getting exception error as mentioned above.Please help me out thanks in advance..
Guid listid1 = web.Lists.Add("TESTLIBRARY", "THIS LIST IS FOR TESTING",
SPListTemplateType.DocumentLibrary);
SPList documentlibrary = web.Lists["TESTLIBRARY"];
documentlibrary.ContentTypesEnabled = true;
documentlibrary.Fields.Add("Employee Attachments", SPFieldType.File, false);
documentlibrary.Update();