I have an app w C# & MySQL using Crystal Reports. In my development environment, the app works using. But when I published, the app shows me this error:
CrystalDecisions.CrystalReports.Engine.InternalException:
No se pudo abrir la conexión.
No se pudo abrir la conexión.
{E403D116-A2DD-482D-947B-8D4BFFE851A8}.rpt
---> System.Runtime.InteropServices.COMException:
No se pudo abrir la conexión.
No se pudo abrir la conexión. Reporte
{E403D116-A2DD-482D-947B-8D4BFFE851A8}.rpt
at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions
, RequestContext pRequestContext)
at CrystalDecisions.ReportSource.EromReportSourceBase.
ExportToStream(ExportRequestContext
reqContext)
--- End of inner exception stack trace ---
at CrystalDecisions.ReportAppServer.
ConvertDotNetToErom.ThrowDotNetException(Exception e)
at CrystalDecisions.ReportSource.
EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
at CrystalDecisions.CrystalReports.
Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)
at CrystalDecisions.CrystalReports.
Engine.ReportDocument.ExportToStream(ExportOptions options)
at CrystalDecisions.CrystalReports.
Engine.ReportDocument.ExportToHttpResponse
(ExportOptions options, HttpResponse response, Boolean asAttachment, String attachmentName)
at CrystalDecisions.CrystalReports.
Engine.ReportDocument.
ExportToHttpResponse(ExportFormatType formatType, HttpResponse response,
Boolean asAttachment, String attachmentName)
I installed in the server this:
I configured this in the server:
Anyone can help me?
Thanks.
Ivo
Related
Anyone have a clue about this exception I got when starting Weblogic 12 :
<25 sept. 2019 09 h 28 GMT> <Error> <Socket> <BEA-000403> <IOException occurred on socket: Socket[addr=/127.0.0.1,port=55554,localport=7001]
java.io.IOException: Une connexion établie a été abandonnée par un logiciel de votre ordinateur hôte.
java.io.IOException: Une connexion établie a été abandonnée par un logiciel de votre ordinateur hôte.
at sun.nio.ch.SocketDispatcher.read0(Native Method)
at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:43)
at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)
at sun.nio.ch.IOUtil.read(IOUtil.java:197)
at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:379)
Truncated. see log file for complete stacktrace
>
I didn't find any similar issue!
Thanks
environment:
Server IBM MQ 9, JVM 8, Wildfly 10
Error log wildfly:
2017-09-15 10:53:33,955 WARN [org.jboss.jca.core.connectionmanager.pool.strategy.OnePool] (default task-16) IJ000604: Throwable while attempting to get a new connection: null: com.ibm.mq.connector.DetailedResourceException: MQJCA1011: No se ha podido asignar una conexión JMS., error code: MQJCA1011 Un error interno ha hecho que falle un intento de asignar una conexión. Consulte la excepción enlazada para obtener detalles de la anomalía.
at com.ibm.mq.connector.services.JCAExceptionBuilder.buildException(JCAExceptionBuilder.java:169)
at org.jboss.remoting3.EndpointImpl$TrackingExecutor$1.run(EndpointImpl.java:731)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
Caused by: com.ibm.msg.client.jms.DetailedJMSException: JMSWMQ0018: No se ha podido conectar con el gestor de colas 'MQ.MQAWSHOM.01' con modalidad de conexión 'Client' y nombre de host '172.16.34.210(1414)'.
Compruebe que el gestor de colas esté iniciado y, si se está ejecutando en modalidad de cliente, compruebe que haya un escucha en ejecución. Consulte la excepción enlazada para obtener más información.
at com.ibm.msg.client.wmq.common.internal.Reason.reasonToException(Reason.java:595)
at com.ibm.msg.client.wmq.common.internal.Reason.createException(Reason.java:215)
at com.ibm.msg.client.wmq.internal.WMQConnection.<init>(WMQConnection.java:422)
at com.ibm.msg.client.wmq.internal.WMQXAConnection.<init>(WMQXAConnection.java:67)
at com.ibm.msg.client.wmq.factories.WMQXAConnectionFactory.createV7ProviderConnection(WMQXAConnectionFactory.java:188)
at com.ibm.msg.client.wmq.factories.WMQConnectionFactory.createProviderConnection(WMQConnectionFactory.java:7814)
at com.ibm.msg.client.wmq.factories.WMQXAConnectionFactory.createProviderXAConnection(WMQXAConnectionFactory.java:98)
at com.ibm.msg.client.jms.admin.JmsConnectionFactoryImpl.createXAConnectionInternal(JmsConnectionFactoryImpl.java:354)
at com.ibm.mq.jms.MQXAConnectionFactory.createXAConnection(MQXAConnectionFactory.java:131)
at com.ibm.mq.connector.ConnectionBuilder.createConnection(ConnectionBuilder.java:134)
... 90 more
Caused by: com.ibm.mq.MQException: JMSCMQ0001: La llamada de IBM MQ ha fallado con código de terminación '2' ('MQCC_FAILED') razón '2058' ('MQRC_Q_MGR_NAME_ERROR').
at com.ibm.msg.client.wmq.common.internal.Reason.createException(Reason.java:203)
... 98 more
2017-09-15 10:53:33,958 INFO [stdout] (default task-16) MQJCA0002: Se ha producido una excepción en la capa IBM MQ. Consulte la excepción enlazada para obtener detalles.
Why am I receiving this error?
The error is this:
Caused by: com.ibm.mq.MQException: JMSCMQ0001: La llamada de IBM MQ ha fallado con código de terminación '2' ('MQCC_FAILED') razón '2058' ('MQRC_Q_MGR_NAME_ERROR').
This indicates that the queue manager listening at 172.16.34.210(1414) is not called MQ.MQAWSHOM.01. Check that the IP and port are correct for the queue manager you want to connect to, if those are correct check for any typos in the name of the queue manager you are specifying.
If your do not care what queue manager name is listening on the IP and Port specified you can prefix the queue manager name with a * character, this will instruct the API to disregard the name of the queue manager. For example: *MQ.MQAWSHOM.01.
I failed to generate a plugin file from a Liberty Cluster.
I use this script.
Caused by: java.lang.RuntimeException: java.io.IOException: CWWKX0229E: Un problème est survenu avec les données d'identification de l'utilisateur fournies. Le serveur a répondu avec le code 401 et
message 'Unauthorized'
at com.ibm.ws.collective.repository.internal.ClusterManager.generateClusterPluginConfig(ClusterManager.java:320)
at com.ibm.ws.collective.repository.internal.ClusterManagerMBeanImpl.generateClusterPluginConfig(ClusterManagerMBeanImpl.java:1216)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:507)
at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:83)
at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:507)
at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:287)
at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:124)
at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:58)
at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:249)
at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:150)
at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:264)
at javax.management.StandardMBean.invoke(StandardMBean.java:416)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:831)
... 53 more
Caused by: java.io.IOException: CWWKX0229E: Un problème est survenu avec les données d'identification de l'utilisateur fournies. Le serveur a répondu avec le code 401 et le message 'Unauthorized'
at com.ibm.ws.jmx.connector.client.rest.internal.RESTMBeanServerConnection.getBadCredentialsException(RESTMBeanServerConnection.java:1758)
at com.ibm.ws.jmx.connector.client.rest.internal.RESTMBeanServerConnection.loadJMXServerInfo(RESTMBeanServerConnection.java:267)
at com.ibm.ws.jmx.connector.client.rest.internal.RESTMBeanServerConnection.<init>(RESTMBeanServerConnection.java:161)
at com.ibm.ws.jmx.connector.client.rest.internal.Connector.connect(Connector.java:371)
at com.ibm.ws.jmx.connector.client.rest.internal.Connector.connect(Connector.java:112)
at com.ibm.ws.collective.repository.internal.ClusterManagerMBeanImpl.getMBeanServerConnection(ClusterManagerMBeanImpl.java:1284)
at com.ibm.ws.collective.repository.internal.ClusterManager.generateClusterPluginConfig(ClusterManager.java:314)
The user/password you pass to this script need to be established in the application servers server.xml as someone with the administrator role.
One way to do that is the quickStartSecurity feature:
https://www.ibm.com/support/knowledgecenter/was_beta_liberty/com.ibm.websphere.wlp.nd.multiplatform.doc/ae/twlp_sec_mapadmin.html
I have this configuration
internal sealed class Configuration :DbMigrationsConfiguration<IAS.Models.ApplicationDbContext> {
public Configuration() {
AutomaticMigrationsEnabled = false;
ContextKey = "IAS.Models.ApplicationDbContext";
}
protected override void Seed( IAS.Models.ApplicationDbContext context ) {
var baseDir = AppDomain.CurrentDomain.BaseDirectory;
context.Database.ExecuteSqlCommand(File.ReadAllText(baseDir + "\\MyInsertScriptsql"));
}
}
when running upate-dataabase i get the following exception
Excepción al llamar a "SetData" con los argumentos "2": "El tipo
'Microsoft.VisualStudio.Data.Tools.Package.Internal.OAProject' del
ensamblado 'Microsoft.VisualStudio.Data.Tools.Pa ckage,
Version=11.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' no
está marcado como serializable." En D:\Dev\Insuranse Advanced
Services\IAS\packages\EntityFramework.6.0.0\tools\EntityFramework.psm1:
611 Carácter: 20
+ $domain.SetData <<<< ('startUpProject', $startUpProject)
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : DotNetMethodException System.NullReferenceException: Referencia a objeto no establecida como
instancia de un objeto. en
System.Data.Entity.Migrations.Extensions.ProjectExtensions.GetProjectTypes(Project
project, Int32 shellVersion) en
System.Data.Entity.Migrations.Extensions.ProjectExtensions.IsWebProject(Project
project) en
System.Data.Entity.Migrations.MigrationsDomainCommand.GetFacade(String
configurationTypeName, Boolean useContextWorkingDirectory) en
System.Data.Entity.Migrations.UpdateDatabaseCommand.<>c_DisplayClass2.<.ctor>b_0()
en
System.Data.Entity.Migrations.MigrationsDomainCommand.Execute(Action
command) Referencia a objeto no establecida como instancia de un
objeto.
Problem solved, i opened the file
..\packages\EntityFramework.6.0.0\tools\EntityFramework.psm and the line 611 states:
$domain.SetData('startUpProject', $startUpProject)
I them after review my solution I found that the startup project was changed to the Database project, corrected this and the problem was gone.
This is a very late solution however I thought it might help someone else. I had this problem and I changed the project to be the StartUp Project (Right click on the project and 'Set as Startup Project') and problem sorted.
I published my MVC3 web project to Azure. When I tried to authorize with fb, I get an error below.
Additional info:
callbackUrl = http://site.azurewebsites.net/Facebook/AddSocialAccount
аuthenticateUrl = https://graph.facebook.com/oauth/authorize?client_id=*&response_type=code&redirect_uri=http%3A%2F%2Fsite.azurewebsites.net%2FFacebook%2FAddSocialAccount&scope=publish_stream%2Cemail%2Cuser_birthday
so the app authorizes on fb, goes to AddSocialAccount action and fails int the string:
var profile = this.Provider.GetUserProfile(code);
where goes to:
protected override Task<AccessGrant> PostForAccessGrantAsync(string accessTokenUrl, NameValueCollection request)
{
return this.RestTemplate.PostForObjectAsync<NameValueCollection>(accessTokenUrl, request)
.ContinueWith<AccessGrant>(task =>
{
string expires = task.Result["expires"];
return new AccessGrant(task.Result["access_token"], null, null, expires != null ? new Nullable<int>(Int32.Parse(expires)) : null);
});
}
and string with error is
string expires = task.Result["expires"];
Error:
Server Error in '/' Application.
enter code here
An attempt was made to access a socket in a way forbidden by its access permissions 10.10.0.1:3128
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Net.Sockets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions 10.10.0.1:3128
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[SocketException (0x271d): An attempt was made to access a socket in a way forbidden by its access permissions 10.10.0.1:3128]
System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult) +6462061
System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception) +271
[WebException: Unable to connect to the remote server]
System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context) +2233126
System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult) +14
Spring.Http.Client.WebClientHttpRequest.ExecuteRequestCallback(IAsyncResult result) in f:\bamboo-home\xml-data\build-dir\SPRNETREST-RELEASE-JOB1\src\Spring.Rest\Http\Client\WebClientHttpRequest.cs:246
[AggregateException: One or more errors occurred.]
System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) +3548265
System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) +73
System.Threading.Tasks.Task`1.get_Result() +10486829
Project.Social.Facebook.Api.Impl.FacebookOAuth2Template.<PostForAccessGrantAsync>b__0(Task`1 task) in D:\Code\Poll\Project.Social\Facebook\Api\Impl\FacebookOAuth2Template.cs:23
System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke() +81
System.Threading.Tasks.Task.Execute() +49
[AggregateException: One or more errors occurred.]
System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) +3548265
System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) +73
System.Threading.Tasks.Task`1.get_Result() +10486829
Project.Social.Base.OAuth2SocialProvider`4.SetAccessToken(String code) in D:\Code\Poll\Project.Social\Base\OAuth2SocialProvider.cs:49
Project.Social.Base.OAuth2SocialProvider`4.GetServiceClient(String oauth_verifier) in D:\Code\Poll\Project.Social\Base\OAuth2SocialProvider.cs:66
Project.Social.Facebook.FacebookProvider.GetUserProfile(String oauth_verifier) in D:\Code\Poll\Project.Social\Facebook\FacebookProvider.cs:26 Project.Areas.FrontEnd.Controllers.ControllersBase.OAuthControllerBase`3.AddSocialAccount(String code, String oauth_verifier) in D:\Code\Poll\Project\Areas\FrontEnd\Controllers\ControllersBase\OAuthControllerBase.cs:112
lambda_method(Closure , ControllerBase , Object[] ) +147
System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) +14
System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +214
System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +27
System.Web.Mvc.<>c__DisplayClass15.<InvokeActionMethodWithFilters>b__12() +55
System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +253
System.Web.Mvc.<>c__DisplayClass17.<InvokeActionMethodWithFilters>b__14() +21
System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +253
System.Web.Mvc.<>c__DisplayClass17.<InvokeActionMethodWithFilters>b__14() +21
System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +191
System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +324
System.Web.Mvc.Controller.ExecuteCore() +106
System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +91
System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +10
System.Web.Mvc.<>c__DisplayClassb.<BeginProcessRequest>b__5() +34
System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +19
System.Web.Mvc.Async.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _) +10
System.Web.Mvc.Async.WrappedAsyncResult`1.End() +62
System.Web.Mvc.<>c__DisplayClasse.<EndProcessRequest>b__d() +48
System.Web.Mvc.SecurityUtil.<GetCallInAppTrustThunk>b__0(Action f) +7
System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action) +22
System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +60
System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +9629708
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155
When I use local computer with connectionString of Azure I don't get this error(I change the domain and url on fb).
Thanks for any ideas!
I fixed this problem. There was the default proxy in my web.config.
<system.net>
<defaultProxy>
<proxy usesystemdefault="True" proxyaddress="http://10.10.0.1:3128" bypassonlocal="True" />
</defaultProxy>
I removed it. And authorization works correct.