[Geo] Geo extension throws DTD is prohibited in this XML document error converting phone 
Question
Forge component by - -
We have recently upgrade our cloud platform to 9.1. We have been using Geo to convert phone numbers and since the upgrade Geo versions 4.0.2 and 4.1 both throw a For security reasons DTD is prohibited in this XML document. To enable DTD processing set the DtdProcessing property on XmlReaderSettings to Parse and pass the settings into XmlReader.Create method error when calling Country_FormatPhoneNumber action.

Does anyone know how to work around this or have an alternative that can be used?

We are using Geo to validate the input phone numbers for the country selected and then store it in E164 format.

Same problem here and i downloaded the latest version.


For security reasons DTD is prohibited in this XML document. To enable DTD processing set the DtdProcessing property on XmlReaderSettings to Parse and pass the settings into XmlReader.Create method.

eSpaceVer: Id=55839, PubId=0, CompiledWith=11.7.2.6043
RequestUrl: https://appsdev.vab.be/VAB_API/rest/Validations/Phone?Telephone=0485129227 (Method: GET)
AppDomain: /LM/W3SVC/1/ROOT/VAB_API-172-132671751060734266
FilePath: C:\...\PS\running\VAB_API.089174145\
ClientIp: 172.21.252.41
Locale: en-US
DateFormat: dd-MM-yyyy
PID: 1336 ('w3wp', Started='31/05/2021 13:20:28', Priv=810Mb, Virt=2119725Mb)
TID: 152
Thread Name:
.NET: 4.0.30319.42000

For security reasons DTD is prohibited in this XML document. To enable DTD processing set the DtdProcessing property on XmlReaderSettings to Parse and pass the settings into XmlReader.Create method.
at ssGeo.RssExtensionGeo.MssGeo_FormatPhoneNumber(HeContext heContext, String inParamCountryCode, String inParamCallingFromCountryCode, String inParamPhoneNumber, Boolean& outParamValid, String& outParamInternational_PhoneNumber, String& outParamNational_PhoneNumber, String& outParamE164_PhoneNumber, String& outParamOutOfCountryCalling_PhoneNumber)
at ssGeo.Actions.ActionCountry_FormatPhoneNumber(HeContext heContext, String inParamCountryCode, String inParamCallingFromCountryCode, String inParamPhoneNumber, RCFormatedPhoneNumberRecord& outParamFormatedPhoneNumber)
at ssVAB_LB.RsseSpaceGeo.MssCountry_FormatPhoneNumber(HeContext heContext, String inParamCountryCode, String inParamCallingFromCountryCode, String inParamPhoneNumber, IRecord& outParamFormatedPhoneNumber)
   at ssVAB_LB.Actions.ActionValidations_Phone(HeContext heContext, String inParamCountryCode, String inParamPhone, STFormatedPhoneStructure& outParamResult)

mvp_badge
MVP

This error is coming from inside the .NET code. If you find a fix for this, I will gladly incorporate it and upload a new version, or you can join the team, I will accept you, and you can upload the fix yourself once you have it (which will give you the benefit in getting some points for your profile).

J.Ja

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.