Browse Source

Fixing embedded resource reference

Former-commit-id: c735cd18a0a6f6b73bc98bcae1c32cd6e04cbd38
pull/17/head
James South 12 years ago
parent
commit
0121106933
  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;
}
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));
imageCacheSection = new ImageCacheSection();
imageCacheSection.DeserializeSection(reader);

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

@ -83,7 +83,7 @@ namespace ImageProcessor.Web.Configuration
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));
imageProcessingSection = new ImageProcessingSection();
imageProcessingSection.DeserializeSection(reader);

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

@ -116,7 +116,7 @@ namespace ImageProcessor.Web.Configuration
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));
imageSecuritySection = new ImageSecuritySection();
imageSecuritySection.DeserializeSection(reader);

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

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

Loading…
Cancel
Save