-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: ArvindJ
Message 3 in Discussion
Hi Mrinal,,
Yeah after posting this message i debugged the
applications again........ in the manner similiar to u told....and i found
the root cause...u were right error was not due to validation but IO operation
using FileStream..............
//Fetch Name Space by reading the XSD file
FileStream fileStream;
XmlSchema schema;
THE FOLLOWING LINE WAS
CULPRIT
// fileStream = new FileStream(xsdPath, FileMode.Open);
I modified that to .....
fileStream = new FileStream(xsdPath,
FileMode.Open,FileAccess.Read,FileShare.Read);
AND IT WORKED....
Thanks a lot...
Arvind
----- Original Message -----
From:
Mrinal
To: BDOTNET
Sent: Tuesday, November 30, 2004 5:27
PM
Subject: Re: validating xml agianst xsd
schema
New Message on BDOTNET
validating xml agianst xsd schema
Reply
Reply to Sender Recommend
Message 2 in
Discussion
From: Mrinal
Hi ,
Well as you have described problem seems bit strange ,
actually it shouldn't happen , because while validating through
an xsd file , your program will get read access to the schema
file and problem you have mentioned will be in the case it also
has Write access .
Anyway can you check up following things in your code
:
1. Once you are running the application1 , then you can try
debugging application2 and see exctly the place where exception
comes , that may give you some more inputs regarding problem
.
2. Did you tried using a separate file , as you have
mentioned , because if we consider logically then different
programs / applications , even when they use same file ,
when it will load it in the memory, it will create another
instance , so there's no way it will use same memory instance
as
created initially , so in case your second method is
working , then i don't thing it will have any performance
implications .
regards ,
Mrinal
View other groups in this
category.
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you
received this message by mistake, please click the "Remove" link below. On the
pre-addressed e-mail message that opens, simply click "Send". Your e-mail
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]