web.config 1.0 and 3.5

Posted by kareemsaad on Server Fault See other posts from Server Fault or by kareemsaad
Published on 2010-06-12T08:34:02Z Indexed on 2010/06/12 8:43 UTC
Read the original article Hit count: 342

Filed under:

I had aproblem I had two web site one of them with .net 3.5 and other with 1.0 and I want to run 1.0 in 3.5 but I couldnot and i tried to copy some section from 1.0 to 3.5 as

I copied this section

    <add key="ConnectionString" value="data source=.;persist security info=True;user id=Sharp;Password=#Sharp;initial catalog=Sharp" />

    <add key="ACProduct_Upload" value="SiteUploads/ACProducts/" />
    <add key="ACPDF_Upload" value="SiteUploads/ACPDF/" />
    <add key="ACCertifications_Upload" value="SiteUploads/ACCertifications/" />

    <add key="Certifications_Upload" value="SiteUploads/Certifications/" />

    <add key="flash" value="flash/" />
    <add key="Product_Upload" value="SiteUploads/Products/" />
    <add key="PDF_Upload" value="SiteUploads/PDF/" />
    <add key="HTML_Upload" value="SiteUploads/HTML_Uploads/" />
    <add key="WallPaper_Upload" value="SiteUploads/WallPapers/" />
    <add key="News_Upload" value="SiteUploads/News/" />
    <add key="mailserver" value="111.111.1.1" />
    <add key="fromEmail" value="[email protected]" />
</appSettings>

to 3.5 here

    <add key="ACProduct_Upload" value="SiteUploads/ACProducts/" />
    <add key="ACPDF_Upload" value="SiteUploads/ACPDF/" />
    <add key="ACCertifications_Upload" value="SiteUploads/ACCertifications/" />

    <add key="Certifications_Upload" value="SiteUploads/Certifications/" />

    <add key="flash" value="flash/" />
    <add key="Product_Upload" value="SiteUploads/Products/" />
    <add key="PDF_Upload" value="SiteUploads/PDF/" />
    <add key="HTML_Upload" value="SiteUploads/HTML_Uploads/" />
    <add key="WallPaper_Upload" value="SiteUploads/WallPapers/" />
    <add key="News_Upload" value="SiteUploads/News/" />
    <add key="mailserver" value="192.168.6.3" />

<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
  <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
    <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
    <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
      <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/>
      <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
      <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
      <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
    </sectionGroup>
  </sectionGroup>
</sectionGroup>

    <add name="Sharp" connectionString="Data Source=.;Initial Catalog=SharpHA;User ID=SharpHA;Password=#SharpHA;" providerName="System.Data.SqlClient"/>



</connectionStrings>

but this problem apear

Only one element allowed per config file and if present must be the first child of the root element.

please any one help me

© Server Fault or respective owner

web.config 1.0 and 3.5

Posted by KareemSaad on Stack Overflow See other posts from Stack Overflow or by KareemSaad
Published on 2010-06-12T08:40:07Z Indexed on 2010/06/12 8:42 UTC
Read the original article Hit count: 340

Filed under:

I had aproblem I had two web site one of them with .net 3.5 and other with 1.0 and I want to run 1.0 in 3.5 but I couldnot and i tried to copy some section from 1.0 to 3.5 as

I copied this section

<add key="ConnectionString" value="data source=.;persist security info=True;user id=Sharp;Password=#Sharp;initial catalog=Sharp" /> 

<add key="ACProduct_Upload" value="SiteUploads/ACProducts/" /> 
<add key="ACPDF_Upload" value="SiteUploads/ACPDF/" /> 
<add key="ACCertifications_Upload" value="SiteUploads/ACCertifications/" /> 

<add key="Certifications_Upload" value="SiteUploads/Certifications/" /> 

<add key="flash" value="flash/" /> 
<add key="Product_Upload" value="SiteUploads/Products/" /> 
<add key="PDF_Upload" value="SiteUploads/PDF/" /> 
<add key="HTML_Upload" value="SiteUploads/HTML_Uploads/" /> 
<add key="WallPaper_Upload" value="SiteUploads/WallPapers/" /> 
<add key="News_Upload" value="SiteUploads/News/" /> 
<add key="mailserver" value="111.111.1.1" /> 
<add key="fromEmail" value="[email protected]" /> 

to 3.5 here

<add key="ACProduct_Upload" value="SiteUploads/ACProducts/" /> 
<add key="ACPDF_Upload" value="SiteUploads/ACPDF/" /> 
<add key="ACCertifications_Upload" value="SiteUploads/ACCertifications/" /> 

<add key="Certifications_Upload" value="SiteUploads/Certifications/" /> 

<add key="flash" value="flash/" /> 
<add key="Product_Upload" value="SiteUploads/Products/" /> 
<add key="PDF_Upload" value="SiteUploads/PDF/" /> 
<add key="HTML_Upload" value="SiteUploads/HTML_Uploads/" /> 
<add key="WallPaper_Upload" value="SiteUploads/WallPapers/" /> 
<add key="News_Upload" value="SiteUploads/News/" /> 
<add key="mailserver" value="192.168.6.3" /> 

<add name="Sharp" connectionString="Data Source=.;Initial Catalog=SharpHA;User ID=SharpHA;Password=#SharpHA;" providerName="System.Data.SqlClient"/> 

but this problem apear

Only one element allowed per config file and if present must be the first child of the root element.

please any one help me

© Stack Overflow or respective owner

Related posts about ASP.NET