O
Ohad Young
Hi,
I have problems in configuring a web.config file of an ASP.NET Web Service
project.
I declared a new settings section group named metaServer which contains a
nested
section group named availableServers that contains two sections,
DeGeLServers and
spockServers. Following is the XML snippet for it:
<configuration>
<configSections>
<sectionGroup name="metaServer">
<sectionGroup name="availableServers">
<section name="DeGeLServers"
type="System.Configuration.NameValueSectionHandler, System" />
<section name="spockServers"
type="System.Configuration.NameValueSectionHandler, System" />
</sectionGroup>
</sectionGroup>
</configSections>
<metaServer>
<availableServers>
<DeGeLServers>
<add key="Dev" value="localhost" />
<add key="BGU" value="http://medinfo.bgu.ac.il/DeGeL.NET/" />
</DeGeLServers>
<spockServers>
<add key="Dev" value="localhost" />
<add key="BGU" value="http://medinfo.bgu.ac.il/SpockServer/" />
</spockServers>
</availableServers>
</metaServer>
<system.web>
....
</configuration>
When invoking the webservice that uses the web.config above, the following
exception is thrown:
System.Configuration.ConfigurationException: Exception creating section
handler. (c:\inetpub\wwwroot\DeGeLForSpockServer\web.config line 6) --->
System.IO.FileNotFoundException: File or assembly name System, or one of its
dependencies, was not found.
File name: "System"
at System.Type.GetType(String typeName, Boolean throwOnError)
at System.Web.Configuration.HttpConfigurationRecord.GetFactory(String
configKey)
Please advise.
--
Ohad Young
Medical Informatics Research Center
Ben Gurion University
Information System Eng
Office Phone: 972-8-6477160
Cellular Phone: 972-54-518301
E-Mail: (e-mail address removed)
I have problems in configuring a web.config file of an ASP.NET Web Service
project.
I declared a new settings section group named metaServer which contains a
nested
section group named availableServers that contains two sections,
DeGeLServers and
spockServers. Following is the XML snippet for it:
<configuration>
<configSections>
<sectionGroup name="metaServer">
<sectionGroup name="availableServers">
<section name="DeGeLServers"
type="System.Configuration.NameValueSectionHandler, System" />
<section name="spockServers"
type="System.Configuration.NameValueSectionHandler, System" />
</sectionGroup>
</sectionGroup>
</configSections>
<metaServer>
<availableServers>
<DeGeLServers>
<add key="Dev" value="localhost" />
<add key="BGU" value="http://medinfo.bgu.ac.il/DeGeL.NET/" />
</DeGeLServers>
<spockServers>
<add key="Dev" value="localhost" />
<add key="BGU" value="http://medinfo.bgu.ac.il/SpockServer/" />
</spockServers>
</availableServers>
</metaServer>
<system.web>
....
</configuration>
When invoking the webservice that uses the web.config above, the following
exception is thrown:
System.Configuration.ConfigurationException: Exception creating section
handler. (c:\inetpub\wwwroot\DeGeLForSpockServer\web.config line 6) --->
System.IO.FileNotFoundException: File or assembly name System, or one of its
dependencies, was not found.
File name: "System"
at System.Type.GetType(String typeName, Boolean throwOnError)
at System.Web.Configuration.HttpConfigurationRecord.GetFactory(String
configKey)
Please advise.
--
Ohad Young
Medical Informatics Research Center
Ben Gurion University
Information System Eng
Office Phone: 972-8-6477160
Cellular Phone: 972-54-518301
E-Mail: (e-mail address removed)