Westwind.Globalization
Problems after installing
Gravatar is a globally recognized avatar based on your email address. Problems after installing
  n/a
  All
  Mar 2, 2015 @ 02:33am
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?

Gravatar is a globally recognized avatar based on your email address. Re: Problems after installing
  Rick Strahl
  Jacco
  Mar 2, 2015 @ 12:50pm
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?




Rick Strahl
West Wind Technologies

Making waves on the Web
from Maui

Gravatar is a globally recognized avatar based on your email address. Re: Problems after installing
  n/a
  Rick Strahl
  Mar 2, 2015 @ 11:39pm
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?





Gravatar is a globally recognized avatar based on your email address. Re: Problems after installing
  Rick Strahl
  Jacco
  Mar 3, 2015 @ 12:02am
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?






Rick Strahl
West Wind Technologies

Making waves on the Web
from Maui

Gravatar is a globally recognized avatar based on your email address. Re: Problems after installing
  n/a
  Rick Strahl
  Mar 3, 2015 @ 11:13am
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?






Gravatar is a globally recognized avatar based on your email address. Re: Problems after installing
  Rick Strahl
  Jacco
  Mar 3, 2015 @ 12:18pm
Jacco,

It sounds like you're running with two different connection strings! If your resources are used - did you import the localization admin form resources into your database? If not the form won't be localized. The resources have to be there and all in a single database/table.

FWIW, I've also released a beta of the new version (2.0) of the library. There are a host of improvements and updates. One of them is that the admin form is a self-contained HTML page instead of an ASP.NET page. However, at this point it's not localized yet.

+++ Rick ---



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)
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.

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.

I will continue to debug. If I cannot find my problem I will post my web.config.

Thanks sofar.



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?








Rick Strahl
West Wind Technologies

Making waves on the Web
from Maui

Gravatar is a globally recognized avatar based on your email address. Re: Problems after installing
  n/a
  Rick Strahl
  Mar 3, 2015 @ 12:50pm
Hi Rick,

No, it is not that. I checked it. Web.config is the same in debug and release mode. I did the import. Problem is that behaviour is different with different browsers and also if compiled in debug vs release mode.

In none of the situations both forms work (my form and localizationadmin), but each one is working in different situations.

Also I think the problem is somewhere in my solution, but I cannot find it. Is there any way to debug the process of retrieving resource values? (I'm using implicit keys using meta tags).

Note (I updated my previous post with the web.config. Didn't know you would answer so quickly :)


Jacco,

It sounds like you're running with two different connection strings! If your resources are used - did you import the localization admin form resources into your database? If not the form won't be localized. The resources have to be there and all in a single database/table.

FWIW, I've also released a beta of the new version (2.0) of the library. There are a host of improvements and updates. One of them is that the admin form is a self-contained HTML page instead of an ASP.NET page. However, at this point it's not localized yet.

+++ Rick ---



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)
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.

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.

I will continue to debug. If I cannot find my problem I will post my web.config.

Thanks sofar.



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?








Gravatar is a globally recognized avatar based on your email address. Re: Problems after installing
  Rick Strahl
  Jacco
  Mar 3, 2015 @ 06:02pm
Jacco,

It's either the configuration or you have different databases in different places. The database used can't just randomly switch. Either that namespaces and resources names are different in different places - or the provider isn't enable in one place and not the other and you're actually load RESX.

Not sure... but doesn't make sense to me.

+++ Rick ---



Hi Rick,

No, it is not that. I checked it. Web.config is the same in debug and release mode. I did the import. Problem is that behaviour is different with different browsers and also if compiled in debug vs release mode.

In none of the situations both forms work (my form and localizationadmin), but each one is working in different situations.

Also I think the problem is somewhere in my solution, but I cannot find it. Is there any way to debug the process of retrieving resource values? (I'm using implicit keys using meta tags).

Note (I updated my previous post with the web.config. Didn't know you would answer so quickly :)


Jacco,

It sounds like you're running with two different connection strings! If your resources are used - did you import the localization admin form resources into your database? If not the form won't be localized. The resources have to be there and all in a single database/table.

FWIW, I've also released a beta of the new version (2.0) of the library. There are a host of improvements and updates. One of them is that the admin form is a self-contained HTML page instead of an ASP.NET page. However, at this point it's not localized yet.

+++ Rick ---



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)
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.

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.

I will continue to debug. If I cannot find my problem I will post my web.config.

Thanks sofar.



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?











Rick Strahl
West Wind Technologies

Making waves on the Web
from Maui

Gravatar is a globally recognized avatar based on your email address. Re: Problems after installing
  n/a
  Rick Strahl
  Mar 4, 2015 @ 08:53am
I think you're right with your last suggestion.
Is there an easy way to check this, weather the provider is enabled?
Or better, find out which providerfactory is used. I am trying to figure this out with no success. Using code below gives me an empty value for providerfactory (even if translation works).

// Get the Web application configuration object.
var config = WebConfigurationManager.OpenWebConfiguration(configPath);

// Get the section related object.
GlobalizationSection configSection =
(GlobalizationSection)config.GetSection("system.web/globalization");

Console.WriteLine("factory: {0}",
configSection.ResourceProviderFactoryType);


Jacco,

It's either the configuration or you have different databases in different places. The database used can't just randomly switch. Either that namespaces and resources names are different in different places - or the provider isn't enable in one place and not the other and you're actually load RESX.

Not sure... but doesn't make sense to me.

+++ Rick ---



Hi Rick,

No, it is not that. I checked it. Web.config is the same in debug and release mode. I did the import. Problem is that behaviour is different with different browsers and also if compiled in debug vs release mode.

In none of the situations both forms work (my form and localizationadmin), but each one is working in different situations.

Also I think the problem is somewhere in my solution, but I cannot find it. Is there any way to debug the process of retrieving resource values? (I'm using implicit keys using meta tags).

Note (I updated my previous post with the web.config. Didn't know you would answer so quickly :)


Jacco,

It sounds like you're running with two different connection strings! If your resources are used - did you import the localization admin form resources into your database? If not the form won't be localized. The resources have to be there and all in a single database/table.

FWIW, I've also released a beta of the new version (2.0) of the library. There are a host of improvements and updates. One of them is that the admin form is a self-contained HTML page instead of an ASP.NET page. However, at this point it's not localized yet.

+++ Rick ---



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)
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.

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.

I will continue to debug. If I cannot find my problem I will post my web.config.

Thanks sofar.



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?











Gravatar is a globally recognized avatar based on your email address. Re: Problems after installing
  Rick Strahl
  Jacco
  Mar 4, 2015 @ 01:15pm
Jacco,

The only way to figure out what's actually used is to look at the configuration and the <globalization> section.

+++ Rick ---



I think you're right with your last suggestion.
Is there an easy way to check this, weather the provider is enabled?
Or better, find out which providerfactory is used. I am trying to figure this out with no success. Using code below gives me an empty value for providerfactory (even if translation works).

// Get the Web application configuration object.
var config = WebConfigurationManager.OpenWebConfiguration(configPath);

// Get the section related object.
GlobalizationSection configSection =
(GlobalizationSection)config.GetSection("system.web/globalization");

Console.WriteLine("factory: {0}",
configSection.ResourceProviderFactoryType);


Jacco,

It's either the configuration or you have different databases in different places. The database used can't just randomly switch. Either that namespaces and resources names are different in different places - or the provider isn't enable in one place and not the other and you're actually load RESX.

Not sure... but doesn't make sense to me.

+++ Rick ---



Hi Rick,

No, it is not that. I checked it. Web.config is the same in debug and release mode. I did the import. Problem is that behaviour is different with different browsers and also if compiled in debug vs release mode.

In none of the situations both forms work (my form and localizationadmin), but each one is working in different situations.

Also I think the problem is somewhere in my solution, but I cannot find it. Is there any way to debug the process of retrieving resource values? (I'm using implicit keys using meta tags).

Note (I updated my previous post with the web.config. Didn't know you would answer so quickly :)


Jacco,

It sounds like you're running with two different connection strings! If your resources are used - did you import the localization admin form resources into your database? If not the form won't be localized. The resources have to be there and all in a single database/table.

FWIW, I've also released a beta of the new version (2.0) of the library. There are a host of improvements and updates. One of them is that the admin form is a self-contained HTML page instead of an ASP.NET page. However, at this point it's not localized yet.

+++ Rick ---



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)
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.

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.

I will continue to debug. If I cannot find my problem I will post my web.config.

Thanks sofar.



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?














Rick Strahl
West Wind Technologies

Making waves on the Web
from Maui

Gravatar is a globally recognized avatar based on your email address. Re: Problems after installing
  n/a
  Rick Strahl
  Mar 4, 2015 @ 01:20pm
Great :)


Jacco,

The only way to figure out what's actually used is to look at the configuration and the <globalization> section.

+++ Rick ---



I think you're right with your last suggestion.
Is there an easy way to check this, weather the provider is enabled?
Or better, find out which providerfactory is used. I am trying to figure this out with no success. Using code below gives me an empty value for providerfactory (even if translation works).

// Get the Web application configuration object.
var config = WebConfigurationManager.OpenWebConfiguration(configPath);

// Get the section related object.
GlobalizationSection configSection =
(GlobalizationSection)config.GetSection("system.web/globalization");

Console.WriteLine("factory: {0}",
configSection.ResourceProviderFactoryType);


Jacco,

It's either the configuration or you have different databases in different places. The database used can't just randomly switch. Either that namespaces and resources names are different in different places - or the provider isn't enable in one place and not the other and you're actually load RESX.

Not sure... but doesn't make sense to me.

+++ Rick ---



Hi Rick,

No, it is not that. I checked it. Web.config is the same in debug and release mode. I did the import. Problem is that behaviour is different with different browsers and also if compiled in debug vs release mode.

In none of the situations both forms work (my form and localizationadmin), but each one is working in different situations.

Also I think the problem is somewhere in my solution, but I cannot find it. Is there any way to debug the process of retrieving resource values? (I'm using implicit keys using meta tags).

Note (I updated my previous post with the web.config. Didn't know you would answer so quickly :)


Jacco,

It sounds like you're running with two different connection strings! If your resources are used - did you import the localization admin form resources into your database? If not the form won't be localized. The resources have to be there and all in a single database/table.

FWIW, I've also released a beta of the new version (2.0) of the library. There are a host of improvements and updates. One of them is that the admin form is a self-contained HTML page instead of an ASP.NET page. However, at this point it's not localized yet.

+++ Rick ---



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)
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.

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.

I will continue to debug. If I cannot find my problem I will post my web.config.

Thanks sofar.



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?














Gravatar is a globally recognized avatar based on your email address. Re: Problems after installing
  Rick Strahl
  Jacco
  Mar 4, 2015 @ 02:03pm
If it's empty that means it's not set which means you're using Resx.

I tried this and added this as a LocalizationService method:

[CallbackMethod()]
public object GetLocalizationInfo()
{

// Get the Web application configuration object.
var config = WebConfigurationManager.OpenWebConfiguration("~/web.config");

// Get the section related object.
GlobalizationSection configSection =
(GlobalizationSection)config.GetSection("system.web/globalization");

string providerFactory = configSection.ResourceProviderFactoryType;
if (string.IsNullOrEmpty(providerFactory))
providerFactory = "Resx provider";

return new
{
ProviderUsed = providerFactory
};
}

and it correctly returns the DbSimpleResourceProvider.

You do need to have permissions to read the config file I believe and you can't read these settings in medium trust. You'd get an exception though if it doesn't work so I think in your case the key is simply not set.

+++ Rick ---



I think you're right with your last suggestion.
Is there an easy way to check this, weather the provider is enabled?
Or better, find out which providerfactory is used. I am trying to figure this out with no success. Using code below gives me an empty value for providerfactory (even if translation works).

// Get the Web application configuration object.
var config = WebConfigurationManager.OpenWebConfiguration(configPath);

// Get the section related object.
GlobalizationSection configSection =
(GlobalizationSection)config.GetSection("system.web/globalization");

Console.WriteLine("factory: {0}",
configSection.ResourceProviderFactoryType);


Jacco,

It's either the configuration or you have different databases in different places. The database used can't just randomly switch. Either that namespaces and resources names are different in different places - or the provider isn't enable in one place and not the other and you're actually load RESX.

Not sure... but doesn't make sense to me.

+++ Rick ---



Hi Rick,

No, it is not that. I checked it. Web.config is the same in debug and release mode. I did the import. Problem is that behaviour is different with different browsers and also if compiled in debug vs release mode.

In none of the situations both forms work (my form and localizationadmin), but each one is working in different situations.

Also I think the problem is somewhere in my solution, but I cannot find it. Is there any way to debug the process of retrieving resource values? (I'm using implicit keys using meta tags).

Note (I updated my previous post with the web.config. Didn't know you would answer so quickly :)


Jacco,

It sounds like you're running with two different connection strings! If your resources are used - did you import the localization admin form resources into your database? If not the form won't be localized. The resources have to be there and all in a single database/table.

FWIW, I've also released a beta of the new version (2.0) of the library. There are a host of improvements and updates. One of them is that the admin form is a self-contained HTML page instead of an ASP.NET page. However, at this point it's not localized yet.

+++ Rick ---



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)
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.

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.

I will continue to debug. If I cannot find my problem I will post my web.config.

Thanks sofar.



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?













Gravatar is a globally recognized avatar based on your email address. Re: Problems after installing
  n/a
  Rick Strahl
  Mar 4, 2015 @ 11:25pm
Hi Rick,

The strangest thing, but if I use dbresourceprovider instead of dbsimpleresourceprovider, it looks like it is working.

I did a test on the production site, which is azure, just to check.
With dbsimpleresource provider it did not work at all.
With dbresourceprovider it works.

Note: the script to create the table won' t work on an azure db because of the 'on primary' indicators.

For now this solves my problem I think.


If it's empty that means it's not set which means you're using Resx.

I tried this and added this as a LocalizationService method:

[CallbackMethod()]
public object GetLocalizationInfo()
{

// Get the Web application configuration object.
var config = WebConfigurationManager.OpenWebConfiguration("~/web.config");

// Get the section related object.
GlobalizationSection configSection =
(GlobalizationSection)config.GetSection("system.web/globalization");

string providerFactory = configSection.ResourceProviderFactoryType;
if (string.IsNullOrEmpty(providerFactory))
providerFactory = "Resx provider";

return new
{
ProviderUsed = providerFactory
};
}

and it correctly returns the DbSimpleResourceProvider.

You do need to have permissions to read the config file I believe and you can't read these settings in medium trust. You'd get an exception though if it doesn't work so I think in your case the key is simply not set.

+++ Rick ---



I think you're right with your last suggestion.
Is there an easy way to check this, weather the provider is enabled?
Or better, find out which providerfactory is used. I am trying to figure this out with no success. Using code below gives me an empty value for providerfactory (even if translation works).

// Get the Web application configuration object.
var config = WebConfigurationManager.OpenWebConfiguration(configPath);

// Get the section related object.
GlobalizationSection configSection =
(GlobalizationSection)config.GetSection("system.web/globalization");

Console.WriteLine("factory: {0}",
configSection.ResourceProviderFactoryType);


Jacco,

It's either the configuration or you have different databases in different places. The database used can't just randomly switch. Either that namespaces and resources names are different in different places - or the provider isn't enable in one place and not the other and you're actually load RESX.

Not sure... but doesn't make sense to me.

+++ Rick ---



Hi Rick,

No, it is not that. I checked it. Web.config is the same in debug and release mode. I did the import. Problem is that behaviour is different with different browsers and also if compiled in debug vs release mode.

In none of the situations both forms work (my form and localizationadmin), but each one is working in different situations.

Also I think the problem is somewhere in my solution, but I cannot find it. Is there any way to debug the process of retrieving resource values? (I'm using implicit keys using meta tags).

Note (I updated my previous post with the web.config. Didn't know you would answer so quickly :)


Jacco,

It sounds like you're running with two different connection strings! If your resources are used - did you import the localization admin form resources into your database? If not the form won't be localized. The resources have to be there and all in a single database/table.

FWIW, I've also released a beta of the new version (2.0) of the library. There are a host of improvements and updates. One of them is that the admin form is a self-contained HTML page instead of an ASP.NET page. However, at this point it's not localized yet.

+++ Rick ---



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)
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.

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.

I will continue to debug. If I cannot find my problem I will post my web.config.

Thanks sofar.



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?














© 1996-2024