Click here to Skip to main content
15,896,486 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
XML
I have Image folder in hosted WEB API, while accessing image with URL "http://localhost:49245/images/abc.png" is working fine at local end, but not on hosted site at server. Showing "500 - Internal server error. There is a problem with the resource you are looking for, and it cannot be displayed." I have already added :

<location path="Images">
    <system.web>
        <authorization>
            <allow users="*"/>
        </authorization>
    </system.web>
</location>

But still not working. Please suggest.
Posted

1 solution

It's impossible to answer your question. The 500 error means that the code running on the server crashed. Since we can't see that code, it's impossible to tell you what happened.

Chances are really good you made some assumptions about what objects the code would get back from a method or property getter and you didn't check to see if you actually got something valid back. Then you tried to use it, like trying to call a method or property on null.
 
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