Skip to content

Update XmlFileErrorLog.cs#412

Open
nbulusanjr wants to merge 1 commit into
elmah:masterfrom
nbulusanjr:patch-1
Open

Update XmlFileErrorLog.cs#412
nbulusanjr wants to merge 1 commit into
elmah:masterfrom
nbulusanjr:patch-1

Conversation

@nbulusanjr

Copy link
Copy Markdown

Add Application name on xml file log

Add Application name on xml file log
@ThomasArdal

Copy link
Copy Markdown
Contributor

@atifaziz Same comment as in the other pull request 😄

@atifaziz atifaziz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should at least compile.


string appName = config.Find("applicationName", string.Empty);

if (appName.Length > _maxAppNameLength)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

XmlFileErrorLog.cs(79,34): error CS0103: The name '_maxAppNameLength' does not exist in the current context [A:\ELMAH\git\src\Elmah\Elmah.csproj]

{
throw new ApplicationException(string.Format(
"Application name is too long. Maximum length allowed is {0} characters.",
_maxAppNameLength.ToString("N0")));

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

XmlFileErrorLog.cs(83,21): error CS0103: The name '_maxAppNameLength' does not exist in the current context [A:\ELMAH\git\src\Elmah\Elmah.csproj]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants