Click here to Skip to main content
15,884,298 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
@Html.DropDownList("UserTypeID", null, "Select Type", htmlAttributes: new { @class = "form-control" })

Error Showing:
System.Data.Entity.Core.EntityException: 'The underlying provider failed on Open.'
Win32Exception: The network path was not found

What I have tried:

i tried every possible solution but error remains same.
Posted
Updated 7-Dec-22 19:13pm
Comments
Dave Kreskowiak 8-Dec-22 8:12am    
That error has nothing to do with the code you posted. This is a problem with your database code somewhere.
Richard Deeming 8-Dec-22 9:48am    
If you really had tried every possible solution, then either you would have fixed the problem, or the problem would be unfixable.

What you presumably mean is that you've tried some things, and either can't remember precisely what, or don't want to list them here.

But as the others have said, the code you've posted is nothing to do with the error you're getting. So maybe start by looking at the code that is causing the error, and you might have better luck finding the solution.

1 solution

Read the error message:
Error
The network path was not found

That means that something that is trying to access a remote resource cannot find it, either because the URL is wrong, or the remote server is not available.

Start by checking all connection strings and so forth, and verify that the client computer has access to the remote device.

Sorry, but we can;t help you any further: we have no access to your code while it is running, or your system(s) - and you need both to work out the problem!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900