All the pages served by Nathean Analytics are implemented using ASP/Net Razor technology. They are precompiled for performance purposes. The means that the original cshtml files are not available for local editing.

If your license allows this we can share this files with you and allow you to alter the content and then to compile them for inclusion in your web site.

It is recommend that you do this on a stand alone developer computer rather than a deployment server and you may also need to install the dotNet Framework 4.6.1 Developer SDK in order to include all required references.

This must be a copy of
Repos\LGXECO\LogixEco\LogixEco\obj\Release\AspnetCompileMerge\Source
from a developer computer which has compiled a release build on the product.

Copy these to a new folder eg C:\TestSites\CompileHomePage\Source
Create a new folder called C:\TestSites\CompileHomePage\Compiled

Make the necessary alterations to the specific .cshtml files that you need to make in C:\TestSites\CompileHomePage\Source\Views and from C:\TestSites\CompileHomePage\Source\Areas.
Make sure that C:\TestSites\CompileHomePage\Source\Bin is empty

Open a command prompt in administrator mode and change directory into that Compiled folder

C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_compiler.exe -v /temp -p C:\TestSites\CompileHomePage\Source C:\TestSites\CompileHomePage\Compiled -fixednames -f

This looks for cshtml files in C:\TestSites\CompileHomePage\Source and all it’s subdirectories and compiles them to C:\TestSites\CompileHomePage\Compiled\bin

Ensure that C:\TestSites\CompileHomePage\Compiled is empty before you compile.

The files are compiled into .compiled and App-web-*.dll files. But it’s the App-web-*.dll.

If you limit the source folder to just the files you need to change, you will see that in the bin folder only the updated files which you need to copy.

After backing up the original files and emptying the target bin folder, copy all the files from CompileHomePage\Compiled\bin to the target Nathean Analytics bin folder

Hint, if you get the following message
error ASPCONFIG: It is an error to use a section registered as allowDefinition=‘MachineToApplication’ beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.

It means that you have included web.config files in the source folder or subfolders.

Revision: 6
Last modified: Aug 13, 2019

Feedback

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.

Post your comment on this topic.

Post Comment