error-code

How can I trace IIS 500 errors thrown by my webservice

余生颓废 提交于 2019-12-03 08:41:29
I have deployed a new version of an ASP.NET webservice. The IIS logfile reports an errorcode 500 when this service is being called by a client. My own (test) can use the service without any error. I have enabled errorlogging in my ASP.NET webservice, but no error is being logged, which leads me to believe the error is not thrown by my code, but somewhere 'earlier' in the stack. I have also examined the httperr1.log file but there's nothing relevant there. Question, how can I add more errorlogging to IIS to investigate the error? I have no access to the client. [Updates] I'm using IIS6. I've

Process finished with exit code -1073741515 (0xC0000135)

泪湿孤枕 提交于 2019-12-03 06:19:52
im running a python script and it used to work, even does on my laptop right now but not on my other computer - i just get the error code: Process finished with exit code -1073741515 (0xC0000135) I dont get any other results - not even from "print" commands at the beginning of the file. I havent found anything specific to that.. I re-installed python (2.7.9), pygame (1.9.1) and even pycharm (tried 4.5 first, now with 5.0 - same result) Does anyone know what that error code means? I couldnt find anything about it. reinstall python – you don't have python33.dll in c:\WINDOWS\system32\ Maybe you

Is it possible to convert a boost::system::error_code to a std:error_code?

↘锁芯ラ 提交于 2019-12-03 04:23:33
问题 I want to replace external libraries (like boost) as much as possible with their equivalents in standard C++ if they exist and it is possible, to minimize dependencies, therefore I wonder if there exists a safe way to convert boost::system::error_code to std::error_code . Pseudo code example: void func(const std::error_code & err) { if(err) { //error } else { //success } } boost::system::error_code boost_err = foo(); //foo() returns a boost::system::error_code std::error_code std_err = magic

Error codes within exception vs exceptions hierarchy

笑着哭i 提交于 2019-12-03 02:24:25
Do you think it is ok to use error codes within exception to specify error type? Please take a look on this code: public class MyException extends Exception { public static final String ERROR_CODE_INVALID_NAME = ""; public static final String ERROR_CODE_INVALID_ID = ""; ... private String errorCode; public MyException(String message, String errorCode) { super(message); this.errorCode = errorCode; } public String getErrorCode() { return errorCode; } } I know that it is better to use enum instead of Strings in this example, but I'm actually concerned about the concept of error codes. Do you

C# TCP Socket error - 10060

不想你离开。 提交于 2019-12-02 21:42:37
问题 I have a windows service act as a server. And I run one windows form application form localhost as a client. Both the programs use TCP socket connection to send/recieve data. Server listens on port 8030. The program works fine. BUt when I enhanced the client program to communicate on specific port let's say 9030. While getting connected to server it generates the following exception. A connection attempt failed because the connected party did not properly respond after a period of time, or

Is it possible to convert a boost::system::error_code to a std:error_code?

若如初见. 提交于 2019-12-02 17:38:44
I want to replace external libraries (like boost) as much as possible with their equivalents in standard C++ if they exist and it is possible, to minimize dependencies, therefore I wonder if there exists a safe way to convert boost::system::error_code to std::error_code . Pseudo code example: void func(const std::error_code & err) { if(err) { //error } else { //success } } boost::system::error_code boost_err = foo(); //foo() returns a boost::system::error_code std::error_code std_err = magic_code_here; //convert boost_err to std::error_code here func(std_err); The most important it is not the

Error C2491: Function declared in header and defined in C++

倖福魔咒の 提交于 2019-12-02 03:08:12
I have been trying to build a device adapter for a open-source software called Micro-manager to control a microscope and there are some problems that I am facing, there are these two files (one header and the other CPP) that are already present in the open source package of Micro-Manager. //MoudluleInterface.h #ifndef _MODULE_INTERFACE_H_ #define _MODULE_INTERFACE_H_ #ifdef WIN32 #ifdef MODULE_EXPORTS #define MODULE_API __declspec(dllexport) #else #define MODULE_API __declspec(dllimport) #endif #else #define MODULE_API #endif #define MM_MODULE_ERR_OK 1000 #define MM_MODULE_ERR_WRONG_INDEX 1001

Descriptions of error codes returned by regsvr32 [closed]

梦想与她 提交于 2019-12-02 03:06:45
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . Where can I find documentation that describes the meaning of error codes returned by regsvr32, such as 0x80070716? 回答1: The error is defined in winerror.h . Microsoft's reference is at System Error Codes. In my case the error code is 0x0716, which is 1814L. This error code corresponds to ERROR_RESOURCE_NAME_NOT

MapViewOfFile failes with errorCode 6 (Invalid Handle)

十年热恋 提交于 2019-12-01 14:52:29
Im trying to map the file to the memory and use MapViewOfFile(), but it failes with error code 6. I tried just about anything, I also read about big files being the problem, but the problem happens also with a 1kb file. my code: HANDLE hFile = CreateFile(pFile, GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); e = GetLastError(); printf("CreateFile Errorcode %d\n", GetLastError()); if (hFile == INVALID_HANDLE_VALUE) { printf("Error: could not create handle to file"); printf("CreateFileMapping error code: %d", e) return 1; } printf("successfully created a Handle to try.txt");