Quantcast
Channel: West Wind Message Board Messages
Viewing all 10393 articles
Browse latest View live

Re: Problems after installing

$
0
0
Re: Problems after installing
Westwind.Globalization
Re: Problems after installing
Mar. 2, 2015
11:39 pm
4AM1EOZN6Show this entire thread in new window
Gratar Image based on email address
From:Jacco
To:Rick Strahl
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?






Re: Problems after installing

$
0
0
Re: Problems after installing
Westwind.Globalization
Re: Problems after installing
Mar. 3, 2015
12:02 am
4AN0029C8Show this entire thread in new window
Gratar Image based on email address
From:Rick Strahl
To:Jacco
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

What to use of the big variaty of methods :-)?

$
0
0
What to use of the big variaty of methods :-)?
FoxPro Programming
What to use of the big variaty of methods :-)?
Mar. 3, 2015
03:10 am
4AN06RMMYShow this entire thread in new window
Gratar Image based on email address
From:Stefan Zehner
To:All
Hi there,

first time I shall asking a SOAP-Webservice fpr information.
I got a wdsl-file and information to create an XML to send as question.
Within the wsdl-file I can locate the service 'OrderCheck'.

So I go and start to create with wwsoap the following code:

DO WWSOAP lcWSDL = "dspone-interface-ordercheck_V001.wsdl"this.oSOAP = CREATEOBJECT("wwSOAP")this.oSoap.cServerUrl = ALLTRIM(pcWebService)this.oSOAP.ParseServiceWSDL(lcWSDL)IFthis.oSOAP.lError = .T.MESSAGEBOX("Die Verbindung wurde mit einem Fehler abgebrochen: " + CHR(13) + ;TRANSFORM(this.oSOAP.cErrorMsg)+CHR(13)+;"Bitte wiederholen Sie es später nochmals.",64,_screen.caption)RETURN .F.ENDIFthis.oSOAP.AddParameter("username",this.cUserName)this.oSOAP.AddParameter("password",this.cPassword)THIS.oSOAP.cRequestXML = pcString lvResult = this.oSOAP.CallMethod("OrderCheck")

Most of the code comes from the wwsoap help. But now I recognized other methods, wich I can call and because got the following error with the code above:

The endpoint reference (EPR) for the Operation not found is http://test-dspone.deltavista.com/dspone/services/OrderCheckService and the WSA Action = https://test-dspone.deltavista.com/dspone/services/OrderCheckService.OrderCheck. If this EPR was previously reachable, please contact the server administrator.

I askes myself: Is my way the right way?

I have an example in PHP. but can't read and work it out the right way to get it in use for me, FoxPro and wSOAP:

<?php /*** Credit assesment check from Deltavista** A SOAP Request with the current user-information will be sent to Deltavista* Allow only decision "GREEN" to show up "Zahlen per Rechnung"** @autor xxxxxxx***/if($dv_aktiv == 1 && $global['credit-assessment-dv-active'] == true) { // data for XML file // credentials $dv_user = 'xxxxxx'; $dv_pw = 'xxxx'; // UniqueIDto link request to response $dv_correlationID = md5($customer_data['nachname'] . $customer_data['vorname']); // Order check request /* Available: QuickCheckConsumer CreditCheckConsumer QuickCheckBusiness CreditCheckBusiness IdentificationSearch*/ $dv_product = 'QuickCheckConsumer'; // ISO_3166-1_alpha-3 Country Code $dv_country_product = "DEU"; // Code "BER"for credit assessment $dv_proofOfInterest = 'BER'; // customerif($customer_data['anrede'] == 'Herr') { $dv_gender = 'MALE'; } elseif($customer_data['anrede'] == 'Frau') { $dv_gender = 'FEMALE'; } else { $dv_gender = 'UNKNOWN'; } $dv_firstName = $customer_data['vorname']; $dv_lastName = $customer_data['nachname']; $dv_street = $customer_data['strasse']; $dv_city = $customer_data['ort']; $dv_zip = $customer_data['plz']; $dv_country = $customer_data['land']; $db_country = new DB_Example; $db_country->query("SELECT * FROM `mod_shop_laender` WHERE id = $dv_country");if($db_country->next_record()) { $dv_country = convertToISO3166_1alpha3($db_country->f('kuerzel')); } $dv_birthday = date("Ymd", strtotime($customer_data['geburtsdatum'])); $param = array(); $param['product']['name'] = $dv_product; $param['product']['country'] = $dv_country_product; $param['product']['proofOfInterest'] = $dv_proofOfInterest; $param['searchedAddress']['legalForm'] = "PERSON"; $param['searchedAddress']['address']['name'] = $dv_lastName; $param['searchedAddress']['address']['firstName'] = $dv_firstName; $param['searchedAddress']['address']['gender'] = $dv_gender; $param['searchedAddress']['address']['dateOfBirth'] = $dv_birthday; $param['searchedAddress']['address']['location']['street'] = $dv_street; $param['searchedAddress']['address']['location']['house'] = 2; $param['searchedAddress']['address']['location']['city'] = $dv_city; $param['searchedAddress']['address']['location']['zip'] = $dv_zip; $param['searchedAddress']['address']['location']['country'] = $dv_country; $header['credentials']['user'] = $dv_user; $header['credentials']['password'] = $dv_pw; $header['correlationID'] = $dv_correlationID; if($global['credit-assessment-dv-test-mode']) { $soap_location = "https://test-dspone.deltavista.com/dspone/services/OrderCheckService"; } else { $soap_location = "https://dspone.deltavista.com/dspone/services/OrderCheckService"; } $phpClient = new SoapClient("https://" . $shop_url .'/kasse/dspone-interface-ordercheck_V001.wsdl', array('location ' => $soap_location,'trace' => 1,'exceptions' => 1,'soap_version' => SOAP_1_1 ) ); $ns = "http://www.deltavista.com/dspone/ordercheck-if/V001"; $soap_header = new SOAPHeader($ns, "messageContext", $header); $phpClient->__setSoapHeaders($soap_header);try { $result = $phpClient->orderCheck($param); } catch (Exception $e) { /* print_r($e);print $phpClient->__getLastRequest();print $phpClient->__getLastResponse();*/ } // check response from credit assessmentif(isset($result) && $result->myDecision->decision == 'GREEN') { $ca_ok_dv = 1; } else { $ca_ok_dv = 0; } } else { $ca_ok_dv = 0; } ?>


Can anyone help me out, please, to get that work for me?
If any further infrmation is needed, please ask for it.
Thanks in advance to all.



Stefan

Re: Problems after installing

$
0
0
Re: Problems after installing
Westwind.Globalization
Re: Problems after installing
Mar. 3, 2015
11:13 am
4AN0O2SFYShow this entire thread in new window
Gratar Image based on email address
From:Jacco
To:Rick Strahl
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?






Re: What to use of the big variaty of methods :-)?

$
0
0
Re: What to use of the big variaty of methods :-)?
FoxPro Programming
Re: What to use of the big variaty of methods :-)?
Mar. 3, 2015
12:18 pm
4AN0QDLJHShow this entire thread in new window
Gratar Image based on email address
From:Rick Strahl
To:Stefan Zehner
Stefan,

Since you're just starting out with this could I suggest you take a look at the West Wind Web Service Proxy generator instead? wwSoap has been deprecated years ago in favor of this approach that's more automated and much more complete in support of a variety of services.

http://west-wind.com/WsdlGenerator/

+++ Rick ---



Hi there,

first time I shall asking a SOAP-Webservice fpr information.
I got a wdsl-file and information to create an XML to send as question.
Within the wsdl-file I can locate the service 'OrderCheck'.

So I go and start to create with wwsoap the following code:

DO WWSOAP lcWSDL = "dspone-interface-ordercheck_V001.wsdl"this.oSOAP = CREATEOBJECT("wwSOAP")this.oSoap.cServerUrl = ALLTRIM(pcWebService)this.oSOAP.ParseServiceWSDL(lcWSDL)IFthis.oSOAP.lError = .T.MESSAGEBOX("Die Verbindung wurde mit einem Fehler abgebrochen: " + CHR(13) + ;TRANSFORM(this.oSOAP.cErrorMsg)+CHR(13)+;"Bitte wiederholen Sie es später nochmals.",64,_screen.caption)RETURN .F.ENDIFthis.oSOAP.AddParameter("username",this.cUserName)this.oSOAP.AddParameter("password",this.cPassword)THIS.oSOAP.cRequestXML = pcString lvResult = this.oSOAP.CallMethod("OrderCheck")

Most of the code comes from the wwsoap help. But now I recognized other methods, wich I can call and because got the following error with the code above:

The endpoint reference (EPR) for the Operation not found is http://test-dspone.deltavista.com/dspone/services/OrderCheckService and the WSA Action = https://test-dspone.deltavista.com/dspone/services/OrderCheckService.OrderCheck. If this EPR was previously reachable, please contact the server administrator.

I askes myself: Is my way the right way?

I have an example in PHP. but can't read and work it out the right way to get it in use for me, FoxPro and wSOAP:

<?php /*** Credit assesment check from Deltavista** A SOAP Request with the current user-information will be sent to Deltavista* Allow only decision "GREEN" to show up "Zahlen per Rechnung"** @autor xxxxxxx***/if($dv_aktiv == 1 && $global['credit-assessment-dv-active'] == true) { // data for XML file // credentials $dv_user = 'xxxxxx'; $dv_pw = 'xxxx'; // UniqueIDto link request to response $dv_correlationID = md5($customer_data['nachname'] . $customer_data['vorname']); // Order check request /* Available: QuickCheckConsumer CreditCheckConsumer QuickCheckBusiness CreditCheckBusiness IdentificationSearch*/ $dv_product = 'QuickCheckConsumer'; // ISO_3166-1_alpha-3 Country Code $dv_country_product = "DEU"; // Code "BER"for credit assessment $dv_proofOfInterest = 'BER'; // customerif($customer_data['anrede'] == 'Herr') { $dv_gender = 'MALE'; } elseif($customer_data['anrede'] == 'Frau') { $dv_gender = 'FEMALE'; } else { $dv_gender = 'UNKNOWN'; } $dv_firstName = $customer_data['vorname']; $dv_lastName = $customer_data['nachname']; $dv_street = $customer_data['strasse']; $dv_city = $customer_data['ort']; $dv_zip = $customer_data['plz']; $dv_country = $customer_data['land']; $db_country = new DB_Example; $db_country->query("SELECT * FROM `mod_shop_laender` WHERE id = $dv_country");if($db_country->next_record()) { $dv_country = convertToISO3166_1alpha3($db_country->f('kuerzel')); } $dv_birthday = date("Ymd", strtotime($customer_data['geburtsdatum'])); $param = array(); $param['product']['name'] = $dv_product; $param['product']['country'] = $dv_country_product; $param['product']['proofOfInterest'] = $dv_proofOfInterest; $param['searchedAddress']['legalForm'] = "PERSON"; $param['searchedAddress']['address']['name'] = $dv_lastName; $param['searchedAddress']['address']['firstName'] = $dv_firstName; $param['searchedAddress']['address']['gender'] = $dv_gender; $param['searchedAddress']['address']['dateOfBirth'] = $dv_birthday; $param['searchedAddress']['address']['location']['street'] = $dv_street; $param['searchedAddress']['address']['location']['house'] = 2; $param['searchedAddress']['address']['location']['city'] = $dv_city; $param['searchedAddress']['address']['location']['zip'] = $dv_zip; $param['searchedAddress']['address']['location']['country'] = $dv_country; $header['credentials']['user'] = $dv_user; $header['credentials']['password'] = $dv_pw; $header['correlationID'] = $dv_correlationID; if($global['credit-assessment-dv-test-mode']) { $soap_location = "https://test-dspone.deltavista.com/dspone/services/OrderCheckService"; } else { $soap_location = "https://dspone.deltavista.com/dspone/services/OrderCheckService"; } $phpClient = new SoapClient("https://" . $shop_url .'/kasse/dspone-interface-ordercheck_V001.wsdl', array('location ' => $soap_location,'trace' => 1,'exceptions' => 1,'soap_version' => SOAP_1_1 ) ); $ns = "http://www.deltavista.com/dspone/ordercheck-if/V001"; $soap_header = new SOAPHeader($ns, "messageContext", $header); $phpClient->__setSoapHeaders($soap_header);try { $result = $phpClient->orderCheck($param); } catch (Exception $e) { /* print_r($e);print $phpClient->__getLastRequest();print $phpClient->__getLastResponse();*/ } // check response from credit assessmentif(isset($result) && $result->myDecision->decision == 'GREEN') { $ca_ok_dv = 1; } else { $ca_ok_dv = 0; } } else { $ca_ok_dv = 0; } ?>


Can anyone help me out, please, to get that work for me?
If any further infrmation is needed, please ask for it.
Thanks in advance to all.



Rick Strahl
West Wind Technologies

Making waves on the Web
from Maui

Re: Problems after installing

$
0
0
Re: Problems after installing
Westwind.Globalization
Re: Problems after installing
Mar. 3, 2015
12:18 pm
4AN0QDLJ5Show this entire thread in new window
Gratar Image based on email address
From:Rick Strahl
To:Jacco
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

Re: Problems after installing

$
0
0
Re: Problems after installing
Westwind.Globalization
Re: Problems after installing
Mar. 3, 2015
12:50 pm
4AN0RIJZUShow this entire thread in new window
Gratar Image based on email address
From:Jacco
To:Rick Strahl
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?








Re: Problems after installing

$
0
0
Re: Problems after installing
Westwind.Globalization
Re: Problems after installing
Mar. 3, 2015
06:02 pm
4AN12OLGWShow this entire thread in new window
Gratar Image based on email address
From:Rick Strahl
To:Jacco
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


Re: What to use of the big variaty of methods :-)?

$
0
0
Re: What to use of the big variaty of methods :-)?
FoxPro Programming
Re: What to use of the big variaty of methods :-)?
Mar. 3, 2015
11:35 pm
4AN1EJUGGShow this entire thread in new window
Gratar Image based on email address
From:Stefan Zehner
To:Rick Strahl
Hi Rick,

thanks for your answer.
I wanted to try your generator, but get errors:

---------------------------
West Wind Web Service Proxy Generator
---------------------------
Service Generation failed:
WSDL Parsing Error: Microsoft (R) Web Services Description Language Utility
[Microsoft (R) .NET Framework, Version 2.0.50727.3038]
Copyright (C) Microsoft Corporation. All rights reserved.
Error: Die OrderCheckServiceBinding-Bindung von Namespace 'http://www.deltavista.com/dspone/ordercheck_V001' kann nicht importiert werden.
- Der orderCheck-Vorgang kann nicht importiert werden.
- Das Element 'http://www.deltavista.com/dspone/ordercheck-if/V001:messageContext' ist nicht vorhanden.
If you would like more help, please type "wsdl /?".

But anyway, why can't I use wwSoap?

Thanks a lot!
Stefan


Stefan,

Since you're just starting out with this could I suggest you take a look at the West Wind Web Service Proxy generator instead? wwSoap has been deprecated years ago in favor of this approach that's more automated and much more complete in support of a variety of services.

http://west-wind.com/WsdlGenerator/

+++ Rick ---


Stefan

Cookies

$
0
0
Cookies
FoxInCloud
Cookies
Mar. 4, 2015
06:23 am
4AO0DPJMRShow this entire thread in new window
Gratar Image based on email address
From:Ryan Rindlisbacher
To:All
As per our customer's request, they don't want to keep logging in on their mobile phones and would like us to store their credentials. Are cookies the best way to do this in FIC? If so, does anyone have sample code or instructions on how to create cookies and how to read them? Thanks!

West Wind Web Monitor

Re: Soap problmes

$
0
0
Re: Soap problmes
FoxPro Programming
Re: Soap problmes
Mar. 4, 2015
07:21 am
4AO0FR96WShow this entire thread in new window
Gratar Image based on email address
From:Edward K. Marois
To:Rick Strahl
Dear Rick:

This is Edward from Realty Information Systems writing again.

I appreciate that you will consult us but will take that under advisement.

I did a lot of work and have the following problem....

FUNCTION AuthorizeTransactionWithCustomer(...... as created by the '.NET Web Service Proxy Generator'

Is displaying the following Error

Method 'TransactionProcessing.TransactionProcessing.AuthorizeTransactionWithCustomer' not found

Thinking I could change

cComClass = "TransactionProcessing.TransactionProcessing"

to

cComClass = "TransactionProcessing"

Did NOT effect the system well

Please Advice

I don't think so. I don't think wwSoap cares about a bigger header with additional namespace defines in it. It's how the namespaces are applied to the XML document that matters. It looks to me that they're adding a bunch of SOAP feature namespaces and if those are used the service is going to break for sure.

IAC, you're kind of on your own with this. wwSoap has been deprecated about 6 years ago and replaced with the more resilient technology in the West Wind Web Service Proxy Generator. Part of the reason for this change was that the SOAP parsing features were offloaded to a system component rather than a Fox component that manually has to configure each little document feature and keep up with various SOAP spec changes and all the insane differences in SOAP behavior for different SOAP server implementations.

The newer tooling automates generation of the proxy and can much more easily keep up with changes simply by regenerating the proxies in a few steps. Anyway something to think about if you need to maintain this service for a long while.

That's not to say wwSoap won't work, but it requires a lot more manual tweaking to get any non-standard features to work with wwSoap. I haven't looked at wwSoap code in years...

+++ Rick ---



Dear Rick:

Our Payment Portal Provider has changed some things and it has completely stopped working.

The line of code in the program that is that is crashing that is part of the soap program that you provided is
**************************************************
THIS.oWSDLMethod = loSD.GetMethod(lcMethod) - ERROR 1924 LOSD is NOT and Object
**************************************************

After 2 days we got the message from them...

a security update has been implemented for our Web Services users that eliminates the ability to access EPS Web Service endpoints in a browser.

You will need to point the system that you use to create transactions to the WSDLs that are attached.

I have reviewed the code samples that they sent me and the only real difference is the header.

They send

<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="https://ssl.selectpayment.com/PV" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" targetNamespace="https://ssl.selectpayment.com/PV" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:types>


I am currently using

<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" >

If I change the code in 'FUNCTION CreateSoapRequestXML'

Will this solve the problem ???

Edward K. Marois
Realty Information Systems



West Wind Web Monitor

Re: Problems after installing

$
0
0
Re: Problems after installing
Westwind.Globalization
Re: Problems after installing
Mar. 4, 2015
08:53 am
4AO0J28LLShow this entire thread in new window
Gratar Image based on email address
From:Jacco
To:Rick Strahl
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?











HTML Help Builder

Re: Cookies

$
0
0
Re: Cookies
FoxInCloud
Re: Cookies
Mar. 4, 2015
08:58 am
4AO0J8QGHShow this entire thread in new window
Gratar Image based on email address
From:Thierry Nivelet (FoxInCloud)
To:Ryan Rindlisbacher
Hi Ryan,

FoxInCloud sets cookies automatically so you don't need to care.

Each couple (browser+machine) is assigned a cookie aka session ID; if existent, this cookie is part of any request received by the application; if no active session exists for this cookie, FAS opens one; empty of course.

sessions expire after a delay you set in xxx*.ini;

SessionTimeOutMin=30
; - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
; {en} User disconnect / session expiration timeout in minutes
; {en} - Development: choose a rather high value (say 3000) to stay logged-in across server restart
; {en} - Production: choose a value matching your app's security requirements
; {en}   > When session expires, user is automatically redirected to app home page
; {en}   > Any expired session no longer accounts for Concurrent Active Session (CAS)
; - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

before executing any method of a form, eg .Init(), FAS runs .wUserSet(userID), where userID is the user ID for your application, of whatever type (integer or string generally), or .null. if unknown.

your login form.wUserSet() method could do:

procedure wUserSet(userID)ifempty(nvl(m.userID, ''))if !used('wwSession') use wwSession in 0 again sharedendiflocalarray aaselecttop 1 userID from wwSession where !empty(userID) order by lastin desc into array aaif_tally> 0 userID = m.aa[1]endif use in wwSessionendifif !empty(m.userID) and seek(cast(m.userId as yourType), 'user', 'ID')this.txtLogin.Value = user.loginthis.txtPass.Value = user.passendif



As per our customer's request, they don't want to keep logging in on their mobile phones and would like us to store their credentials. Are cookies the best way to do this in FIC? If so, does anyone have sample code or instructions on how to create cookies and how to read them? Thanks!

HTML Help Builder

Post Buffer too Big

$
0
0
Post Buffer too Big
Web Connection
Post Buffer too Big
Mar. 4, 2015
10:08 am
4AO0LPZZ1Show this entire thread in new window
Gratar Image based on email address
From:Bob Lucas
To:All
I have a website that occasionally generates an error:

Request data conversion failed or the POST buffer was too big.

This happens with the uploading of PDF files which is a big part of the internal side of the website.
The pdf files are not too big, generally under a MB in size.

I think it is a message from the web connection dll and when this happens the only solution is to reboot the server.

Restarting IIS does not make a difference.
The server is IIS6 on windows server 2006.

I'd like to find a solution beyond a server reboot.
So if anyone has some idea of the cause of this, I am all ears!

Bob

HTML Help Builder

Re: Soap Upload

$
0
0
Re: Soap Upload
FoxPro Programming
Re: Soap Upload
Mar. 4, 2015
10:12 am
4AO0LVLWJShow this entire thread in new window
Gratar Image based on email address
From:Edward K. Marois
To:Rick Strahl
Dear RicK:

Consulting is sounding better and Better

Please disregard last message

The latest Findings are

FUNCTION AuthorizeTransactionWithCustomer(...... as created by the '.NET Web Service Proxy Generator'

Is displaying the following Error

Method 'TransactionProcessing.TransactionProcessing.AuthorizeTransactionWithCustomer' not found

This Error message was found the documentation and Clearly States that the Fields are not being formated properly


From the .NET Reflector

AuthorizeTransactionWithCustomer(Int64, String, WSCustomer, Boolean, Boolean, WSTransaction, WSOwnerApplication):WSResponceMessage

*Disassembler
[SoapDocumentMethod("https://ssl.selectpayment.com/PV/AuthorizeTransactionWithCustomer", RequestNamespace="https://ssl.selectpayment.com/PV", ResponseNamespace="https://ssl.selectpayment.com/PV", Use=SoapBindingUse.Literal, ParameterStyle=SoapParameterStyle.Wrapped)]
public WSResponseMessage AuthorizeTransactionWithCustomer(long storeId, string storeKey, WSCustomer customer, bool createCustomerIfDoesNotExists, bool updateCustomerIfExists, WSTransaction transaction, WSOwnerApplication ownerApplication)
{
return (WSResponseMessage) base.Invoke("AuthorizeTransactionWithCustomer", new object[] { storeId, storeKey, customer, createCustomerIfDoesNotExists, updateCustomerIfExists, transaction, ownerApplication })[0];
}

THe Code that I am using is

LOCAL mSCSTORID AS Long
LOCAL mSCSORKEY AS String
LOCAL mCUSTOMER_NUMER AS WSCustomer
LOCAL lcText AS WSTransaction
LOCAL mAPP AS WSOwnerApplication


lvResult = loProxy.AuthorizeTransactionWithCustomer(mSCSTORID,mSCSORKEY,mCUSTOMER_NUMER,1,1,lcText,mAPP)

Also

lvResult = loProxy.AuthorizeTransactionWithCustomer(mSCSTORID,mSCSORKEY,mCUSTOMER_NUMER,.T.,.T.,lcText,mAPP)

Please Advise



Edward,

You know if you're still stuck it might help to spent hour on consulting time with me to get this set up. I can take a look and make sure it'll work the way you expect it to and get you over the hump to start using the service instead of struggling with getting the calls to go through.

Web Services tend to be finicky and it can be tricky at times, especially if you're unfamiliar with the terminology. And to be sure some services just don't work period due to vendor incompatibilities. However seeing this is a .NET service on the other end I'm pretty sure this service will work jsut fine.

http://west-wind.com/contact.aspx

+++ Rick ---



Dear Rick:

I struggled with this all day yesterday and today and was about to give up hope.

Then I got your latest email and it worked and now there is hope.

You get the official "Your the Man" for today


Edward,

Sounds to me they sent you the WSDL files as attachments. You can copy those to disk and then import them with the WSDL generator. Click the browse button and navigate to the file system to get them in there.

+++ Rick ---


Dear Rick:

Please note that I have very little to no experience with SOAP programming.

I bought the "West Wind Web Service Proxy" but I do not think that it is going to be any help since it is the WSDL requests that are making the program crash.

Basically they have removed them from the web site and we are suppose to just 'Hard Code' The entire thing.

I spent 2 days getting the SOAP program to run without the WSDL requests.

We also upgraded to Visual Foxpro 9. which I am keeping regardless because all the 'Bugs' in the Editor have been fixed.

Anyway.

Unless I am missing something there is really only 3 things that have to be configured

The URL
The SOAP REQUEST
The XML Page

Please review the letter that I sent them

I have a feeling that their code samples were not updated since they are pointed back to the same URLs.

Dear Sirs:This is Edward from Realty Information Systems (203-869-8954) SUPPORT@RISSOFT.COM writing. We have been having problems with the SOAP requests to your web site and would liketo request some help. I have removed the WSDL requests to your web site as per your request As announced in November (November 4, 2014 email), a security update has been implemented for our Web Services users that eliminates the ability to access EPS Web Service endpoints in a browser. You will need topoint the system that you use tocreate transactions to the WSDLs that are attached. Please let me know if you have any questions or require additional information. I have reviewed the code samples that have been provided and have attempted the following changes. ************************************************************ I end up with the following Error: “Server did not recognize the valueof HTTP Header SOAPAction: https://ssl.selectpayment.com/PV/AuthorizeTransactionWithCustomer” ************************************************************ Please see below setting and please suggest a solution. “SOAPAction: https://ssl.selectpayment.com/PV/AuthorizeTransactionWithCustomer” this.cServerUrl = "https://ssl.selectpayment.com/PV/PaymentVault.asmx" XMLPAGE <?xml version="1.0" encoding="utf-8"?<soap:Envelope xmlns:s="http://www.w3.org/2001/XMLSchema" mlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="https://ssl.selectpayment.com/PV" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" targetNamespace="https://ssl.selectpayment.com/PV" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"><soap:Body><AuthorizeTransactionWithCustomer xmlns="https://ssl.selectpayment.com/PV"><storeId>208889</storeId><storeKey>8hzrqteh90D0rsualF/0VBLi0yyk</storeKey><customer><EntityId>64433</EntityId><IsCompany>0</IsCompany><CustomerNumber>CARM-2015-3797903-NON-TENANT_DEPOSIT</CustomerNumber><FirstName>NON-TENANT-DEPOSIT</FirstName><LastName>UNKOWN</LastName></customer><createCustomerIfDoesNotExists>1</createCustomerIfDoesNotExists><updateCustomerIfExists>1</updateCustomerIfExists><<span class="commands">transaction><EntityId>64433</EntityId><LocationId>934289</LocationId><PaymentOrigin>Mailed_In</PaymentOrigin><AccountType>Checking</AccountType><OperationType>Sale</OperationType><EffectiveDate>2015-03-01T16:00:57</EffectiveDate><TotalAmount>1.00</TotalAmount><BatchNumber/><TransactionNumber>3797903</TransactionNumber><CheckMICRLine>t021101108t1040088576683o 1477</CheckMICRLine><CheckMICRSymbolSet>TOAD ?</CheckMICRSymbolSet><RoutingNumber>021101108</RoutingNumber><AccountNumber>1040088576683</AccountNumber><CheckNumber>1477</CheckNumber><NameOnAccount>NON-TENANT-DEPOSIT</NameOnAccount><NotificationMethod>Merchant_Notify</NotificationMethod><FaceFeeType>Face</FaceFeeType><CheckFrontImageBytes_TiffG4>SUkqAPYlA …..AAIAA=</CheckFrontImageBytes_TiffG4><CheckRearImageBytes_TiffG4>8CQA….. …AAAGQAAIAA=</CheckRearImageBytes_TiffG4></transaction></AuthorizeTransactionWithCustomer></soap:Body></soap:Envelope>







Re: Problems after installing

$
0
0
Re: Problems after installing
Westwind.Globalization
Re: Problems after installing
Mar. 4, 2015
01:15 pm
4AO0SETMEShow this entire thread in new window
Gratar Image based on email address
From:Rick Strahl
To:Jacco
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

Re: Post Buffer too Big

$
0
0
Re: Post Buffer too Big
Web Connection
Re: Post Buffer too Big
Mar. 4, 2015
01:15 pm
4AO0SETM5Show this entire thread in new window
Gratar Image based on email address
From:Rick Strahl
To:Bob Lucas
Hi Bob,

There's a post buffer limit flag in wc.ini that you can set. I think the default is 2 megs or somewhere in that range. set the number to 0 or a large number to account for your largest upload.

;*** Limits the sizeof data posted to the Web Server ;*** In bytes. 0 means allow any size. Note: Oversize ;*** buffers result in Server 500 errors. PostBufferLimit=0

+++ Rick ---



I have a website that occasionally generates an error:

Request data conversion failed or the POST buffer was too big.

This happens with the uploading of PDF files which is a big part of the internal side of the website.
The pdf files are not too big, generally under a MB in size.

I think it is a message from the web connection dll and when this happens the only solution is to reboot the server.

Restarting IIS does not make a difference.
The server is IIS6 on windows server 2006.

I'd like to find a solution beyond a server reboot.
So if anyone has some idea of the cause of this, I am all ears!

Bob



Rick Strahl
West Wind Technologies

Making waves on the Web
from Maui

Re: What to use of the big variaty of methods :-)?

$
0
0
Re: What to use of the big variaty of methods :-)?
FoxPro Programming
Re: What to use of the big variaty of methods :-)?
Mar. 4, 2015
01:15 pm
4AO0SETLVShow this entire thread in new window
Gratar Image based on email address
From:Rick Strahl
To:Stefan Zehner
Stefan,

Do you have a WSDL URL for the service you can share I can take a quick look.

You can use wwSoap, but I won't be much help trying to figure out issues with the service if there are any. I can tell you if the proxy generator is failing on it that it's most likely a fairly off standard service you're dealing with (or a WS* service) so you are also going to have issues with wwSOAP which expects a fairly common structure.

But wwSoap works the way it always has it just requires a lot of manual tweaking of namespaces/headers etc. to get it to work if the service doesn't 'just work'. This is the primary reason I stopped officially supporting it - too many variations and tedious configuration.

+++ Rick ---



Hi Rick,

thanks for your answer.
I wanted to try your generator, but get errors:

---------------------------
West Wind Web Service Proxy Generator
---------------------------
Service Generation failed:
WSDL Parsing Error: Microsoft (R) Web Services Description Language Utility
[Microsoft (R) .NET Framework, Version 2.0.50727.3038]
Copyright (C) Microsoft Corporation. All rights reserved.
Error: Die OrderCheckServiceBinding-Bindung von Namespace 'http://www.deltavista.com/dspone/ordercheck_V001' kann nicht importiert werden.
- Der orderCheck-Vorgang kann nicht importiert werden.
- Das Element 'http://www.deltavista.com/dspone/ordercheck-if/V001:messageContext' ist nicht vorhanden.
If you would like more help, please type "wsdl /?".

But anyway, why can't I use wwSoap?

Thanks a lot!
Stefan


Stefan,

Since you're just starting out with this could I suggest you take a look at the West Wind Web Service Proxy generator instead? wwSoap has been deprecated years ago in favor of this approach that's more automated and much more complete in support of a variety of services.

http://west-wind.com/WsdlGenerator/

+++ Rick ---




Rick Strahl
West Wind Technologies

Making waves on the Web
from Maui

Re: Problems after installing

$
0
0
Re: Problems after installing
Westwind.Globalization
Re: Problems after installing
Mar. 4, 2015
01:20 pm
4AO0SLZJPShow this entire thread in new window
Gratar Image based on email address
From:Jacco
To:Rick Strahl
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?














Re: Problems after installing

$
0
0
Re: Problems after installing
Westwind.Globalization
Re: Problems after installing
Mar. 4, 2015
02:03 pm
4AO0U4GPDShow this entire thread in new window
Gratar Image based on email address
From:Rick Strahl
To:Jacco
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()]publicobject 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";returnnew { 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?













Viewing all 10393 articles
Browse latest View live