Hi all,
I have added a new Item in my Solution Test.sql which has got
some sql scripts and i have changed the Build Action Property of the
file to embedded Resources
private string GetSql(string Name)
{
// Gets the current assembly.
Assembly Asm = Assembly.GetExecutingAssembly();
// Resources are named using a fully qualified name.
Stream strm =
Asm.GetManifestResourceStream(Asm.GetName().Name + "." + Name);
// Reads the contents of the embedded file.
StreamReader reader = new StreamReader(strm);
return reader.ReadToEnd();
}
}
i wrote this function to read the Embedded Resource when it executes
the Stream Reader it gives an Error
System.IO.__UnmanagedMemoryStream
Can any one let me know where i went wrong
Thanks in Advance
thomson