473,770 Members | 4,718 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

help! Error: The XML element is already in the current scope...

"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

Jul 5 '06 #1
3 10838
Does your schema defines the element EnableThemming twice in the cotent
model? Can you post your xsd/xml and repro code?

Thanks,
Priya

<na************ ******@gmail.co mwrote in message
news:11******** **************@ a14g2000cwb.goo glegroups.com.. .
"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

Jul 6 '06 #2
JT
"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
I'm experiencing the same error. I'm not defining EnableTheming anywhere and no xml is being produced.

I'm using VS 2005. I have created other web services with no problem. I have not tried narrowing down the offending namespace yet.

Webservice:
using System.Web.UI;
using System.Web.UI.W ebControls;
using System.Collecti ons;
using System.Web.Serv ices;
using System.Web.Serv ices.Protocols;
using SqlDataConduit;

Website:
using System;
using System.Data;
using System.Configur ation;
using System.Web;
using System.Web.Secu rity;
using System.Web.UI;
using System.Web.UI.W ebControls;
using System.Web.UI.W ebControls.WebP arts;
using System.Web.UI.H tmlControls;
using System.Collecti ons;
using System.Collecti ons.Generic;
using SqlDataConduit;

Posted from http://www.topxml.com/renntp using reNNTP: the website based NNTP reader.
Jul 20 '06 #3
"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
I had the same problem and solved it by replacing an SqlDataSource for asp dropdown lists with a DataSet.

Posted from http://www.topxml.com/renntp using reNNTP: the website based NNTP reader.
Aug 1 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
6555
by: Dave | last post by:
After following Microsofts admonition to reformat my system before doing a final compilation of my app I got many warnings/errors upon compiling an rtf file created in word. I used the Help Workshop program: hcw.exe that's included with Visual Basic. This exact same file compiled perfectly with no notes, warnings or errors prior to reformatting my system. Prior to the reformatting, I copied the help.rtf file onto a CD and checked the box to...
9
4412
by: Tom | last post by:
A question for gui application programmers. . . I 've got some GUI programs, written in Python/wxPython, and I've got a help button and a help menu item. Also, I've got a compiled file made with the microsoft HTML workshop utility, lets call it c:\path\help.chm. My question is how do you launch it from the GUI? What logic do I put behind the "help" button, in other words. I thought it would be os.spawnv(os.P_DETACH,...
4
3354
by: Sarir Khamsi | last post by:
Is there a way to get help the way you get it from the Python interpreter (eg, 'help(dir)' gives help on the 'dir' command) in the module cmd.Cmd? I know how to add commands and help text to cmd.Cmd but I would also like to get the man-page-like help for classes and functions. Does anyone know how to do that? Thanks. Sarir
2
6485
by: Sudheer Kareem | last post by:
Dear All Please tell me how to assosiate help files with my Vb.net Project. Regards Sudheer
6
3025
by: d.warnermurray | last post by:
I am doing a project for school that involves creating help files for a html authoring tool. If you could help me with answers to some questions it would really help. 1. What tasks do you expect an html authoring tool to help you accomplish? 2. What do you expect from online help for a html authoring tool? 3. What audience do you think a freeware html authoring tool is directed towards?
5
3279
by: Steve | last post by:
I have written a help file (chm) for a DLL and referenced it using Help.ShowHelp My expectation is that a developer using my DLL would be able to access this help file during his development time using "F1" help within the VB IDE. Is this expectation achievable In trying to test my help file in the IDE, I have a solution with 2 projects: the DLL and a tester. VB does not look for my help file; instead, it looks for path to my source code...
8
3235
by: Mark | last post by:
I have loaded Visual Studio .net on my home computer and my laptop, but my home computer has an abbreviated help screen not 2% of the help on my laptop. All the settings look the same on both including search the internet for help, but the help is worthless. Any ideas?
10
3364
by: JonathanOrlev | last post by:
Hello everybody, I wrote this comment in another message of mine, but decided to post it again as a standalone message. I think that Microsoft's Office 2003 help system is horrible, probably the worst I ever seen. I almost cannot find anything I need, including things I
1
6137
by: trunxnirvana007 | last post by:
'UPGRADE_WARNING: Array has a new behavior. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="9B7D5ADD-D8FE-4819-A36C-6DEDAF088CC7"' 'UPGRADE_WARNING: Couldn't resolve default property of object Label. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"' Label = New Object(){Box1, Box2, Box3, Box4, Box5, Box6, Box7, Box8, Box9, Box10, Box11,...
0
2889
by: hitencontractor | last post by:
I am working on .NET Version 2003 making an SDI application that calls MS Excel 2003. I added a menu item called "MyApp Help" in the end of the menu bar to show Help-> About. The application calls MS Excel, so the scenario is that I am supposed to see the Excel Menu bar, FILE EDIT VIEW INSERT ... HELP. I am able to see the menu bar, but in case of Help, I see the Help of Excel and help of my application, both as a submenu of help. ...
0
9595
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10232
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10059
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10008
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9873
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8891
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6682
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
3578
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2822
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.