Skip to content

StackOverflowException #1

@mehranrezaei

Description

@mehranrezaei

I created WebApi project using DNSManagement. I have the following API method:

public ResourceRecord[] GetZoneRecords(string name)
        {
            var zone = Server.GetZones().FirstOrDefault(x => x.Name == name);
            return zone != null ? zone.GetRecords() : null;
        }

But i get the following error:

An unhandled exception of type 'System.StackOverflowException' occurred in System.Management.dll

in the following line:

ResourceRecord.cs Line 258 
return Convert.ToString(m_mo["TextRepresentation"]);

I can watch zone.GetRecords() but i get error when i use it in return clause of API method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions