Issue with JPDs in my weblogic application

I have a weblogic integration application running on WL 8.1 SP5. There are 2 JPDs and 2 web services in the application. I am having an issue in the live server when the application has been running for quite a while. One of the JPDs stops working. The issue is resolved by redeploying the application. On redeploying from the weblogic console, the code starts to run again!!! Has any one come across such an issue? Is this something to do with server settings? I would welcome any suggestions to solve this recurring issue.

Hi Darshan,
Thanks for your answer.
I change my package to do an another test.
My XML :
<dataTemplate name="XXAPINMOXML" description="SUIVI DES INTERETS MORATOIRES" defaultPackage="XXAPINMO_PKG">
<dataQuery>
<parameters>
<parameter name="p_type_edition"/>
</parameters>
<PROPERTIES>
<property name="include_parameters" value="true"/>
</PROPERTIES>
My package :
CREATE OR REPLACE PACKAGE XXAPINMO_PKG AS
p_type_edition varchar2(150);
FUNCTION beforeReport return boolean;
END XXAPINMO_PKG;
show errors package XXAPINMO_PKG;
CREATE OR REPLACE PACKAGE BODY XXAPINMO_PKG
AS
FUNCTION beforeReport return boolean is
BEGIN
fnd_file.put_line(FND_FILE.LOG,'p_type_edition ' || p_type_edition);
IF p_type_edition = 'Y' THEN
     fnd_file.put_line(FND_FILE.LOG,'Case Y');
ELSE
     fnd_file.put_line(FND_FILE.LOG,'Case N');
END IF;
return true;
END beforeReport;
END XXAPINMO_PKG;
show errors package body XXAPINMO_PKG;
Then I launch my concurrent program with 'Y' in parameter and I see the log of my concurrent program :
XDO Data Engine Version No: 5.6.3
Resp: 51213
Org ID : 45
Request ID: 2468909
All Parameters: p_type_edition=Y
Data Template Code: XXAPINMOXML
Data Template Application Short Name: XXAP
Debug Flag: N
{p_type_edition=Y}
Calling XDO Data Engine...
Début des messages de journalisation à partir du fichier FND_FILE.
p_type_edition
Case N
Fin des messages de journalisation à partir du fichier FND_FILE.
But normally it should be 'Case Y' which would be written ...
And when I see the XML via Diagnostic I don't see the parameter however I add <property ...>
I really don't understand ...
Maybe do you have an another idea ?
Frédérique

Similar Messages

  • My magic trackpad has issue with 3 finger swipe between applications or swipe issue after OS X 10.8.1 update.

    hi,
    my magic trackpad has issue with 3 finger swipe between applications or swipe issue after OS X 10.8.1 update.
    Anyone facing the same issue? Thanks.

    Did you check System Preferences - Trackpad ? Also I'm not sure exactly what 3 fingered swipe are you referring to?

  • Issue with LCM while migrating planning application in the cluster Env.

    Hi,
    Having issues with LCM while migrating the planning application in the cluster Env. In LCM we get below error and the application is up and running. Please let me know if anyone else has faced the same issue before in cluster environment. We have done migration using LCM on the single server and it works fine. It just that the cluster environment is an issue.
    Error on Shared Service screen:
    Post execution failed for - WebPlugin.importArtifacts.doImport. Unable to connect to "ApplicationName", ensure that the application is up and running.
    Error on network:
    “java.net.SocketTimeoutException: Read timed out”
    ERROR - Zip error. The exception is -
    java.net.SocketException: Connection reset by peer: socket write error
    at java.net.SocketOutputStream.socketWrite0(Native Method)
    at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
    at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
    at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)

    Hi,
    First of all, if your environment for source and target are same then you will have all the users and groups in shared services, in that case you just have to provision the users for this new application so that your security will get migrated when you migrate the from the source application. If the environs are different, then you have to migrate the users and groups first and provision them before importing the security using LCM.
    Coming back to the process of importing the artifacts in the target application using LCM, you have to place the migrated file in the @admin native directory in Oracle/Middleware/epmsystem1.
    Open shared services console->File system and you will see the your file name under that.
    Select the file and you will see all your exported artifacts. Select all if you want to do complete migration to target.
    Follow the steps, select the target application to which you want to migrate and execute migration.
    Open the application and you will see all your artifacts migrated to the target.
    If you face any error during migration it will be seen in the migration report..
    Thanks,
    Sourabh

  • Issue with MozillaFirefox browser and Flash application

    Hi all,
                 I am new to Flash and ActionScript 3.0.
                 I have created a new flash application and executed it(.swf file has obtained). But, now I need to display the contents of .swf file(i.e., output of my application) in a browser window.
                 So, the issue is: When I open flash application in InternetExplorer browser window,  then the application/.swf file opens fine. But, it is not working well when  open it in MozillaFirefox browser window.
       Please, can anyone help me in this context.
    Thanks in advance. Reply me as soon as possible.......
    Srihari.Ch

    Hi Cyboide,
                   Actually, I am new to Flash platform. I have developed a flash file and (.fla and .swf files are created) this .swf file I need to use within our project(based on Java) which is to be run in localhost. So, I had followed these steps as I saw in Google Help:
    1.) I had opened .fla file(First.fla) and goto File -> PublishSettings -> Formats tab.
    2.) In this tab, I had selected .html and .swf checkboxes and deselected remaining all.
    3.) Click on "Publish" button and then "OK" button.
    So, a html file with same name as that of .fla/.swf file is created in the same folder beside thes .fla and .swf files.
    I think it is clear upto this point.
                     Now,
                                If I open my .swf file simply in a browser window(Mozilla), I can view the contents. But, the Buttons, checkboxes, Combo-boxes etc., controls have no access(i.e., any animation, tweening works well but  there is  no user interaction).
                               Else, When I open my project in localhost(Java project), here somewhere i call my flash file(i.e.,First.swf file). But, the contents of .swf file are not viewed in the case of Mozilla Firefox. But, it works well in InternetExplorer browser including my whole project(i.e., all localhost). Hence, no problems when opened in IE.
    Please reply me as soon as possible. It is the only issue to end up my project.
    Waiting for replies.....
    thanks a lot in advance..
    Srihari.Ch

  • Issue with deploying EAR to Weblogic 10.3.4 from STS

    Hi,
    I am using Spring Source Tool 2.6 as the IDE. While publishing the EAR to weblogic from STS, it is not happening. It doesnt give any error too. When I check from the admin console under deployments it will not be found. However, I am able to deploy the same ear file from admin console without any issue. Am I missing some thing while configuring the domain? Is there any work around for this? (Note: I am creating the domain by selecting the default options in dev environment).
    Thanks,
    Vishnu

    There appears to be an issue with tooling versions for Oracle tools and underlying eclispe. see following
    http://forum.springsource.org/showthread.php?104597-STS-2.6.0-M2-does-not-allow-adding-Weblogic-Servers

  • Issue with Distributed Queue and WebLogic Clustering

    Hi, When a message is received by distributed queue, MDB is processing the message on two managed servers. There seems to be issue with clustering and the physical queues present on both the managed servers are receving the message.
    Our environment configuration details are as below:
    One Web logic Cluster with 2 nodes (2 managed web logic servers).
    One MDB deployed on the cluster listening to a queue with JNDI name “xng/jms/CODEventsQueue”
    One Distributed queue with two members on the two nodes of the cluster, and with JNDI name “xng/jms/CODEventsQueue”
    Two members of the distributed queue deployed on two JMS servers, which are separately deployed on each managed server .
    And the distributed queue is deployed on the cluster.
    Any help is appreciated.
    Thanks
    Sampath

    It is not clear to me how you concluded that "both the managed servers are receiving the message". Did you monitor the queues' statistics, or did you see both MDB instances received the same message?
    It looks like that you using a weighted distributed queue. Do the two physical queues that compose the distributed queue have their own JNDI names? If so, what are they?
    Have you tried to use a uniform distributed queue and see if the same behavior shows up?
    You can find more about uniform distributed destination at
    http://edocs.bea.com/wls/docs103/jms/dds.html#wp1313713
    BTW, which WebLogic Server releases are you using? Could you provide the distributed queue configuration?
    Thanks,
    Dongbo

  • Issues with IFrame and calling an application outside the IFrame

    Hi
    I have an issue which is really turning my head 360 degrees in a "dead loop":)
    I have a WebDynpro application, one component and three views in a viewset.
    The first view will always be placed in column one and depending on some action the two other views should be loaded one by one. So in the main view the users will select three parameters from three dropdownboxes and then a call with the given parameters to an html file in KM - which then again is passing the parameters to a swf file which is presenting an Business Objects dashboard. The BO Dashboard is presented in an iFrame.
    The users selects an element in the Dashboard and is then again calling the webdynpro application with four parameters, the three first from the dropdownboxes, but also a new one which is used to call the third view. I am using NavigationTarget in the URL to load the application at the given position in the portal. And the logic is working, BUT the portal is presented in the IFram of the first View.
    So my question is - How to navigate from the IFrame and "back into the portal"????
    Regards
    Kay-Arne

    There was an issue with the serialization file created.
    Creating a new serilaization file via AAMEE and running it resolved the issue.
    Create a serialization file via AAMEE: http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/creativesuite/pdfs/Ad obeApplicationManagerEnterpriseEditionDeploymentGuide_v_3_1.pdf
    And then run it via command line.
    Here are the steps:
    AdobeSerialization (serialization file created using AAMEE 3.1) is not a double clickable file. You need to run it via command line to serialize the products. the command line is -
    AdobeSerialization --tool=VolumeSerialize --stream --provfile=”Absolute_Path_of_prov.xml”
    where
    --tool=VolumeSerialize:  specifies that the tool needs to process the prov.xml file to serialize.
    --provfile” specifies the absolute file path to the prov.xml file,
    By default, the tool looks for the prov.xml file in the same directory as the executable file and so
    typically you do not need to specify this option. (Specify this option only if the prov.xml file is in some
    other location.)
    Make sure you invoke command prompt with Admin privileges. Return code of zero means success.
    Tiffany can you please confirm the same?
    -Pragya

  • Log4j issue with two ears in weblogic cluster

    Hi,
    I am having issue with log4j.I am having 2 ear files say AppA and AppB.I have used log4j(DailyRollingFileAppender) in both so that logs from AppA gets written to a.log and from AppB gets written to b.log.
    This approach is working fine in non-clustered environment(weblogic admin server).
    But when i try the same in a clustered(weblogic cluster) environment the logs from both AppA and AppB gets written to a.log.
    Could you please help me to resolve this issue.

    Include ${weblogic.Name} in your log4j property file thiis will create the log file name with server name
    log4j.appender.TEST_LOGGER.File=/logs/${weblogic.Name}_TEST_LOGGER_LOG.txt
    Do not keep log4j within your ear
    move it to server and include it in your class path of your server.

  • OIM API portablity issue  with OIM 9.1 / Weblogic 10.3

    Hi , We have a existing piece of code which does some User Mutation through OIM API.
    [I am not well versed with OIM ]
    The code was running fine with Weblogic 8.3 and previous OIM version.
    Here is the piece of code.
    logger.info("Initializing OIM Params from config location:" oimConfigFileUtil.getOIMConfigBase());+*
    +          System.setProperty("XL.HomeDir", oimConfigFileUtil.getOIMConfigBase().getAbsolutePath());+
    +          System.setProperty("java.security.auth.login.config", oimConfigFileUtil.getOIMAuthWLFile().getAbsolutePath());+
    +          ConfigurationClient.ComplexSetting configClient = ConfigurationClient.getComplexSettingByPath("Discovery.CoreServer");+
    +          env = configClient.getAllSettings();+
    *+          try {+*
    +               oimAccessFactory = new tcUtilityFactory(env, oimConfigFileUtil.getUserID(), oimConfigFileUtil.getPassword());+
    I traced all the dependecy's for this piece of code.
    If I run this with Weblogic.jar[8.1] it gives me
    java.io.InvalidClassException: com.thortech.xl.dataaccess.tcDataSet; local class incompatible: stream classdesc serialVersionUID = -5446056666465114187, local class serialVersionUID = -8857647322544023100*
    With the compatablity issue I substituted with weblogic.jar:10.3 , now its giving me all classpath issues.
    Can someone layout the exact jars that are required for this to work?
    Thanks
    Vignesh

    Installl a Design Console. Copy any files that are required. Then take the class paths that are listed in the classpath and basecp files and put those into your application classpath files.
    -Kevin

  • Issue with switching spaces via clicking application in the dock

    Hey guys,
    Sometimes, not all the time, when I click on an application in the dock that has windows open in another space, it switches to the appropriate space, but with the application I clicked on not in the foreground. If I have other application windows open in that space, sometimes they occupy the foreground, and subsequently, the application I have clicked on on the dock is not in view. It is highly annoying when I click on the dock icon, to find that I have to go down and click on the dock icon a second time to bring the app into view. Does this happen to anyone else?
    Cheers guys,
    Ric.

    Thanks KXsig.
    I've been upgrading from 10.5.8 to 10.6.4 last sunday. Since then, switching between different Spaces with Magic Mouse, i've got that issue of a third party application dedicated to Spaces number 6, and appearing also in background of Spaces 4 dedicated to Safari, or also in any free Spaces spot, when the application dedicated is not opened.
    That didn't happened with Leopard, thanks a lot for the keyboard shortcut "Command + Tab".
    Maybe a fix in 10.6.5 to come..

  • Issue with receiving response from web application

    Hi,
    I have configured B2B with business protocol as 'Custom document document over Internet', document exchange protocol as AS2-1.1 and transport protocol HTTPS1.1 to invoke a web application deployed in Oracle Application server. B2B is able to invoke the web application with HTTPS request which contains an xml.
    I have set the acknowledgment mode as 'Sync' and 'Is acknowledgement handled by B2B' as true. But while receiving the response from web application which is an xml, B2B is showing the error as
    Description: Unable to identify the document protocol of the message
    StackTrace:
    Error -: AIP-50083: Document protocol identification error
         at oracle.tip.adapter.b2b.engine.Engine.identifyDocument(Engine.java:3244)
         at oracle.tip.adapter.b2b.engine.Engine.processIncomingMessage(Engine.java:1665)
         at oracle.tip.adapter.b2b.msgproc.Request.postTransmit(Request.java:2382)
         at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequestPostColab(Request.java:1825)
         at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequest(Request.java:974)
         at oracle.tip.adapter.b2b.engine.Engine.processOutgoingMessage(Engine.java:1166)
         at oracle.tip.adapter.b2b.data.MsgListener.onMessage(MsgListener.java:833)
         at oracle.tip.adapter.b2b.data.MsgListener.run(MsgListener.java:400)
         at java.lang.Thread.run(Thread.java:534)
    I have added headers as present in the wire message of the request. In B2B, it is showing the wire message for response as follows.
    TO_PARTY=XXX
    AS2-To=XXX
    DOCTYPE_NAME=TestAS2DT
    DOCTYPE_REVISION=1.0
    Date=Tue, 03 Nov 2009 06:09:22 GMT
    AS2-Version=1.1
    AS2-From=YYY
    Content-Transfer-Encoding=binary
    [email protected]
    ACTION_NAME=TestAS2_BA
    Content-Type=application/xml
    Server=Oracle-Application-Server-10g/10.1.3.4.0 Oracle-HTTP-Server
    MIME-version=1.0
    User-Agent=AS2 Server
    FROM_PARTY=YYY
    Content-Disposition=attachment; filename=1.0
    Connection=Keep-Alive
    From=YYY
    Keep-Alive=timeout=15, max=100
    <?xml version="1.0" encoding="UTF-8"?>
    <Books>
    <Book>
    <BookTitle>Ajax Hacks</BookTitle>
    <Author>Bruce W. Perry</Author>
    <PubDate>March 2006</PubDate>
    </Book>
    </Books>
    I am able to see the xml sent as response from web application in Payload as follows.
    <?xml version="1.0" encoding="UTF-8"?>
    <Books>
    <Book>
    <BookTitle>Ajax Hacks</BookTitle>
    <Author>Bruce W. Perry</Author>
    <PubDate>March 2006</PubDate>
    </Book>
    </Books>
    I am able to see the HTTP response in b2b_dc_transport.log. In transport log it is not showing any error. Please help me to fix this issue.

    Hi,
    Request and Response should be part of same agreement. I hope you are not confused between Acknowledgement and Response. Acknowledgement can be received in the same session (sync mode) but Response will always come in a different session and will be treated as a different document. If, for request, party A is initiator and B is responder then for response party B will be initiator and party A will be responder (as Requset and Response are two docs in case of Custom Document)
    For configuring X-Path, please refer section 8.3.11 Configuring the XPath Expression for a Custom XML Document at below link -
    http://download.oracle.com/docs/cd/B14099_19/integrate.1012/b19370/busact_coll.htm#sthref784
    Please let us know whether you are trying to receive a response or Ack?
    Regards,
    Anuj

  • Issue with uploading XML file from application server into internal table

    i Need to fetch the XML file from the application server and place into internal table and i am getting error message while using the functional module   SMUM_XML_PARSE and the error message is "line   1 col   1-unexpected symbol; expected '<', '</', entity reference, character data, CDATA section, processing instruction or comment" and could you please let me know how to resolve this issue?  
        TYPES: BEGIN OF T_XML,
                 raw(2000) TYPE C,
               END OF T_XML.
    DATA:GW_XML_TAB TYPE  T_XML.
    DATA:  GI_XML_TAB TYPE TABLE OF T_XML INITIAL SIZE 0.
    DATA:GI_STR TYPE STRING.
    data:  GV_XML_STRING TYPE XSTRING.
    DATA: GI_XML_DATA TYPE  TABLE OF SMUM_XMLTB INITIAL SIZE 0.
    data:GI_RETURN TYPE STANDARD TABLE OF BAPIRET2.
        OPEN DATASET LV_FILE1 FOR INPUT IN TEXT MODE ENCODING DEFAULT.
        IF SY-SUBRC NE 0.
          MESSAGE 'File does not exist' TYPE 'E'.
        ELSE.
          DO.
    * Transfer the contents from the file to the work area of the internal table
            READ DATASET LV_FILE1 INTO GW_XML_TAB.
            IF SY-SUBRC EQ 0.
              CONDENSE GW_XML_TAB.
    *       Append the contents of the work area to the internal table
              APPEND GW_XML_TAB TO GI_XML_TAB.
            ELSE.
              EXIT.
            ENDIF.
          ENDDO.
        ENDIF.
    * Close the file after reading the data
        CLOSE DATASET LV_FILE1.
        IF NOT GI_XML_TAB IS INITIAL.
          CONCATENATE LINES OF GI_XML_TAB INTO GI_STR SEPARATED BY SPACE.
        ENDIF.
    * The function module is used to convert string to xstring
        CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
          EXPORTING
            TEXT   = GI_STR
          IMPORTING
            BUFFER = GV_XML_STRING
          EXCEPTIONS
            FAILED = 1
            OTHERS = 2.
        IF SY-SUBRC <> 0.
          MESSAGE 'Error in the XML file' TYPE 'E'.
        ENDIF.
      ENDIF.
      IF GV_SUBRC = 0.
    * Convert XML to internal table
        CALL FUNCTION 'SMUM_XML_PARSE'
          EXPORTING
            XML_INPUT = GV_XML_STRING
          TABLES
            XML_TABLE = GI_XML_DATA
            RETURN    = GI_RETURN.
      ENDIF.
      READ TABLE GI_RETURN TRANSPORTING NO FIELDS WITH KEY TYPE = 'E'.
      IF SY-SUBRC EQ 0.
        MESSAGE 'Error converting the input XML file' TYPE 'E'.
      ELSE.
        DELETE GI_XML_DATA WHERE TYPE <> 'V'.
        REFRESH GI_RETURN.
      ENDIF.

    Could you please tel me  why the first 8 lines were removed, till <Soap:Body and also added the line <?xml version="1.0" encoding="UTF-8"?> in the beggining .
    Becuase there will be lot of  XML files will be coming from the Vendor daily and that should be uploaded in the application server and should update in the SAP tables based on the data in the XML file.
    what information i need to give to vendor that do not add the first 8 lines in the XML file and add the line in the beggining <?xml version="1.0" encoding="UTF-8"?>   ??????
    Is there any other way we can do with out removing the lines?

  • Critical issue with Connection.setReadOnly on WebLogic

    Hi All,
    We've just hit a critical issue while running on WebLogic.
    After establishing a connection from a connection pool, we set the ReadOnly status to true on the Connection.
    (We do this so user entered SQL can be executed)
    In testing, we put in a DELETE FROM TEST_TABLE_NAME command, and the code is actually performing the delete.
    (Updates the same)
    I've connected a remote debugger and seen that the ReadOnly flag is set to true inside the connection Object.
    This is how my connection pool is configured........
    driver class name: oracle.jdbc.OracleDriver
    properties:
    user=V42_ISMART_DEMO_USER
    ejb=sisPool
    class=oracle.jdbc.pool.OracleConnectionPoolDataSource
    protocol=thin
    xa-location=jdbc/xa/sisPool
    Transaction is using One-Phase commit.
    database is 11.1.0.7.0
    Weblogic 10.3
    Java 1.6
    Any pointers in the right direction would be greatly appreciated, as this is currently blocking a product release.
    Thanks,
    Ronan

    Do tell us more about the product release and how this issue has come to
    block it. How does the behavior you see differ from anything earlier in your
    development cycle!
    You have already taken WebLogic out of the equation be confirming that
    the read-only setting is passed to the driver's connection object, so this is
    only a driver issue. You could take it up in the JDBC forum, but the main
    issue is probably that you have not investigated the specified semantics of
    setReadOnly(). From a user perspective, it sounds like it might be intended
    to stop any user SQL from altering the DBMS, though with deeper thought
    on the issue, that could only be implemented at the DBMS itself. The driver
    could never know if a stored procedure you call or a trigger on a select
    query you make altered the DBMS.
    The spec for the call, however, carves out a totally different and vastly
    less interesting meaning to the method:
    "Puts this connection in read-only mode as a hint to the driver to enable
    database optimizations. "
    This allows the driver to totally ignore the input in cases where it does not
    enable any 'dbms optimizations' which it does not in this case, so the driver
    does ignore the setting, except to helpfully return it to you later if you should
    call getReadOnly()... ;)
    HTH,
    Joe

  • Performance issue with multiple installations of 1 application in 1 databas

    In our company we use JD Edwards. Every branch has its own JD Edwards installation in a separate schema but in the same database (Oracle9i Enterprise Edition Release 9.2.0.7.0) => In 1 database there are 10-20 copies of each table.
    On top of JD Edwards we are developing a Java/JSP application which accesses the JD Edwards data by means of pl/sql stored functions returning ref_cursors. Our DBA states we have to prefix all our tables/views within our stored functions for performance reasons. According to him omitting the schema name would result in increase of hard parses, because the shared_pool can only store 1 occurrence of an sql statement. So only the statement of 1 branch is cached. The execution of the same statement in anothers schema would lead to a hard parse and not to a soft parse.
    For us developers the use of schema names complicates the development process, because we have to use a substitution parameter (&schema_name) in our coding which prevents us from maintaining our code in tools like Toad.
    Questions
    * Does it make sense to use the schema name in this case?
    * Is there another way (not using schema names) to get a good performance in this situation?
    Thanks,
    Matthieu de Graaf

    1) I'm not a JD Edwards person, but I would wager that if you're to the point where you have consolidated all the schemas to a single instance that it would be possible and preferrable to consolidate everything further into a single schema. I have to believe that JD Edwards provides tools to restrict what bits a particular branch can see without requiring separate instances.
    2) What data are you accessing exactly? Are you always accessing data for a particular branch? Or do you need information from every branch?
    3) Is your application logging in as a single user? Or will there be 1 application user for every JD Edwards schema?
    4) Are you deploying your PL/SQL into 10-20 different schemas? Or into just 1?
    Whether or not you are explicitly using the schema name, Oracle will have to do a hard parse of every logically distinct SQL statement. Two SQL statements that access different tables that happen to share the same name are logically distinct, so your shared pool will end up with 10-20 copies of the "SELECT * FROM <<some table name>>" SQL statement if it is executed against every instance of <<some table name>>.
    The question may be whether it is better to explicitly provide the schema name or to rely on synonyms. You generate the same number of hard parses either way, but explicit schema names may improve latch contention during parses if Oracle has to do a lot of synonym resolution. Not many people/ applications are really hurt by this latch contention, though, so it is very hard to say whether this is a legitimate concern.
    Justin

  • PrintSetup/Preview issue with WebBrowser control in 64bit applications

    The WebBrowser Control appeared to be working well in a 64-bit VB.Net application I've been developing, until I looked more closely at what was happening when using the ShowPrintSetupDialog and ShowPrintPreviewDialog members. If I opened the print setup
    dialog and changed the page size from A4 to 8.5 x 11, clicked ok, and then either reopened the page setup dialog or accessed it through the print preview dialog, the page size had returned to A4 and had not retained the 8.5 x 11 setting. However, if I rebuild
    the application as 32-bit the changed setting is correctly retained. The code is being developed using Visual Studio 2012 Express running as administrator under 64-bit Windows 8.1 with 64bit Internet Explorer 11 installed as standard. Does anyone
    know how to overcome this problem so users can confidently change the page size in a wholly 64-bit application and print via the WebBrowser control? Thanks in advance for any help you can provide.

    I suppose you are using these methods WebBrowser.ShowPrintPreviewDialog Method and
    WebBrowser.ShowPageSetupDialog Method.
    Both methods show the below. Although why it would work 32 and not 64 is unknown to me.
    .NET Framework Security
    SecurityPermission 
    for immediate callers to use this control. Demand value: LinkDemand;
    Named Permission Sets:
    FullTrust.
    PrintingPermission 
    to access the printer through this method. Demand value: Demand. Associated enumeration:
    DefaultPrinting.
    La vida loca

Maybe you are looking for