Alan Dala
asked on
HTTP Error 404.4 - Not Found - The resource you are looking for does not have a handler associated with it.
I was trying to replicate an 8.5 IIS website on a machine and now I get the 404.4 error message I mentioned above. I basically mirrored the other web server, gave it another name so I can use it for testing purposes. Here is the detailed error:
Detailed Error Information:
Module
IIS Web Core
Notification
MapRequestHandler
Handler
PageHandlerFactory-ISAPI-4 .0_64bit
Error Code
0x8007007b
Requested URL
http://localhost:80/default.aspx
Physical Path
C:\Program Files\Microsoft Dynamics CRM\CRMWeb\default.aspx
Logon Method
Anonymous
Logon User
Anonymous
Thank you for your help!
Detailed Error Information:
Module
IIS Web Core
Notification
MapRequestHandler
Handler
PageHandlerFactory-ISAPI-4
Error Code
0x8007007b
Requested URL
http://localhost:80/default.aspx
Physical Path
C:\Program Files\Microsoft Dynamics CRM\CRMWeb\default.aspx
Logon Method
Anonymous
Logon User
Anonymous
Thank you for your help!
Sounds like you have offsite redirects configured. Take a look at this blog entry on MSDN.
ASKER
Now it looks like it's not seeing the sql database, which resides on the same machine. I found something online about resetting the connection string but I'm not sure how. Is it on the SQL side or the IIS side? Thank you!
Server Error in '/' Application.
-------------------------- ---------- ---------- ---------- ---------- ---------- ----
The network path was not found
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.ComponentModel.Win3 2Exception : The network path was not found
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:
[Win32Exception (0x80004005): The network path was not found]
[SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)]
System.Data.ProviderBase.D bConnectio nPool.TryG etConnecti on(DbConne ction owningObject, UInt32 waitForMultipleObjectsTime out, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) +642
System.Data.ProviderBase.D bConnectio nPool.TryG etConnecti on(DbConne ction owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) +116
System.Data.ProviderBase.D bConnectio nFactory.T ryGetConne ction(DbCo nnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) +1079
System.Data.ProviderBase.D bConnectio nInternal. TryOpenCon nectionInt ernal(DbCo nnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) +6605639
System.Data.SqlClient.SqlC onnection. TryOpenInn er(TaskCom pletionSou rce`1 retry) +233
System.Data.SqlClient.SqlC onnection. TryOpen(Ta skCompleti onSource`1 retry) +278
System.Data.SqlClient.SqlC onnection. Open() +239
Microsoft.Crm.CrmDbConnect ion.GetCre ateAndOpen Connection () +307
Microsoft.Crm.CrmDbConnect ion.Open() +460
Microsoft.Crm.SharedDataba se.Databas eMetadata. LoadMetada taXmlFromD atabase(Cr mDBConnect ionType connectionType, String connectionString, Int32& maxBlobSize) +372
Microsoft.Crm.Configuratio nDatabase. Configurat ionMetadat a.LoadCach e(String connectionString) +39
Microsoft.Crm.Configuratio nDatabase. Configurat ionMetadat a.get_Cach e() +127
Microsoft.Crm.ServerLocato rService.R etrieveByI d(String tableName, Object primaryKey, String[] columns) +64
Microsoft.Crm.ServerLocato rService.G etFederati onProvider (Guid id, String[] columns) +236
Microsoft.Crm.ServerLocato rService.G etFederati onProvider (Guid id) +34
Microsoft.Crm.LocatorServi ce.GetFede rationProv ider(Guid id) +46
Microsoft.Crm.CrmAuthentic ationConte xt.get_Def aultFedera tionProvid er() +91
Microsoft.Crm.CrmAuthentic ationConte xt.GetFede rationProv iderIntern al(Guid orgId) +693
Microsoft.Crm.CrmAuthentic ationConte xt.IsClaim sEnabled(G uid organizationId) +99
Microsoft.Crm.MapOrgEngine .Init(Http Applicatio n context) +76
System.Web.HttpApplication .InitModul esCommon() +124
System.Web.HttpApplication .InitInter nal(HttpCo ntext context, HttpApplicationState state, MethodInfo[] handlers) +1710
System.Web.HttpApplication Factory.Ge tNormalApp licationIn stance(Htt pContext context) +390
System.Web.HttpApplication Factory.Ge tApplicati onInstance (HttpConte xt context) +178
System.Web.HttpRuntime.Pro cessReques tInternal( HttpWorker Request wr) +670
-------------------------- ---------- ---------- ---------- ---------- ---------- ----
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34248
Server Error in '/' Application.
--------------------------
The network path was not found
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.ComponentModel.Win3
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:
[Win32Exception (0x80004005): The network path was not found]
[SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)]
System.Data.ProviderBase.D
System.Data.ProviderBase.D
System.Data.ProviderBase.D
System.Data.ProviderBase.D
System.Data.SqlClient.SqlC
System.Data.SqlClient.SqlC
System.Data.SqlClient.SqlC
Microsoft.Crm.CrmDbConnect
Microsoft.Crm.CrmDbConnect
Microsoft.Crm.SharedDataba
Microsoft.Crm.Configuratio
Microsoft.Crm.Configuratio
Microsoft.Crm.ServerLocato
Microsoft.Crm.ServerLocato
Microsoft.Crm.ServerLocato
Microsoft.Crm.LocatorServi
Microsoft.Crm.CrmAuthentic
Microsoft.Crm.CrmAuthentic
Microsoft.Crm.CrmAuthentic
Microsoft.Crm.MapOrgEngine
System.Web.HttpApplication
System.Web.HttpApplication
System.Web.HttpApplication
System.Web.HttpApplication
System.Web.HttpRuntime.Pro
--------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34248
>>> [Win32Exception (0x80004005): The network path was not found]
That error is pretty straight-forward. Given this is a new server, I'm guessing it is because you did not open up your database service to network calls, pipes, or whatever method you are using to connect the two.
Take a look at your connection string to get a hint as to how the application is expecting to connect, then look at your SQL Server (I'm assuming MSSQL?) surface area and make sure that approach is available.
That error is pretty straight-forward. Given this is a new server, I'm guessing it is because you did not open up your database service to network calls, pipes, or whatever method you are using to connect the two.
Take a look at your connection string to get a hint as to how the application is expecting to connect, then look at your SQL Server (I'm assuming MSSQL?) surface area and make sure that approach is available.
ASKER
Thank you for your response!
Since I'm pretty new at this, I'm kind of shooting in the dark. Is this a change in the SQL Server Configuration Manager? The 'connection string' is the one in IIS? Sorry, I rather look dumb in front of you than my boss.
Thanks again for the help!
Since I'm pretty new at this, I'm kind of shooting in the dark. Is this a change in the SQL Server Configuration Manager? The 'connection string' is the one in IIS? Sorry, I rather look dumb in front of you than my boss.
Thanks again for the help!
Most likely this is a change required in MSSQL. You'll need to examine the connection string to be sure. Can you post it here? It will either be in the code somewhere, or in the web.config file.
Once you know how the application is trying to connect, you need to go into MSSQL and make sure that method is open and available. For example, if you're connecting through a named pipe, you need to make sure MSSQL is prepared to accept connections through named pipes.
Once you know how the application is trying to connect, you need to go into MSSQL and make sure that method is open and available. For example, if you're connecting through a named pipe, you need to make sure MSSQL is prepared to accept connections through named pipes.
ASKER
OK, that is a normal named instance on localhost. The name of the instance should be "SQLEXPRESS". Now find out what you named your MSSQL instance, and make sure it is willing to accept connections.
ASKER
ASKER
OK. I figured how to change that but still no luck with the site. Still gives me the same error. I'm trying to figure out if the SQL instance accepts connections.
Thanks!
Thanks!
ASKER
I also did the .txt to .udl test and it was successful with the 'Windows integrated security' option when connecting to the new SQL server.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIALMembers can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.