Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using api for my MVC application and it is hosted on development server. This will work find but some times it through below error:
The remote name could not be resolved : 'my api url'.
But when trying to access only API using URL not from my application its work at same time when i am getting error from my application.
I don't know what happen and any one help me to fix this.

What I have tried:

Increase session time out in my applications web.config file
<sessionState mode="InProc" cookieless="false" timeout="120">

Also trying to increase script time but when i use below script in my web.config file
<httpRuntime executionTimeout="300" /> it gives error "HTTP Error 500.19 - Internal Server Error".
Posted
Comments
Ayodeji Oluwatomiwo 25-Jan-17 9:29am    
kindly show what you've tried
jaideepsinh 25-Jan-17 9:32am    
I don't know it it true or not but its not because i don't know about this error. I just think if session is expire thats why i do this.
Suvabrata Roy 27-Jan-17 5:48am    
Are you trying to execute that application and browsing the URL from the same machine.
jaideepsinh 27-Jan-17 6:41am    
I tried this. I call all api method using url and i give proper response at that same time when that same api not respond to my application.

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