Hi Rick,Well, the div error message is solved :) It was a missing closing quote in : <div class="containercontent">
The 500 errors is also fixed, by setting the managed pipeline mode to integrated (instead of classic).
There is still an error about codegen.png which is missing. It is missing from the install from nuget, so this has to be added, but it is not a problem.
So, this solves a lot of error messages.
I still have 2 major problems:
1)
Chrome, internet explorer
When I run in debug mode the localizationadmin will be translated, but my application doesn't.
When I run in release mode, my application will be translated, but the localizationadmin doesn't. Here it gives also the message about resources not being available on the admin page.
Firefox
When I run in debug mode, my application will be translated, but the localizationadmin doesn't. Here it gives also the message about resources not being available on the admin page.
When I run in release mode, my application will be translated, but the localizationadmin doesn't. Here it gives also the message about resources not being available on the admin page.
2)
When I run in debug mode, the lolocalizationadmin will be translated.
But when I press 'edit page resources' I get a popup with the admin which is not translated.
Note: Fixed this. Case mismatch in web.config
localizationFormWebPath="/wwThreads/localizationadmin/LocalizationAdmin.aspx"
should be
localizationFormWebPath="/wwThreads/LocalizationAdmin/LocalizationAdmin.aspx"
Here is my web.config:
----- web.config -------
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<configSections>
<!-- Setup the Piczard configuration sections -->
<sectionGroup name="codeCarvings.piczard">
<section name="coreSettings" type="CodeCarvings.Piczard.Configuration.CoreSettingsSectionHandler, CodeCarvings.Piczard" requirePermission="false"/>
<section name="webSettings" type="CodeCarvings.Piczard.Configuration.WebSettingsSectionHandler, CodeCarvings.Piczard" requirePermission="false"/>
</sectionGroup>
<sectionGroup name="devExpress">
<section name="settings" type="DevExpress.Web.SettingsConfigurationSection, DevExpress.Web.v14.2, Version=14.2.4.0, Culture=neutral, PublicKeyToken=..." requirePermission="false"/>
<section name="compression" type="DevExpress.Web.CompressionConfigurationSection, DevExpress.Web.v14.2, Version=14.2.4.0, Culture=neutral, PublicKeyToken=..." requirePermission="false"/>
<section name="themes" type="DevExpress.Web.ThemesConfigurationSection, DevExpress.Web.v14.2, Version=14.2.4.0, Culture=neutral, PublicKeyToken=..." requirePermission="false"/>
<section name="errors" type="DevExpress.Web.ErrorsConfigurationSection, DevExpress.Web.v14.2, Version=14.2.4.0, Culture=neutral, PublicKeyToken=..." requirePermission="false"/>
</sectionGroup>
<section name="DbResourceProvider" type="Westwind.Globalization.DbResourceProviderSection,Westwind.Globalization" requirePermission="false"/>
</configSections>
<connectionStrings>
...
</connectionStrings>
<appSettings>
...
</appSettings>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="http://testcertifeye.org/cisweb/App/Error.aspx"/>
<compilation debug="true" targetFramework="4.0">
<assemblies>
<add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="DevExpress.Web.v14.2, Version=14.2.4.0, Culture=neutral, PublicKeyToken=..."/>
<add assembly="DevExpress.Printing.v14.2.Core, Version=14.2.4.0, Culture=neutral, PublicKeyToken=..."/>
<add assembly="DevExpress.Data.v14.2, Version=14.2.4.0, Culture=neutral, PublicKeyToken=..."/>
<add assembly="DevExpress.Xpo.v14.2.Web, Version=14.2.4.0, Culture=neutral, PublicKeyToken=..."/>
<add assembly="DevExpress.Xpo.v14.2, Version=14.2.4.0, Culture=neutral, PublicKeyToken=..."/>
<add assembly="DevExpress.XtraPrinting.v14.2, Version=14.2.4.0, Culture=neutral, PublicKeyToken=..."/>
<add assembly="DevExpress.XtraEditors.v14.2, Version=14.2.4.0, Culture=neutral, PublicKeyToken=..."/>
<add assembly="DevExpress.RichEdit.v14.2.Core, Version=14.2.4.0, Culture=neutral, PublicKeyToken=..."/>
<add assembly="DevExpress.Web.ASPxThemes.v14.2, Version=14.2.4.0, Culture=neutral, PublicKeyToken=..."/>
</assemblies>
</compilation>
<authentication mode="Forms">
<forms loginUrl="~/Account/Login.aspx" timeout="2880"/>
</authentication>
<!-- http://www.eggheadcafe.com/articles/GenerateMachineKey/GenerateMachineKey.aspx -->
<machineKey validationKey="..." validation="..."/>
<membership defaultProvider="XpoMembershipProvider" userIsOnlineTimeWindow="15">
<providers>
<clear/>
<add name="XpoMembershipProvider" applicationName="XPO_Membership" type="cisObjects.XpoMembershipProvider" passwordFormat="Encrypted" connectionStringName="..." enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false"/>
</providers>
</membership>
<roleManager enabled="true" defaultProvider="XpoRoleProvider">
<providers>
<add applicationName="XPO_Membership" connectionStringName="..." name="XpoRoleProvider" type="cisObjects.XpoRoleProvider"/>
</providers>
</roleManager>
<pages styleSheetTheme="SoftOrange" controlRenderingCompatibilityVersion="4.0">
<controls>
<add tagPrefix="ccPiczard" namespace="CodeCarvings.Piczard.Web" assembly="CodeCarvings.Piczard"/>
<add tagPrefix="ccPiczardUC" tagName="SimpleImageUpload" src="~/piczardUserControls/simpleImageUploadUserControl/SimpleImageUpload.ascx"/>
<add tagPrefix="ww" namespace="Westwind.Web.Controls" assembly="Westwind.Web"/>
</controls>
<namespaces>
<add namespace="Westwind.Utilities"/>
<add namespace="Westwind.Web"/>
</namespaces>
</pages>
<httpHandlers>
<!-- Add the Piczard HttpHandler -->
<!-- Piczard - Important information: Remove or comment the following *add* line if you are using IIS 7/8 Integrated Pipeline Mode with validateIntegratedModeConfiguration = True (HTTP error 500.22/500.23). -->
<add verb="*" path="piczardWebResource.ashx" validate="false" type="CodeCarvings.Piczard.Web.WebResourceManager, CodeCarvings.Piczard"/>
<add type="DevExpress.Web.ASPxUploadProgressHttpHandler, DevExpress.Web.v14.2, Version=14.2.4.0, Culture=neutral, PublicKeyToken=..." verb="GET,POST" path="ASPxUploadProgressHandlerPage.ashx" validate="false"/>
<add type="DevExpress.Web.ASPxHttpHandlerModule, DevExpress.Web.v14.2, Version=14.2.4.0, Culture=neutral, PublicKeyToken=..." verb="GET,POST" path="DX.ashx" validate="false"/>
<add verb="GET" path="JavaScriptResourceHandler.axd" type="Westwind.Globalization.JavaScriptResourceHandler,Westwind.Globalization"/>
</httpHandlers>
<httpModules>
<add type="DevExpress.Web.ASPxHttpHandlerModule, DevExpress.Web.v14.2, Version=14.2.4.0, Culture=neutral, PublicKeyToken=..." name="ASPxHttpHandlerModule"/>
<add name="ScriptCompressionModule" type="Westwind.Web.ScriptCompressionModule,Westwind.Web"/>
</httpModules>
<httpRuntime maxRequestLength="8096"/>
<globalization resourceProviderFactoryType="Westwind.Globalization.DbSimpleResourceProviderFactory,Westwind.Globalization"/>
<trust originUrl="(http://www.google.com/translate_t)|(http://babelfish.yahoo.com/translate_txt)"/>
</system.web>
<!--
The system.webServer section is required for running ASP.NET AJAX under Internet
Information Services 7/8. It is not necessary for previous version of IIS.
-->
<system.webServer>
<modules runAllManagedModulesForAllRequests="true">
<add type="DevExpress.Web.ASPxHttpHandlerModule, DevExpress.Web.v14.2, Version=14.2.4.0, Culture=neutral, PublicKeyToken=..." name="ASPxHttpHandlerModule"/>
<add name="ScriptCompressionModule" type="Westwind.Web.ScriptCompressionModule,Westwind.Web"/>
</modules>
<directoryBrowse enabled="true"/>
<handlers>
<!-- Add the Piczard HttpHandler -->
<add name="PiczardWebResource" verb="*" path="piczardWebResource.ashx" preCondition="integratedMode" type="CodeCarvings.Piczard.Web.WebResourceManager, CodeCarvings.Piczard"/>
<add type="DevExpress.Web.ASPxUploadProgressHttpHandler, DevExpress.Web.v14.2, Version=14.2.4.0, Culture=neutral, PublicKeyToken=..." verb="GET,POST" path="ASPxUploadProgressHandlerPage.ashx" name="ASPxUploadProgressHandler" preCondition="integratedMode"/>
<add name="pngs" verb="*" path="images/db/*" type="cisweb.Logic.DynamicImageHandler, cisweb" preCondition="managedHandler"/>
<add type="DevExpress.Web.ASPxHttpHandlerModule, DevExpress.Web.v14.2, Version=14.2.4.0, Culture=neutral, PublicKeyToken=..." verb="GET,POST" path="DX.ashx" name="ASPxHttpHandlerModule" preCondition="integratedMode"/>
<add name="JavaScriptResourceHandler" verb="GET" path="JavascriptResourceHandler.axd" type="Westwind.Globalization.JavaScriptResourceHandler,Westwind.Globalization"/>
</handlers>
<validation validateIntegratedModeConfiguration="false"/>
<httpRedirect enabled="false"/>
<rewrite>
<rules>
<remove name="redirect naar cisweb"/>
</rules>
</rewrite>
</system.webServer>
<system.serviceModel>
<services>
<service name="cisweb.Webservice.cisservice">
<endpoint address="" behaviorConfiguration="cisserviceAspNetAjaxBehavior" binding="webHttpBinding" contract="cisweb.Webservice.ICisservicejson">
<identity>
<dns value="localhost"/>
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
</service>
</services>
<behaviors>
<endpointBehaviors>
<behavior name="cisserviceAspNetAjaxBehavior">
<webHttp/>
</behavior>
</endpointBehaviors>
<serviceBehaviors>
<behavior name="">
<serviceMetadata httpGetEnabled="true"/>
<serviceDebug httpHelpPageEnabled="true" includeExceptionDetailInFaults="true"/>
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true"/>
</system.serviceModel>
<system.net>
<mailSettings>
...
</mailSettings>
</system.net>
<!-- Piczard configuration sections -->
<codeCarvings.piczard>
<coreSettings>
<drawing maxImageSize="5000, 5000"/>
<imageArchiver defaultJpegQuality="92" defaultQuantizeGifImages="true"/>
<security defaultEncryptionKey="Place here your random key (alphanumeric / 10..20 chars)"/>
<plugins>
<!-- Register here your Piczard Plugins. -->
<!-- === EXAMPLE: DeBrand Plugin for Piczard by Digivogue - http://digivogue.com/products/Piczard-DeBrand/ ===
<plugin type="Digivogue.Plugins.Piczard.DeBrand.DeBrandPiczardPlugin, Digivogue.Plugins.Piczard.DeBrand">
<license number="..." key="..." />
</plugin>
========= -->
</plugins>
</coreSettings>
<webSettings>
<webResource enableCompression="true"/>
<pictureTrimmer useTemporaryFiles="false"/>
</webSettings>
</codeCarvings.piczard>
<!-- Allow * Access to the Piczard HttpHandler (required when using Asp.Net Authentication) -->
<location path="piczardWebResource.ashx">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
<devExpress>
<settings rightToLeft="false" doctypeMode="Xhtml" embedRequiredClientLibraries="false" ieCompatibilityVersion="edge"/>
<compression enableHtmlCompression="false" enableCallbackCompression="true" enableResourceCompression="true" enableResourceMerging="false"/>
<themes enableThemesAssembly="true" styleSheetTheme="" theme="Metropolis" customThemeAssemblies=""/>
<errors callbackErrorRedirectUrl=""/>
</devExpress>
<DbResourceProvider connectionString="<working connection string>" resourceTableName="Localizations" projectType="WebForms" designTimeVirtualPath="/internationalization" showLocalizationControlOptions="true" showControlIcons="true" localizationFormWebPath="~/LocalizationAdmin/LocalizationAdmin.aspx" addMissingResources="false" useVsNetResourceNaming="false" stronglyTypedGlobalResource="~/Properties/Resources.cs,AppResources"/>
</configuration>
----- web.config -----
Can you post your Web.config (remove or change anything sensitive).
This all sounds like a configuration problem in the .config file. Possibly you are running different versions of IIS/IIS Express in dev and production and that might account for the difference. I know Server 2008 has a number of differences in default handlers that are installed. I suspect you need to remove a handler before you can add it again. ManagedPipelineHandler sounds like a classic pipeline handler as opposed to integrated pipeline. It's an IIS module not one of ours. The configuration is set up for integrated pipeline.
If you see difference with what gets served I suspect you do have different connectionstrings or some settings that vary between production and dev installs.
+++ Rick ---
Hi Rick,
The 500 error expands to:
Handler "JavaScriptResourceHandler" has a bad module "ManagedPipelineHandler" in its module list
Requested URL: http://localhost:80/cisweb/JavaScriptResourceHandler.axd?ResourceSet=LocalizationAdmin/LocalizationAdmin.aspx&LocaleId=nl&VarName=localRes&ResourceType=resdb&ResourceMode=0
But I still have other strange behaviour.
Running from VS means, running from visual studio, with the VS debugger on. When I do this I keep getting the message:
Error: Syntax error, unrecognized expression: div."containercontent
After continuing the page functions normally. So, as said, this is not a big problem for me.
But.....
When I run in debug mode the localizationadmin will be translated, but my application doesn't.
When I run in release mode, my application will be translated, but the localizationadmin doesn't. Here it gives also the message about resources not being available on the admin page.
There are no differences between the web.config.release and web.config.debug.
FYI, i added westwind globalization in an existing solution.
Probably something simple, but I don't know where to look.
Hi Jacco,
The messages appear to be server error messages that are generating HTML and those are not coming in correctly. Can you open up Fiddler and check the 500 error page and see what the actual server error message is on the yellow screen of death?
When you say runnign from VS, you mean running IIS Express vs. full IIS?
+++ Rick ---
Hi,
I hope someone can help me out here.
I installed the globalization package from nuget. No problems
I connected my database and created a table. Working with some javascript messages.
I enabled globalization and started the admin.
This works, but I get all kind of messages like:
Error: Syntax error, unrecognized expression: div."containercontent
Invalid file name for file monitoring: 'D:\....\App_LocalResources'
I imported existing resources. This works, with messages. Resources are in the database.
I use VS 2013. Implementation will be an Azure website.
It looks like I only get the messages when running from vs, so that makes the problem less urgent. (if not completely un-urgent :)
But still, does anyone know what I can do to get rid of the messages?
![]()