"The XML element 'EnableTheming' from namespace 'http://tempuri.org/'
is
already present in the current scope"
I created a Web Service: I imported System.Data.Sql Client so I could
access SQL server tables programmaticall y. The web service builds and
deploys with no problems. When I try to add the corresponding Web
Reference to the Web Site project I get the error listed below.
I am able to create other Web Services on the same server and I am able
to add Web Referneces to them. I have narrowed it down to the "Imports
System.Data.Sql Client" statement, I think. What's up with this?
I changed tempuri.org to something I have control over and it had no
effect.
Thanks,
Bill
Cincinnati, OH USA
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Server Error in '/foo' Application.
--------------------------------------------------------------------------------
The XML element 'EnableTheming' from namespace 'http://tempuri.org/' is
already present in the current scope. Use XML attributes to specify
another XML name or namespace for the element.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.
Exception Details: System.InvalidO perationExcepti on: The XML element
'EnableTheming' from namespace 'http://tempuri.org/' is already present
in the current scope. Use XML attributes to specify another XML name or
namespace for the element.
Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace below.
Stack Trace:
[InvalidOperatio nException: The XML element 'EnableTheming' from
namespace 'http://tempuri.org/' is already present in the current
scope. Use XML attributes to specify another XML name or namespace for
the element.]
System.Xml.Seri alization.XmlRe flectionImporte r.AddUniqueAcce ssor(INameScope
scope, Accessor accessor) +771933
System.Xml.Seri alization.XmlRe flectionImporte r.AddUniqueAcce ssor(MemberMapp ing
member, INameScope elements, INameScope attributes, Boolean isSequence)
+88
System.Xml.Seri alization.XmlRe flectionImporte r.ImportStructL ikeMapping(Stru ctModel
model, String ns, Boolean openModel, XmlAttributes a) +2097
[InvalidOperatio nException: There was an error reflecting property
'EnableTheming' .]
System.Xml.Seri alization.XmlRe flectionImporte r.ImportStructL ikeMapping(Stru ctModel
model, String ns, Boolean openModel, XmlAttributes a) +2693
System.Xml.Seri alization.XmlRe flectionImporte r.ImportStructL ikeMapping(Stru ctModel
model, String ns, Boolean openModel, XmlAttributes a) +791
System.Xml.Seri alization.XmlRe flectionImporte r.ImportTypeMap ping(TypeModel
model, String ns, ImportContext context, String dataType, XmlAttributes
a, Boolean repeats, Boolean openModel) +638
[InvalidOperatio nException: There was an error reflecting type
'System.Web.UI. Page'.]
System.Xml.Seri alization.XmlRe flectionImporte r.ImportTypeMap ping(TypeModel
model, String ns, ImportContext context, String dataType, XmlAttributes
a, Boolean repeats, Boolean openModel) +1533
System.Xml.Seri alization.XmlRe flectionImporte r.ImportAccesso rMapping(Member Mapping
accessor, FieldModel model, XmlAttributes a, String ns, Type
choiceIdentifie rType, Boolean rpc, Boolean openModel) +11213
System.Xml.Seri alization.XmlRe flectionImporte r.ImportFieldMa pping(StructMod el
parent, FieldModel model, XmlAttributes a, String ns) +136
System.Xml.Seri alization.XmlRe flectionImporte r.ImportStructL ikeMapping(Stru ctModel
model, String ns, Boolean openModel, XmlAttributes a) +1824
[InvalidOperatio nException: There was an error reflecting property
'Page'.]
System.Xml.Seri alization.XmlRe flectionImporte r.ImportStructL ikeMapping(Stru ctModel
model, String ns, Boolean openModel, XmlAttributes a) +2693
System.Xml.Seri alization.XmlRe flectionImporte r.ImportStructL ikeMapping(Stru ctModel
model, String ns, Boolean openModel, XmlAttributes a) +791
System.Xml.Seri alization.XmlRe flectionImporte r.ImportStructL ikeMapping(Stru ctModel
model, String ns, Boolean openModel, XmlAttributes a) +791
System.Xml.Seri alization.XmlRe flectionImporte r.ImportStructL ikeMapping(Stru ctModel
model, String ns, Boolean openModel, XmlAttributes a) +791
System.Xml.Seri alization.XmlRe flectionImporte r.ImportStructL ikeMapping(Stru ctModel
model, String ns, Boolean openModel, XmlAttributes a) +791
System.Xml.Seri alization.XmlRe flectionImporte r.ImportStructL ikeMapping(Stru ctModel
model, String ns, Boolean openModel, XmlAttributes a) +791
System.Xml.Seri alization.XmlRe flectionImporte r.ImportTypeMap ping(TypeModel
model, String ns, ImportContext context, String dataType, XmlAttributes
a, Boolean repeats, Boolean openModel) +638
[InvalidOperatio nException: There was an error reflecting type
'System.Web.UI. WebControls.Lis tBox'.]
System.Xml.Seri alization.XmlRe flectionImporte r.ImportTypeMap ping(TypeModel
model, String ns, ImportContext context, String dataType, XmlAttributes
a, Boolean repeats, Boolean openModel) +1533
System.Xml.Seri alization.XmlRe flectionImporte r.ImportAccesso rMapping(Member Mapping
accessor, FieldModel model, XmlAttributes a, String ns, Type
choiceIdentifie rType, Boolean rpc, Boolean openModel) +11213
System.Xml.Seri alization.XmlRe flectionImporte r.ImportMemberM apping(XmlRefle ctionMember
xmlReflectionMe mber, String ns, XmlReflectionMe mber[]
xmlReflectionMe mbers, Boolean rpc, Boolean openModel) +977
System.Xml.Seri alization.XmlRe flectionImporte r.ImportMembers Mapping(XmlRefl ectionMember[]
xmlReflectionMe mbers, String ns, Boolean hasWrapperEleme nt, Boolean
rpc, Boolean openModel) +278
[InvalidOperatio nException: There was an error reflecting 'pListBox'.]
System.Xml.Seri alization.XmlRe flectionImporte r.ImportMembers Mapping(XmlRefl ectionMember[]
xmlReflectionMe mbers, String ns, Boolean hasWrapperEleme nt, Boolean
rpc, Boolean openModel) +877
System.Xml.Seri alization.XmlRe flectionImporte r.ImportMembers Mapping(String
elementName, String ns, XmlReflectionMe mber[] members, Boolean
hasWrapperEleme nt, Boolean rpc, Boolean openModel, XmlMappingAcces s
access) +111
System.Web.Serv ices.Protocols. SoapReflector.I mportMembersMap ping(XmlReflect ionImporter
xmlImporter, SoapReflectionI mporter soapImporter, Boolean
serviceDefaultI sEncoded, Boolean rpc, SoapBindingUse use,
SoapParameterSt yle paramStyle, String elementName, String
elementNamespac e, Boolean nsIsDefault, XmlReflectionMe mber[] members,
Boolean validate, Boolean openModel, String key, Boolean writeAccess)
+203
System.Web.Serv ices.Protocols. SoapReflector.R eflectMethod(Lo gicalMethodInfo
methodInfo, Boolean client, XmlReflectionIm porter xmlImporter,
SoapReflectionI mporter soapImporter, String defaultNs) +2460
[InvalidOperatio nException: Method Service.LoadLis tBox can not be
reflected.]
System.Web.Serv ices.Protocols. SoapReflector.R eflectMethod(Lo gicalMethodInfo
methodInfo, Boolean client, XmlReflectionIm porter xmlImporter,
SoapReflectionI mporter soapImporter, String defaultNs) +6904
System.Web.Serv ices.Descriptio n.SoapProtocolR eflector.Reflec tMethod()
+133
System.Web.Serv ices.Descriptio n.ProtocolRefle ctor.ReflectBin ding(ReflectedB inding
reflectedBindin g) +2760
System.Web.Serv ices.Descriptio n.ProtocolRefle ctor.Reflect() +739
System.Web.Serv ices.Descriptio n.ServiceDescri ptionReflector. ReflectInternal (ProtocolReflec tor[]
reflectors) +621
System.Web.Serv ices.Descriptio n.ServiceDescri ptionReflector. Reflect(Type
type, String url) +117
System.Web.Serv ices.Protocols. DocumentationSe rverType..ctor( Type
type, String uri) +159
System.Web.Serv ices.Protocols. DocumentationSe rverProtocol.In itialize()
+336
System.Web.Serv ices.Protocols. ServerProtocolF actory.Create(T ype
type, HttpContext context, HttpRequest request, HttpResponse response,
Boolean& abortProcessing ) +99
[InvalidOperatio nException: Unable to handle request.]
System.Web.Serv ices.Protocols. ServerProtocolF actory.Create(T ype
type, HttpContext context, HttpRequest request, HttpResponse response,
Boolean& abortProcessing ) +258
System.Web.Serv ices.Protocols. WebServiceHandl erFactory.CoreG etHandler(Type
type, HttpContext context, HttpRequest request, HttpResponse response)
+90
[InvalidOperatio nException: Failed to handle request.]
System.Web.Serv ices.Protocols. WebServiceHandl erFactory.CoreG etHandler(Type
type, HttpContext context, HttpRequest request, HttpResponse response)
+237
System.Web.Serv ices.Protocols. WebServiceHandl erFactory.GetHa ndler(HttpConte xt
context, String verb, String url, String filePath) +104
System.Web.Http Application.Map HttpHandler(Htt pContext context,
String requestType, VirtualPath path, String pathTranslated, Boolean
useAppConfig) +175
System.Web.MapH andlerExecution Step.System.Web .HttpApplicatio n.IExecutionSte p.Execute()
+120
System.Web.Http Application.Exe cuteStep(IExecu tionStep step, Boolean&
completedSynchr onously) +155
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.507 27.42;
ASP.NET Version:2.0.507 27.42
is
already present in the current scope"
I created a Web Service: I imported System.Data.Sql Client so I could
access SQL server tables programmaticall y. The web service builds and
deploys with no problems. When I try to add the corresponding Web
Reference to the Web Site project I get the error listed below.
I am able to create other Web Services on the same server and I am able
to add Web Referneces to them. I have narrowed it down to the "Imports
System.Data.Sql Client" statement, I think. What's up with this?
I changed tempuri.org to something I have control over and it had no
effect.
Thanks,
Bill
Cincinnati, OH USA
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Server Error in '/foo' Application.
--------------------------------------------------------------------------------
The XML element 'EnableTheming' from namespace 'http://tempuri.org/' is
already present in the current scope. Use XML attributes to specify
another XML name or namespace for the element.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.
Exception Details: System.InvalidO perationExcepti on: The XML element
'EnableTheming' from namespace 'http://tempuri.org/' is already present
in the current scope. Use XML attributes to specify another XML name or
namespace for the element.
Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace below.
Stack Trace:
[InvalidOperatio nException: The XML element 'EnableTheming' from
namespace 'http://tempuri.org/' is already present in the current
scope. Use XML attributes to specify another XML name or namespace for
the element.]
System.Xml.Seri alization.XmlRe flectionImporte r.AddUniqueAcce ssor(INameScope
scope, Accessor accessor) +771933
System.Xml.Seri alization.XmlRe flectionImporte r.AddUniqueAcce ssor(MemberMapp ing
member, INameScope elements, INameScope attributes, Boolean isSequence)
+88
System.Xml.Seri alization.XmlRe flectionImporte r.ImportStructL ikeMapping(Stru ctModel
model, String ns, Boolean openModel, XmlAttributes a) +2097
[InvalidOperatio nException: There was an error reflecting property
'EnableTheming' .]
System.Xml.Seri alization.XmlRe flectionImporte r.ImportStructL ikeMapping(Stru ctModel
model, String ns, Boolean openModel, XmlAttributes a) +2693
System.Xml.Seri alization.XmlRe flectionImporte r.ImportStructL ikeMapping(Stru ctModel
model, String ns, Boolean openModel, XmlAttributes a) +791
System.Xml.Seri alization.XmlRe flectionImporte r.ImportTypeMap ping(TypeModel
model, String ns, ImportContext context, String dataType, XmlAttributes
a, Boolean repeats, Boolean openModel) +638
[InvalidOperatio nException: There was an error reflecting type
'System.Web.UI. Page'.]
System.Xml.Seri alization.XmlRe flectionImporte r.ImportTypeMap ping(TypeModel
model, String ns, ImportContext context, String dataType, XmlAttributes
a, Boolean repeats, Boolean openModel) +1533
System.Xml.Seri alization.XmlRe flectionImporte r.ImportAccesso rMapping(Member Mapping
accessor, FieldModel model, XmlAttributes a, String ns, Type
choiceIdentifie rType, Boolean rpc, Boolean openModel) +11213
System.Xml.Seri alization.XmlRe flectionImporte r.ImportFieldMa pping(StructMod el
parent, FieldModel model, XmlAttributes a, String ns) +136
System.Xml.Seri alization.XmlRe flectionImporte r.ImportStructL ikeMapping(Stru ctModel
model, String ns, Boolean openModel, XmlAttributes a) +1824
[InvalidOperatio nException: There was an error reflecting property
'Page'.]
System.Xml.Seri alization.XmlRe flectionImporte r.ImportStructL ikeMapping(Stru ctModel
model, String ns, Boolean openModel, XmlAttributes a) +2693
System.Xml.Seri alization.XmlRe flectionImporte r.ImportStructL ikeMapping(Stru ctModel
model, String ns, Boolean openModel, XmlAttributes a) +791
System.Xml.Seri alization.XmlRe flectionImporte r.ImportStructL ikeMapping(Stru ctModel
model, String ns, Boolean openModel, XmlAttributes a) +791
System.Xml.Seri alization.XmlRe flectionImporte r.ImportStructL ikeMapping(Stru ctModel
model, String ns, Boolean openModel, XmlAttributes a) +791
System.Xml.Seri alization.XmlRe flectionImporte r.ImportStructL ikeMapping(Stru ctModel
model, String ns, Boolean openModel, XmlAttributes a) +791
System.Xml.Seri alization.XmlRe flectionImporte r.ImportStructL ikeMapping(Stru ctModel
model, String ns, Boolean openModel, XmlAttributes a) +791
System.Xml.Seri alization.XmlRe flectionImporte r.ImportTypeMap ping(TypeModel
model, String ns, ImportContext context, String dataType, XmlAttributes
a, Boolean repeats, Boolean openModel) +638
[InvalidOperatio nException: There was an error reflecting type
'System.Web.UI. WebControls.Lis tBox'.]
System.Xml.Seri alization.XmlRe flectionImporte r.ImportTypeMap ping(TypeModel
model, String ns, ImportContext context, String dataType, XmlAttributes
a, Boolean repeats, Boolean openModel) +1533
System.Xml.Seri alization.XmlRe flectionImporte r.ImportAccesso rMapping(Member Mapping
accessor, FieldModel model, XmlAttributes a, String ns, Type
choiceIdentifie rType, Boolean rpc, Boolean openModel) +11213
System.Xml.Seri alization.XmlRe flectionImporte r.ImportMemberM apping(XmlRefle ctionMember
xmlReflectionMe mber, String ns, XmlReflectionMe mber[]
xmlReflectionMe mbers, Boolean rpc, Boolean openModel) +977
System.Xml.Seri alization.XmlRe flectionImporte r.ImportMembers Mapping(XmlRefl ectionMember[]
xmlReflectionMe mbers, String ns, Boolean hasWrapperEleme nt, Boolean
rpc, Boolean openModel) +278
[InvalidOperatio nException: There was an error reflecting 'pListBox'.]
System.Xml.Seri alization.XmlRe flectionImporte r.ImportMembers Mapping(XmlRefl ectionMember[]
xmlReflectionMe mbers, String ns, Boolean hasWrapperEleme nt, Boolean
rpc, Boolean openModel) +877
System.Xml.Seri alization.XmlRe flectionImporte r.ImportMembers Mapping(String
elementName, String ns, XmlReflectionMe mber[] members, Boolean
hasWrapperEleme nt, Boolean rpc, Boolean openModel, XmlMappingAcces s
access) +111
System.Web.Serv ices.Protocols. SoapReflector.I mportMembersMap ping(XmlReflect ionImporter
xmlImporter, SoapReflectionI mporter soapImporter, Boolean
serviceDefaultI sEncoded, Boolean rpc, SoapBindingUse use,
SoapParameterSt yle paramStyle, String elementName, String
elementNamespac e, Boolean nsIsDefault, XmlReflectionMe mber[] members,
Boolean validate, Boolean openModel, String key, Boolean writeAccess)
+203
System.Web.Serv ices.Protocols. SoapReflector.R eflectMethod(Lo gicalMethodInfo
methodInfo, Boolean client, XmlReflectionIm porter xmlImporter,
SoapReflectionI mporter soapImporter, String defaultNs) +2460
[InvalidOperatio nException: Method Service.LoadLis tBox can not be
reflected.]
System.Web.Serv ices.Protocols. SoapReflector.R eflectMethod(Lo gicalMethodInfo
methodInfo, Boolean client, XmlReflectionIm porter xmlImporter,
SoapReflectionI mporter soapImporter, String defaultNs) +6904
System.Web.Serv ices.Descriptio n.SoapProtocolR eflector.Reflec tMethod()
+133
System.Web.Serv ices.Descriptio n.ProtocolRefle ctor.ReflectBin ding(ReflectedB inding
reflectedBindin g) +2760
System.Web.Serv ices.Descriptio n.ProtocolRefle ctor.Reflect() +739
System.Web.Serv ices.Descriptio n.ServiceDescri ptionReflector. ReflectInternal (ProtocolReflec tor[]
reflectors) +621
System.Web.Serv ices.Descriptio n.ServiceDescri ptionReflector. Reflect(Type
type, String url) +117
System.Web.Serv ices.Protocols. DocumentationSe rverType..ctor( Type
type, String uri) +159
System.Web.Serv ices.Protocols. DocumentationSe rverProtocol.In itialize()
+336
System.Web.Serv ices.Protocols. ServerProtocolF actory.Create(T ype
type, HttpContext context, HttpRequest request, HttpResponse response,
Boolean& abortProcessing ) +99
[InvalidOperatio nException: Unable to handle request.]
System.Web.Serv ices.Protocols. ServerProtocolF actory.Create(T ype
type, HttpContext context, HttpRequest request, HttpResponse response,
Boolean& abortProcessing ) +258
System.Web.Serv ices.Protocols. WebServiceHandl erFactory.CoreG etHandler(Type
type, HttpContext context, HttpRequest request, HttpResponse response)
+90
[InvalidOperatio nException: Failed to handle request.]
System.Web.Serv ices.Protocols. WebServiceHandl erFactory.CoreG etHandler(Type
type, HttpContext context, HttpRequest request, HttpResponse response)
+237
System.Web.Serv ices.Protocols. WebServiceHandl erFactory.GetHa ndler(HttpConte xt
context, String verb, String url, String filePath) +104
System.Web.Http Application.Map HttpHandler(Htt pContext context,
String requestType, VirtualPath path, String pathTranslated, Boolean
useAppConfig) +175
System.Web.MapH andlerExecution Step.System.Web .HttpApplicatio n.IExecutionSte p.Execute()
+120
System.Web.Http Application.Exe cuteStep(IExecu tionStep step, Boolean&
completedSynchr onously) +155
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.507 27.42;
ASP.NET Version:2.0.507 27.42
Comment