0

I created a xsl file and i loaded using getmanifestresourcestream(); showing exception like value cannot be null and parameter:stream. here is the code i used can anyone help me where is the problem?

string path ="EDI.Generator.dbtoX12850canonical.xsl";
Stream strm1 = Assembly.GetExecutingAssembly().GetManifestResourceStream(path);
StreamReader reader1 = new StreamReader(strm1);
string myXslCanonical = reader1.ReadToEnd();
reader1.Close();

when I debug the code the stream is not reading the xsl file and showing null in strm1 object .

Soner Gönül
  • 97,193
  • 102
  • 206
  • 364
Amaladoss R
  • 89
  • 1
  • 2
  • 9

0 Answers0