简体   繁体   中英

What could be causing different behaviour remotely on asp.net site

I have a site that I have developed in asp.net. On debugging the site now hosted using IIS7 I noticed a bug, I cannot reproduce this when I run it locally in vs, meaning I can't see the error. The bug occurs on the check box changed event of a devexpress check box. It connects to the database using devart.postgres sql component and linq. However, this is the same connection as anywhere else in the project. The same code works elsewhere in the project. The error I get is:

the requested name is valid, but no data of the requested type was found.

Part of my code is in an if statement that checks if a textbox is blank if so it does not run the code within the if statement, interestingly enough if the text box is blank the code runs, so it must be in the if statement? I commented out all of the code and tried again and it still would not run. Beginning to lost objectivity with this problem, hope you can help.

The error you have posted suggests that there is a problem resolving an address. For example, when you check that checkbox, something in your code tries to resolve a valid address, but the DNS server doesn't recognise it. Are you doing anything that would involve name resolution?

Can you share the code that causes this error?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM