Kaiser07

On compilation, I get the following error:

Error 1 The type or namespace name 'Dts' does not exist in the namespace 'Microsoft.SqlServer' (are you missing an assembly reference ) C:\Notification_Services\Notification_SM\Notification_SM\SendMailTask.cs 4 27 Notification_SM

In the beginning of the file I have this using statement:

using Microsoft.SqlServer.Dts.Runtime;

using Microsoft.SqlServer.Dts.Tasks.SendMailTask;

why it's complaining on Dts




Re: Visual C# General namespace problem - how do I fix this problem?

Peter Ritchie

Be sure to add an assembly reference to your project to following assembly: microsoft.sqlserver.manageddts.dll




Re: Visual C# General namespace problem - how do I fix this problem?

onamika

Since I'm new to .NET in general, is there a way to add a line to AssemblyInfo.cs like this way:

[assembly: AssemblyDts("microsoft.sqlserver.manageddts.dll")]