i have xsd file using validate xml. problem error. error not thrown when run code in local machine. if run code in integration, error thrown.
dim strschemapath string = string.empty dim xmlsettings xmlreadersettings = nothing dim msstream memorystream = nothing isxmlvalid = true msstream = new memorystream(system.text.asciiencoding.utf8.getbytes(xmlrequest)) strschemapath = path.combine(system.appdomain.currentdomain.basedirectory, "xsd\input.xsd") xmlsettings = new xmlreadersettings() xmlsettings.validationtype = validationtype.schema xmlsettings.schemas.add(nothing, strschemapath)
there no issues access of file. there issue files copied in server path. can manage files in properties. changed file property copy , worked.
Comments
Post a Comment