Load the code DOM from a binary - reflection

Is it possible to load the CodeDOM from a .NET binary created using C#?

No. CodeDOM is limited to generated and/or parsing source.

Related

Digital Signature for ASP.NET Dynamic Binaries

Is there a way to put a digital signature on the Temporary Binaries generated as part of ASP.NET Dynamic Compilation?
I was able to solve this using using assemblyPostProcessorType in the compilation tag of the web.config. Basically calling SignTool.exe with certificate info post compilation.

How to convert pdb file to xml using mdbg?

How to convert PDB file to XML file? I tried the source from below, but it's taking exe as an input. Is there any opensource converter available?
The ISymbolReader interface from Microsoft needs a metadata token, which can be retrieved from the assembly using Reflection. I don't know a way to read the PDB on its' own - for my purposes, I always have the pdb and the assembly handy, so it hasn't been an issue for me.

Why do I need to deliver DevExpress.Printing.v14.2.Core.dll

I have implemented a WPF application using DevExpress controls.
When I was finished, I optimized my references in Visual Studio (using Resharper). I have the following references left:
DevExpress.Data.v14.2.dll
DevExpress.Mvvm.v14.2.dll
DevExpress.Xpf.Core.v14.2.dll
DevExpress.Xpf.Grid.v14.2.dll
DevExpress.Xpf.Grid.v14.2.Core.dll
DevExpress.Xpf.Ribbon.v14.2.dll
When starting the application on a clean OS, it crashes. With Process Monitor, I find that it is looking in 10 different places for DevExpress.Printing.v14.2.Core.dll and cannot find it.
That DLL is 3 MB in size and I'd like to avoid to deliver it, if possible.
Dependency walker seems to not work well for .NET.
I have read DevExpress about required libraries, but that is for XtraReports, which I'm not using in my application.
Why does my application look for that DLL if it is not referenced?
Found the answer using JetBrains dotPeek:
DevExpress.Xpf.Core.v14.2.dll and DevExpress.Xpf.Grid.v14.2.dll both have a reference to DevExpress.Printing.v14.2.Core.dll.
Your application contains the DXGrid. Thus, according to the DXGrid's required Redistributable Assemblies list, the DevExpress.Printing.v14.2.Core.dll assembly contains classes that allows to implement the functionality for DXGrid's printing and exporting based on DXPrinting library.

DevExpress XtraGrid ExportToXls is not working on all desktops: what are its prerequisites?

What are the prerequisites for the XtraGrid's ExportToXls method? To accomplish this, does some DLL have to be included in addition to the XtraGrid DLL? Does the export use Office interop behind the scenes? I am trying to get to the bottom of a problem where it works on some machines and fails on others.
What are the prerequisites for the XtraGrid's ExportToXls method?
To accomplish this, does some DLL have to be included in addition to the
XtraGrid DLL?
Ans:
Source: Export Methods and Settings and GridControl.ExportToXls(String,XlsExportOptions) Method
The XtraGrid control provides a set of methods that allow you to export data in various formats. These methods export data using routines implemented in the XtraPrinting Library.
GridControl.ExportToXls(String) Method method indirectly calls the DevExpress.XtraPrinting.PrintingSystemBase.ExportToXls method of the XtraPrinting Library. If this library is not available the method does nothing. For details on the ExportToXls method see the DevExpress.XtraPrinting.PrintingSystemBase.ExportToXls topic
Does the export use Office interop behind the scenes?
Regarding this you need to ask the DevExpress guys for clearification. As per my understanding, it does not require any Microsoft Office interop dll references.
The GridControl.ExportToXls method indirectly calls the PrintingSystemBase.ExportToXls method of the DevExpress Printing Library (DevExpress.Printing.v12.2.Core.dll). If this library is not available the method does nothing. Thus you should only reference the DevExpress.Printing.v12.2.Core.dll library in your project. There is no any Office references needed.
For general information on exporting data in the GridControl refer to Export Overview.
To get guaranteed assistance with your specific problem contact with DevExpress Support directly.

Tool in .NET with source code to create and manipulate xml file

I want a web application in ASP.NET(any version below VS 2010) in which i can create a xml file and edit its node and enter values and save that modified xml.
Somewhat similar to the tool found at below link:
http://finaldownload.com/components_libraries_xml_viewer-23601-download.html
Use the builtin XMLReader/XMLWriter in .NET.
Examples:
http://www.stardeveloper.com/articles/display.html?article=2009030701&page=1
http://www.xmlplease.com/create-xml-writer
https://web.archive.org/web/20210323155432/http://www.4guysfromrolla.com/articles/092403-1.aspx
http://www.google.com/search?q=asp.net+read+write+xml

Resources