NetCFSvcUtil "Error: An error occurred in the tool." - wcf

I am trying to generate a WCF proxy client code for a Windows mobile application that uses basicHttpBinding and I'm continuously receiving the follow error:
Error: An error occurred in the tool.
Error: Error in the application
I was able to generate the proxy before but I don't know why suddenly this happens.
I have read the Sameh Samir's post but the service I use doesn't use any Message Contracts created by me (I've used LINQ to SQL ORD) and the WCFTestClient can connect to the service and shows the contracts.
UPDATE
It seems the problem was with the Windows 7 RC1. I was trying it on Win7 and after running the NetCFSvcUtil on XP everything works just fine.
Anyone knows how can I report this problem to the Microsoft?

THere is now a new tool available that replaces the older version of NetCFSvcUtil. It came out on Monday, August 10, 2009. It can be downloaded at the following link:
http://download.microsoft.com/download/6/2/0/6205ED05-E435-44FC-AA82-B763CA5F8B1A/NetCFSvcUtil.exe
Best of luck!

I found this: http://blogs.msdn.com/habibh/archive/2009/06/26/netcfsvcutil-exe-and-windows-7.aspx
Basically, it states:
Currently, there are no fixes available for this issue. The only workaround is to run NetCFSvcUtil.exe on Windows Vista (SP1 or earlier) or Windows Server 2008 (SP1 or earlier) and then copy the generated client code to other machines.

Related

Failed connection handshake error when using AspNetCore.SignalR in ABP under IIS

My Environment
.NetCore SDk - 2.1.300
Microsoft.AspNetCore.SignalR - 1.0.0
IIS - Version 10.0.12393.0 in Window Server 2016
Sample Code for AspNetCore.SignalR
I follow the instructions by link https://learn.microsoft.com/en-us/aspnet/core/signalr/get-started?view=aspnetcore-2.1&tabs=visual-studio to complete a sample AspNetCore.SignalR chat code.
I can run it successfully in Visual Studio.
After that, I publish it to my server (window server 2016, IIS has websocket feature), and it also works fine. That means, my server environment support AspNetCore.SignalR well.
Abp for AspNetCore.SignalR
I download the ABP template code from ABP website
Upgrade the .net core sdk to .net core 2.1
Upgrade nuget packages
Follow my above steps to add sample AspNetCore.SignalR chat code in the project.
Run it successfully in visual studio
The issue is, when I publish it to the server (same as my above server), and run it, it throws a error - AspNetCore.SignalR.HubConnectionContext - Failed connection handshake.
I have research it, but didn't get any solution. could you please help to look at it what the issue is?
I have push my project into github: https://github.com/lcyhjx/AbpExample, you can pull and run it (Just run AbpExample.Web.Host). It works fine in Visual Studio, but failed in IIS.
The error detail:
Information: Normalizing '/chatHub' to 'http://localhost:6011/chatHub'.
Information: WebSocket connected to ws://localhost:6011/chatHub?id=2zix_nPHODwLEv2p_4VCAw'
Error: Connection disconnected with error 'Error: Server returned handshake error: An unexpected error occurred during connection handshake.'.
I have addressed the issue. It's a code issue, in my code I have set
HandshakeTimeout = TimeSpan.MaxValue;
If I comment above code, then all works fine in both VS and IIS.
The same here, but a bit different: I ran the server in Rider and everything worked. I put it in another directory and I've got handshake errors. Removing the handshake timeout and it works everywhere.

HTTP Status 500 org.apache.jasper.JasperException: Unable to compile class for JSP:

HTTP Status 500 -
type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 1 in the generated java file The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files Stacktrace: org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:102) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:331) org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:469) org.apache.jasper.compiler.Compiler.compile(Compiler.java:378) org.apache.jasper.compiler.Compiler.compile(Compiler.java:353) org.apache.jasper.compiler.Compiler.compile(Compiler.java:340) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:646) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334) javax.servlet.http.HttpServlet.service(HttpServlet.java:722)note The full stack trace of the root cause is available in the Apache Tomcat/7.0.27 logs.
Plz help me friends how to solve this problem . I have got this problem when i open webpage (localhost:8085)soon after installing tomcat (i have set classpath tooo ) .Plz kindly send any answers to rakeshdatla999#gmail.com...
Possible mismatch between version of Tomcat and version of JDK/JRE. It happened to me on Mac with Java 8 and Tomcat 7.2*. Had to install and use Tomcat 7.5*
I was using Windows 10 OS for developing applications in TM1 Performance Modeller as part of Academic projects.
I had been trying to run pmpsvc services of IBM Performance Modeller. I was getting the error "unable to logon to pmpsvc". Also, when I was trying to logon to Application Server in my browser, I was getting the same error that you've posted here.
What I think(after going through different posts in the search results of Google and Stackoverflow): There is some compatibility issue with JSP 2.1 in your project or maybe Tomcat version in-compatibilty.
How this was solved: I installed Windows 7 in dual-boot mode by allocating 100 GB to Windows 7. Installed the IBM software TM1 package(Performance Modeller and BI Insight Tool) in Win7 and everything runs smoothly now.
The IBM Instructors that demonstrated the use of Tm1 Dimensional Modelling also were running Windows 7 in their machines.
I guess - if you wish to solve the problem without going into the details of this exception, You can give this a try!

wcf extension not invoked

Wcf extension is working fine on local iis. however,when i deployed it on windows server 2008, I got the following errors.
An error occurred creating the configuration section handler for system.serviceModel/behaviors: Extension element 'ErrorHandlerExtension' cannot be added to this element. Verify that the extension is registered in the extension collection at system.serviceModel/extensions/behaviorExtensions.
I left a space after each comma, but it did not work.
Pls give me some insight.
In general this could be caused by one of the following problems:
A difference in the configuration file between local iis and server
The dll containing the extension was not deployed to the server
The rights of the identity of the app pool on the server are limited
the solution for this case that I have solved : microsoft netframework version compatible. when I was installed the netframework 4.5 the problem has solved.

Register COM Component for Classic ASP

I'm upgrading an old Windows 2003 server (32-bit) with IIS 6 to a Windows 2008 server (64-bit) with IIS 7.5. I'm in the process of installing necessary DLLs on the new machine (I only need two). The first one worked fine. The second one, ASPIMAGE.DLL is causing some trouble.
Here's what I've done (same process that worked for XZIP.DLL):
Move ASPIMAGE.DLL to C:\Windows\SYSWOW64
C:\Windows\SYSWOW64\regsvr32.exe C:\Windows\SYSWOW64\ASPIMAGE.DLL - I get a prompt saying "DLLRegisterServer in ASPIMAGE.DLL succeeded". I've run this multiple times - I hope that's not an issue.
Set "Enable 32-Bit Application" to True in the Application pool. Restarted the Site and AppPool just to be sure.
Attempt running code (which works fine on the Win2003 machine):
I get this error:
Server object error 'ASP 0177 : 800703e6'
Server.CreateObject Failed
/scripts/update/resize.asp, line 2
800703e6
Note that I've also tried this as a replacement, and I have the same issue (it looks like it registers fine, but the code can't see it):
http://code.google.com/p/aspnetimage/
Any ideas what the issue is? It's strange to me, because it seems like it registers fine, but ASP can't find it.
I was able to solve the problem by using AspNetImage as a replacement in conjunction with LoadPicture(): http://www.w3schools.com/vbscript/func_loadpicture.asp.
http://code.google.com/p/aspnetimage/

IIS 6.0 web site server output? or server Console? New to IIS 6.0

Is there a way to enable and see server output on IIS 6.0?
I have deployed my VS 2008 MVC 2 project into IIS 6.0 with wildcard mapping. Static views show up correctly, but database access doesn't work.
My problem is I don't see any error message or error output. So I wonder if I can see server output for my sample web site, that could help me to see what goes wrong?
For example, I will put output before and after connection, the easiest way to debug.
Console.WriteLine("Before connection");
Console.WriteLine("After connection");
However, IIS Manager doesn't allow me to see anything server output except log, which record only GET and POST actions.
There is no "server output". You can have your code write lines to a log file or you can use Visual Studio to attach to the process and debug it that way.
If you need to log NHibernate information to diagnose a problem, use log4net. See this article as reference.