SmartAssembly - 5.5

SmartAssembly

Learning SmartAssembly - 5.5

Setting up a custom web server for error reporting

This feature is available in SmartAssembly Pro only.

You can set up a custom web server for error reporting. This changes SmartAssembly's error reporting feature, so that error reports are sent to your own server, rather than the default one operated by Red Gate.

To set up a custom web server, you will need the custom web server files. Download the zip archive containing these files.

  1. Create a directory for SmartAssembly on your web server.
    For example, http://www.myWebServer.com/saWebServices/.
  2. Copy the three .asmx files (Login.asmx, Reporting.asmx, and UploadReportLogin.asmx) and the Web.config file from the zip archive to the directory you just created.
  3. Copy ClientAccessPolicy.xml into the root directory of your web server.
  4. Copy SmartAssembly.WebService.dll into the bin directory of your web server.
  5. Verify that the first part of the setup is correct by calling the web service from your browser: http://www.myWebServer.com/saWebServices/UploadReportLogin.asmx.

    Confirm that you are displaying the standard web service welcome page.

  6. Create a folder on the web server, which is not publicly accessible. This folder is where reports are stored when they are uploaded. The web service must have write access to the folder and its sub-folders. In the example below, the physical path for the reports folder is c:\MyCustomWebServer\. Edit the server's web.config file to add this location:

    <configuration>

     ...

      <appSettings>

       <add key="ReportsFolder" value="c:\MyCustomWebServer\" />

      </appSettings>

     ...

    </configuration>

  7. Rebuild your application to ensure that new exceptions are reported to your new custom web server.
  8. Test your new web service.

Was this article helpful?

Search support
Forums
Visit the SmartAssembly forum.

SmartAssembly

all products