On-premises official wiki:https://github.com/exceptionless/Exceptionless/wiki/Self-Hosting
- .NET 4.6.1 This one is not installed separately because I installed VS2015
- After installing Java JDK 1.8+, you need to configure the Java environment, and add the system variables: JAVA_HOME corresponds to C:\Program Files\Java\jdk1.8.0_102 which is the directory where the jdk is installed, and the user variable Path adds %JAVA_HOME%\bin; After the configuration is completed, open cmd and run
- java -version If an error is reported, there are many possibilities, search for it and there will be a solution, mine is to change the java.exe to javaa.exe in the C:\Windows\System32 directory, and run cmd again and it will be successful
- IIS 8+ This feeling is not mandatory, and IIS 7.5 of my win7 is also okay
- ElasticSearch 1.7.5 (Elasticsearch 2.x is not yet supported) Go to the connection address to download the 1.7.5 version, they have already stated that the 2.x version is not supported, you have to turn several pages to find this historical version, about on page 7, directly give a download link: elasticsearch-1.7.5, unzip it after downloading
- Download the latest latest Exceptionless release artifact ZIP, unzip it after downloading, copy the elasticsearch.yml in the directory to the bin directory of the elasticsearch decompression directory, execute the elasticsearch.bat in the elasticsearch directory, and see that the last line has it
- started means success, open http://localhost:9200/ you can see the relevant information, if es is a deployment service, copy it to the config directory and execute
- service.bat install|remove|start|stop|manager
- Create a new website in IIS, select the wwwroot directory in the Exceptional decompression directory, and the port can be customized here, for example, using 8004, application pool selection 4.0 integration
- Modify the site http://localhost:9200 with ElasticSearchConnectionString as es in web.config, modify <add key="BaseURL" value="http://localhost:8004/#" />, and pay attention to the "#" after
- Modify .constant('BASE_URL', 'http://localhost:8004') in app.config.*.js
- Open the http://localhost:8004 and you will see the login page, then create an account - > create a project, such as creating a console project, here you will be prompted how to use Exceptionless
- ExceptionlessClient.Default.Startup("oXX5BJqhS30ni045BqthqJtiSnpB0naMactfmYmI"), where oXX5BJqhS30ni045BqthqJtiSnpB0naMactfmYmI is the api-key
- Create a new console project and install it using NuGet
- Install-Package Exceptionless
Write the test code in Main:
Here you need to pay attention to the commented part, or the following call:
api-key specified twice, or via
Config with config:
This eliminates the need to specify in using.
Next, you can see the exception information in the http://localhost:8004/#/type/error/dashboard.
|