Avatar of Rudia Plaga
Rudia Plaga
 asked on

I can not connect to exchange 2013 ECP. An error occurred during forest discovery.

I have 2 test servers running 2012r2 that I am using to study for my certifications. Both machines are clean installations.

This is my setup:

Server 1
Configured as a domain controller
Roles installed:
Active directory users and computers
DNS
DHCP


Server2
Configured as a member server and is connected to the domain. I have hyper v role installed and I have a virtual machine created. I have installed  exchange 2013 on the virtual machine.

After the installation was successful, I was able to connect to ECP, and I could access the administrator account. When I rebooted the domain controller, it died.(it was a used sever) I then reconfigured another machine as a domain controller with the exact same settings as before. When I try to log into exchange ecp, I get this error.


Server Error in '/ecp' Application.

An error occurred during forest discovery (photonics.org).
  Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

 Exception Details: System.ServiceModel.FaultException`1[[Microsoft.Exchange.Data.Directory.TopologyDiscovery.TopologyServiceFault, Microsoft.Exchange.Data.Directory, Version=15.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: An error occurred during forest discovery (photonics.org).

Source Error:


 An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Stack Trace:



[FaultException`1: An error occurred during forest discovery (photonics.org).]
   System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) +14808142
   System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) +386
   Microsoft.Exchange.Data.Directory.TopologyDiscovery.ITopologyClient.GetServersForRole(String partitionFqdn, List`1 currentlyUsedServers, ADServerRole role, Int32 serversRequested) +0
   Microsoft.Exchange.Data.Directory.<>c__DisplayClass10.<InternalGetServersForRole>b__f(IPooledServiceProxy`1 proxy) +124
   Microsoft.Exchange.Net.ServiceProxyPool`1.TryCallServiceWithRetry(Action`1 action, String debugMessage, WCFConnectionStateTuple proxyToUse, Int32 numberOfRetries, Boolean doNotReturnProxyOnSuccess, Exception& exception) +178

[ADTransientException: The call to Microsoft Exchange Active Directory Topology service on server 'TopologyClientTcpEndpoint (localhost)' returned an error. Error details An error occurred during forest discovery (photonics.org)..]
   Microsoft.Exchange.Data.Directory.ServiceTopologyProvider.GetConfigDCInfo(String partitionFqdn, Boolean throwOnFailure) +460
   Microsoft.Exchange.Data.Directory.TopologyProvider.PopulateConfigNamingContexts(String partitionFqdn) +55
   Microsoft.Exchange.Data.Directory.TopologyProvider.GetConfigurationNamingContext(String partitionFqdn) +61
   Microsoft.Exchange.Data.Directory.ADDataSession.GetNamingContext(ADNamingContext adNamingContext) +430
   Microsoft.Exchange.Data.Directory.ADDataSession.GetConnection(String preferredServer, Boolean isWriteOperation, String optionalBaseDN, ADObjectId& rootId, ADScope scope) +200
   Microsoft.Exchange.Data.Directory.ADDataSession.Find(ADObjectId rootId, String optionalBaseDN, ADObjectId readId, QueryScope scope, QueryFilter filter, SortBy sortBy, Int32 maxResults, IEnumerable`1 properties, CreateObjectDelegate objectCreator, CreateObjectsDelegate arrayCreator, Boolean includeDeletedObjects) +2806
   Microsoft.Exchange.Data.Directory.ADDataSession.Find(ADObjectId rootId, QueryScope scope, QueryFilter filter, SortBy sortBy, Int32 maxResults, IEnumerable`1 properties, Boolean includeDeletedObjects) +251
   Microsoft.Exchange.Data.Directory.SystemConfiguration.ADTopologyConfigurationSession.FindServerByFqdn(String serverFqdn) +99
   Microsoft.Exchange.Data.Directory.SystemConfiguration.ADTopologyConfigurationSession.FindLocalServer() +33
   Microsoft.Exchange.Management.Security.Utility.GetVirtualDirectoryObject(Guid vDirObjectGuid, ITopologyConfigurationSession session, PropertyDefinition[] virtualDirectoryPropertyDefinitions) +245
   Microsoft.Exchange.Management.Security.AdfsFederationAuthModule.InitStaticVariables() +357
   Microsoft.Exchange.Management.Security.AdfsFederationAuthModule..ctor() +33

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0
   System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +139
   System.Activator.CreateInstance(Type type, Boolean nonPublic) +105
   System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) +1431
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +184
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture) +27
   System.Web.HttpRuntime.CreateNonPublicInstance(Type type, Object[] args) +79
   System.Web.HttpApplication.BuildIntegratedModuleCollection(List`1 moduleList) +186
   System.Web.HttpApplication.GetModuleCollection(IntPtr appContext) +1069
   System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +130
   System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +165
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +353
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +341

[HttpException (0x80004005): Exception has been thrown by the target of an invocation.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +523
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +107
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +688

 


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3062.0  



I can ping both ways between the exchange server and the domain controller, and I can resolve the DNS server.

Is it possible that I need to create some type of record in DNS? Are there any logs I can look at?
How can I fix this? Thank you very much.
ExchangeActive DirectoryDNS

Avatar of undefined
Last Comment
Seth Simmons

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
timgreen7077

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Giorgi Janiashvili

You need to reinstall exchange server
Rudia Plaga

ASKER
Thank you for helping me. That's okay, I can reinstall exchange, that's why I'm doing this--to learn. I have to find out how to uninstall exchange 2013. It's the only app installed on the server.
Thanks again.
timgreen7077

To uninstall just go to add/remove programs, and uninstall. You uninstall Exchange just like any other app. The only issue you may run into is since the original DC is gone, you may get errors while trying to uninstall. If that is the case, just delete the VM and start again, but you uninstall Exchange like any other app.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
SOLUTION
timgreen7077

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Rudia Plaga

ASKER
Thank you. Yes, I see the errors already. I'm going to give it a try. Thanks.
Rudia Plaga

ASKER
I am trying to uninstall exchange 2013. One of two errors I am getting is:

This computer is configured as a source transport server for 1 connector (s) i the organization, These must be moved or deleted

I think I need to remove it from ECP, but I don't have access to it. Can I delete the connector from the command line?
timgreen7077

You may not even be able access it via the Exchange shell but if you can, you can run the below and it will delete the connector:

Get-SendConnector | Remove-SendConnector
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Rudia Plaga

ASKER
What do you mean, "exchange shell"?  I have no access to ECP at all. Do I run this from power shell?
timgreen7077

no normal powershell will not work, exchange has a management shell that looks like normal powershell, and you would be able to run it from there. just like you cant connect to the ECP, it is unlikely you will be able to connect to the shell because of the state of your exchange server.
Rudia Plaga

ASKER
Okay, thank you. I will reinstall the virtual machine, the OS, and exchange.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
Seth Simmons

No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I have recommended this question be closed as follows:

Split:
-- 'timgreen7077' (https:#a42671155)
-- 'timgreen7077' (https:#a42671164)


If you feel this question should be closed differently, post an objection and the moderators will review all objections and close it as they feel fit. If no one objects, this question will be closed automatically the way described above.

seth2740
Experts-Exchange Cleanup Volunteer