diff --git a/src/Spring/Spring.Web/Web/Services/WebServiceExporter.cs b/src/Spring/Spring.Web/Web/Services/WebServiceExporter.cs
index ed433050..e24e844b 100644
--- a/src/Spring/Spring.Web/Web/Services/WebServiceExporter.cs
+++ b/src/Spring/Spring.Web/Web/Services/WebServiceExporter.cs
@@ -57,7 +57,6 @@ namespace Spring.Web.Services
///
///
/// Aleksandar Seovic
- [WebServiceBinding(ConformsTo=WsiProfiles.BasicProfile1_1)]
public class WebServiceExporter : IInitializingObject, IObjectFactoryAware, IFactoryObject, IObjectNameAware
{
#region Fields
@@ -500,7 +499,9 @@ namespace Spring.Web.Services
IList attrs = base.GetTypeAttributes(type);
bool containsWebServiceAttribute = false;
+#if NET_2_0
bool containsWebServiceBindingAttribute = false;
+#endif
for (int i = 0; i < attrs.Count; i++)
{
if (IsAttributeMatchingType(attrs[i], typeof(WebServiceAttribute)))