[GH-ISSUE #1] StackOverflowException #4

Open
opened 2026-03-07 21:23:54 +03:00 by kerem · 0 comments
Owner

Originally created by @mehranrezaei on GitHub (Jul 1, 2015).
Original GitHub issue: https://github.com/drorgl/MSDNSWebAdmin/issues/1

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.

Originally created by @mehranrezaei on GitHub (Jul 1, 2015). Original GitHub issue: https://github.com/drorgl/MSDNSWebAdmin/issues/1 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.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/MSDNSWebAdmin#4
No description provided.