Click here to Skip to main content
15,911,786 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
After deployment on IIS getting below error

Kindly help me out to resolve it

Server error "/" ,
although I have placed custom error mode off on web.config



Thanks

What I have tried:

I have tried to place custom error mode off on web.config
Posted
Updated 3-Mar-21 6:22am
Comments
Richard MacCutchan 2-Mar-21 8:19am    
Look at the server logs, and the code where the error occurs. We cannot guess what is happening in your code.

The trouble is that that is a generic error message which just says "your code failed" and give you no more info than that.
We can't fix that for you, because we have no idea what your code does, let alone how it does it - and the number of different ways your app could fail and give you the error is enormous, from trying to convert user input values that are badly types, through the wrong DB connection string, to running out of stack space, and thousands of other reasons!

So start by trying to find out where the error happens: ASP.NET Error Handling | Microsoft Docs[^]
When you have that, you can start narrowing down the problem to start fixing it - but without actual info, you are just working in the dark.
 
Share this answer
 
this is the problem , I m having

Locally it works fine, but as I deploy it gives error

Note: No db is attached with it ( its without db application )

Guide us what to do to resolve it ?

Finally this error :
500 internal server error
 
Share this answer
 
v3
Comments
Richard MacCutchan 3-Mar-21 12:28pm    
There is something wrong with your code or its deployment. No one here can possibly guess what your code is doing. Check the you are not trying to refer to any file systems that only exist on your local PC.
Richard Deeming 5-Mar-21 6:16am    
Neither of the "solutions" you have posted to your own question are actually solutions to the question.

And by accepting one of your non-solutions as "the solution" to your question, you have marked your question as solved.
can any 1 help me out on this ?
 
Share this answer
 
Comments
Richard MacCutchan 3-Mar-21 12:29pm    
See my comment below.

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