Browse Source

Fixing embedded resource reference

Former-commit-id: c735cd18a0a6f6b73bc98bcae1c32cd6e04cbd38
af/merge-core
James South 12 years ago
parent
commit
3a5f658db3
  1. 2
      src/ImageProcessor.Web/NET45/Configuration/ImageCacheSection.cs
  2. 2
      src/ImageProcessor.Web/NET45/Configuration/ImageProcessingSection.cs
  3. 2
      src/ImageProcessor.Web/NET45/Configuration/ImageSecuritySection.cs
  4. 8
      src/TestWebsites/NET45/Test_Website_NET45/Web.config

2
src/ImageProcessor.Web/NET45/Configuration/ImageCacheSection.cs

@ -79,7 +79,7 @@ namespace ImageProcessor.Web.Configuration
return imageCacheSection; return imageCacheSection;
} }
string section = ResourceHelpers.ResourceAsString("ImageProcessor.Web.Config.Resources.cache.config"); string section = ResourceHelpers.ResourceAsString("ImageProcessor.Web.Configuration.Resources.cache.config");
XmlReader reader = new XmlTextReader(new StringReader(section)); XmlReader reader = new XmlTextReader(new StringReader(section));
imageCacheSection = new ImageCacheSection(); imageCacheSection = new ImageCacheSection();
imageCacheSection.DeserializeSection(reader); imageCacheSection.DeserializeSection(reader);

2
src/ImageProcessor.Web/NET45/Configuration/ImageProcessingSection.cs

@ -83,7 +83,7 @@ namespace ImageProcessor.Web.Configuration
return imageProcessingSection; return imageProcessingSection;
} }
string section = ResourceHelpers.ResourceAsString("ImageProcessor.Web.Config.Resources.processing.config"); string section = ResourceHelpers.ResourceAsString("ImageProcessor.Web.Configuration.Resources.processing.config");
XmlReader reader = new XmlTextReader(new StringReader(section)); XmlReader reader = new XmlTextReader(new StringReader(section));
imageProcessingSection = new ImageProcessingSection(); imageProcessingSection = new ImageProcessingSection();
imageProcessingSection.DeserializeSection(reader); imageProcessingSection.DeserializeSection(reader);

2
src/ImageProcessor.Web/NET45/Configuration/ImageSecuritySection.cs

@ -116,7 +116,7 @@ namespace ImageProcessor.Web.Configuration
return imageSecuritySection; return imageSecuritySection;
} }
string section = ResourceHelpers.ResourceAsString("ImageProcessor.Web.Config.Resources.security.config"); string section = ResourceHelpers.ResourceAsString("ImageProcessor.Web.Configuration.Resources.security.config");
XmlReader reader = new XmlTextReader(new StringReader(section)); XmlReader reader = new XmlTextReader(new StringReader(section));
imageSecuritySection = new ImageSecuritySection(); imageSecuritySection = new ImageSecuritySection();
imageSecuritySection.DeserializeSection(reader); imageSecuritySection.DeserializeSection(reader);

8
src/TestWebsites/NET45/Test_Website_NET45/Web.config

@ -6,17 +6,17 @@
<configuration> <configuration>
<configSections> <configSections>
<sectionGroup name="imageProcessor"> <!--<sectionGroup name="imageProcessor">
<section name="security" requirePermission="false" type="ImageProcessor.Web.Configuration.ImageSecuritySection, ImageProcessor.Web"/> <section name="security" requirePermission="false" type="ImageProcessor.Web.Configuration.ImageSecuritySection, ImageProcessor.Web"/>
<section name="processing" requirePermission="false" type="ImageProcessor.Web.Configuration.ImageProcessingSection, ImageProcessor.Web"/> <section name="processing" requirePermission="false" type="ImageProcessor.Web.Configuration.ImageProcessingSection, ImageProcessor.Web"/>
<section name="cache" requirePermission="false" type="ImageProcessor.Web.Configuration.ImageCacheSection, ImageProcessor.Web"/> <section name="cache" requirePermission="false" type="ImageProcessor.Web.Configuration.ImageCacheSection, ImageProcessor.Web"/>
</sectionGroup> </sectionGroup>-->
</configSections> </configSections>
<imageProcessor > <!--<imageProcessor >
<security configSource="config\imageprocessor\security.config"/> <security configSource="config\imageprocessor\security.config"/>
<cache configSource="config\imageprocessor\cache.config"/> <cache configSource="config\imageprocessor\cache.config"/>
<processing configSource="config\imageprocessor\processing.config"/> <processing configSource="config\imageprocessor\processing.config"/>
</imageProcessor> </imageProcessor>-->
<appSettings> <appSettings>
<add key="webpages:Version" value="2.0.0.0" /> <add key="webpages:Version" value="2.0.0.0" />
<add key="webpages:Enabled" value="false" /> <add key="webpages:Enabled" value="false" />

Loading…
Cancel
Save