Up2date http forbidden error when trying to use local yum repository

I have recently set up a local yum repository according to the directions in the document located at http://www.oracle.com/technetwork/articles/servers-storage-admin/yum-repo-setup-1659167.html
Now, when I run up2date -u, I get the following output:
There was a fatal error communicating with the server. The message was:
An HTTP error occurred:
URL: http://us1lxmgt1/yum/EnterpriseLinux/EL5/latest/x86_64//headers/header.info
Status Code: 403
Error Message: Forbidden
Thinking this was a problem with my repository or web server setup, I used wget to download the header.info file mentioned in the error, but this works perfectly as shown from the output below:
# wget http://us1lxmgt1/yum/EnterpriseLinux/EL5/latest/x86_64//headers/header.info
--2013-03-09 19:05:19-- http://us1lxmgt1/yum/EnterpriseLinux/EL5/latest/x86_64//headers/header.info
Resolving us1lxmgt1... 159.234.2.1
Connecting to us1lxmgt1|159.234.2.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1510242 (1.4M) [text/plain]
Saving to: `header.info'
100%[==============================================================================================================================================>] 1,510,242 --.-K/s in 0.06s
2013-03-09 19:05:19 (23.6 MB/s) - `header.info' saved [1510242/1510242]
Running up2date with no options yields the following:
An error has occurred:
exceptions.KeyError
See /var/log/up2date for more information
and /var/log/up2date contains:
[Sat Mar  9 19:06:33 2013] up2date File "/usr/share/rhn/up2date_client/gui.py", line 1331, in onChannelsPagePrepare
values.append(channel['NAME'])
File "/usr/share/rhn/up2date_client/rhnChannel.py", line 48, in __getitem__
return self.dict[item]
[Sat Mar  9 19:06:40 2013] up2date availablePackageList from network
[Sat Mar  9 19:06:40 2013] up2date
An HTTP error occurred:
URL: http://us1lxmgt1/yum/EnterpriseLinux/EL5/latest/x86_64//headers/header.info
Status Code: 403
Error Message: Forbidden
Any ideas what might be going wrong?
Thanks
Edited by: tafairch on Mar 9, 2013 4:09 PM

tafairch wrote:
Actually, I have set up both. The only uncommented lines in the /etc/sysconfig/rhn/sources file are:
yum el5_$ARCH_latest http://us1lxmgt1/yum/EnterpriseLinux/EL5/latest/$ARCH/
yum ol5_$ARCH_latest http://us1lxmgt1/yum/OracleLinux/OL5/latest/$ARCH/
I also have a repo file in /etc/yum.repos.d. In that file the only sections marked enabled are the following:
[el5_latest]
name=Oracle Linux $releasever - $basearch - latest
baseurl=http://us1lxmgt1/yum/EnterpriseLinux/EL5/latest/$basearch/
gpgcheck=1
enabled=1
[ol5_latest]
name=Oracle Linux $releasever - $basearch - latest
baseurl=http://us1lxmgt1/yum/OracleLinux/OL5/latest/$basearch/
gpgcheck=1
enabled=1
Thanks for the helpFirst of all, having both of these setup is completely redundant. The only difference between these two channels is that the el5 channel contains rpms from before the release of OL5.6 and up to now and the ol5 channel only contains everything since OL5.6 to now.
Second, can you post the entire sources file?
Third, though Dude isn't completely correct about the use of up2date, you can use yum on OL5 to get updates from the server, but you'd need to just use yum and not up2date in that case. For some reason, when you configure up2date to use yum via the sources file it uses a completely different stack of yum software other than the yum client that is installed by the yum rpms. Instead, it uses the older header format provided by yum-arch. When you use yum by itself, it uses the metadata that's created from createrepo instead (think repodata).
Fourth, you may have better luck with using the yum client overall. And actually, in the long run you would be better served to use yum since asa OL4 is phased out, we're going to discontinue yum-arch which will in turn stop the up2date clients from working in this scenario. (Note: we don't use yum-arch to generate header information for ULN.)

Similar Messages

  • "500 internal server error" when trying to use F4 help in the variable sele

    Hi Experts,
    I am getting "500 internal server error" when trying to use F4 help in the variable selection screen (in WAD).
    How could this be resolved?
    Quick reply would be very helpfull.
    Thanks in advance !!

    It seems you are using wrong client ID. Make sure your logon pad has right details. You should verify this with your basis team.
    If the problem persists then try re-installing. But before you do that you can execute sapbexc.xla which is in the c:\program files\sap\bw. Type c:\ in cell c3 and click "start button". Any red flag means you have wrong version dll/ocx on your local drive, in that case you should reinstall with right patches.
    if this solution helps u then pls assign points

  • Runtime error when trying to use Thinkvantage system updater

    I get a runtime error when trying to use the Thinkvantage system updater.Have tried it numerous times and this is the exact message:
    "Runtime error!
    Program:C:\Program Files\Lenovo\System Update\tvsu.exe
    This application has requested the Runtime to terminate it in an unusual way.
    Please contact the application's support team for more information."
    Can somebody please help me to get the Thinkvantage system updater working properly?
    Thanks-George
    This issue has since been resolved.Thanks-G

    I'm getting the same error.   I tried reinstalling system updater but it didn't help.

  • Why do I get this error when trying to use my bluetooth headset as a listening device? There was an error connecting to your audio device. Make sure it is turned on and in range. The audio portion of the program you were using may have to be restarted.

    Why do I get this error when trying to use my bluetooth headset as a listening device? There was an error connecting to your audio device. Make sure it is turned on and in range. The audio portion of the program you were using may have to be restarted.

    I may have already resolved this issue buy removing the device from my computer and re-pairing it. It is currently working just fine.

  • I get the following error when trying to use the itunes store "your apple id has been disabled"

    I get the following error when trying to use the itunes store "your apple id has been disabled".  My account was disabled when someone else had been using it without my knowledge.  I changed my apple id password and the apple id is still fine, but itunes has it disabled.  I verified that the computer is authorized for this apple id.  What to do now?

    Welcome to the Apple Community.
    Contact Apple through iTunes Store Support

  • Keep getting VncViewer.class not found error when trying to use Windows 7

    Greetings,
    I have no issue accessing the OVM Manager 2.2 with OEL 5.4 x86_64 with the latest Java release from ULN. But when I use a Windows 7 client ( x86) with the Sun Java 6 Update 18 I get the following error when trying to access the Console of a VM Guest:
    Java Plug-in 1.6.0_18
    Using JRE version 1.6.0_18-b07 Java HotSpot(TM) Client VM
    User home directory = C:\Users\deverej
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    load: class VncViewer.class not found.
    java.lang.ClassNotFoundException: VncViewer.class
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed:http://141.144.112.202:8888/OVS/faces/app/VncViewer/class.class
         at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 7 more
    Exception: java.lang.ClassNotFoundException: VncViewer.class
    I am curious fi I should use only a specifc Java Engine with IE 7 or the latest Firefox browers.

    Same issue to with Windows XP SP3 x86 with Java Runtime Enviornment 1.5.0_15
    J2SE Enviornment 5.0 Update 15
    Java 6 Update 17

  • Pop-up errors when trying to use FaceBook on Sarafi 4 on Windows

    Hi there.
    When trying to use Safari on Windows, I get an annoying pop-up whenever I try to use chat on FaceBook and it says something about MIME type not recognised and pluggin errors. I have installed the latest flash but it keeps happening - is there another plug-in I need to reinstall?

    Here is a link to the info on how to access the 4200 set up pages and how to do Port Forwarding with it
    http://portforward.com/english/routers/port_forwarding/Siemens/4200/iChat.htm
    Use the Access info and then see if you have it doing UPnP to open the ports.
    If it is then the Port Forwarding does not need setting.
    Next, if you did originally set it to do Port Forwarding this should have pointed to an IP (The one your computer has/had)
    Check the Port Forward that is set is pointing to the IP the computer has now by Looking in System Preferences > Network
    QUite a way done the log your end suddenly switches the port it sends the SIP part of the invite on
    INVITE sip:user@rip:61042 SIP/2.0
    Via: SIP/2.0/UDP sip:60442;branch=z9hG4bK672a7283709f480e
    Max-Forwards: 70
    To: "u0" <sip:user@rip:61042>
    From: "0" <sip:user@lip:16402>;tag=2100237526
    Call-ID: 5c6e32e2-2788-11dd-904a-8c2872d74012@lip
    CSeq: 1 INVITE
    Contact: <sip:user@sip:60442>;isfocus
    User-Agent: Viceroy 1.3
    Content-Type: application/sdp
    Content-Length: 744
    This is not an iChat port and it messes up where iChat then says to send the Video and Audio data.
    The log from the other end implies the ports are not even open.
    10:42 PM Wednesday; July 9, 2008

  • Why do I get an error when trying to use a link in the forum?

    I just tried to use the link that Varad offered in Redirect certain users with login procedure and I got an error:
    The specified thread [0] was not found.
    I got the same thing when trying to use a similar link a couple of days ago. They sound like something I might benefit from, but I can' get to them.
    The link URL looks like Re: logon username determines page that opens, how can I accomplish this?
    Any ideas?
    Thanks,
    Gregory
    P.S. I'm using Firefox 3.0.4

    Tony,
    That's what I thought, but apparently it worked for Stefan. If you go to Stefan's post (first link above) do you also see the same link as I have attempted to copy? In Stefan's post, do you see the question mark in a diamond?
    Thanks,
    Gregory

  • Program error when trying to use the clone stamp tool - PSE 8

    When trying to use the CLONE STAMP TOOL, getting the following:  "Could not use the clone stamp tool because of a program error".
    Runnng PSE 8 on Windows XP/SP3.  I purchased the key to have a full version, versus the 'trial version'.  I also have Photo Essentials 3 installed and have used it without any problems.
    Any suggestions?

    I figured it out - it was ID 10 T error...ugh.
    Was following along in a book and blindly did what it said....was forgetting to hit the 'alt' key when first defining the area to clone....
    However, it was kind of a confusing error message - something like "clone area not defined" would be more of a help.
    thanks.

  • List of values failure error when trying to use dynamic data values

    Hi there,
    I have a user who is experiencing problems when trying to use dynamic values in a report.  Whenever he tries to insert dynamic parameters he gets the following error message:
    Prompting failed with the following message: 'List of Values failure: Failed to get values.  [Cause of error: Access is denied.]  Error Source: prompt.dll  Error Code: 0x8004380D
    He even opened the sample report - prompting.rpt - that is included with CR and gets the same error.
    We are using Crystal Reports XI Release 2 ver. 11.5.11.1470.
    Any help would be appreciated.

    Please excuse my ignorance of the product.  I've had this problem dropped in my lap and I know practically nothing about Crystal Reports.  In doing some digging it appears to me as if the BusinessObjects Enterprise software may not be installed properly, if at all.  In the programs menu under the BusinessObjects XI Release 2 folder I see a BusinessObjects Enterprise folder, but the only icon listed in that folder is Software Inventory Tool.
    Is the BusinessObjects Enterprise software a separate install from Crystal Reports or is it bundled together?  I talked with the tech that did the install and he said that all he had was the Crystal Reports install media.

  • OPM gives error when trying to use XSLT stylesheet

    Hi,
    I am trying use a simple XSLT stylesheet into an OPM project and see the result in the web determination screen.But when ever i am clicking on the link that is created when i compile the project with the XSL file, i am getting the error
    "An error occurred trying to process your request.
    This error has been logged and is available in the application logs.
    For support and assistance please contact [email protected]"
    I have kept the XSL file inside the "templates" folder in "include" folder.
    I am using a very simple one i.e
    <?xml version="1.0" encoding="UTF-8" ?>
    <xsl:stylesheet
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    version="1.0" >
    <xsl:output method="html"/>
    </xsl:stylesheet>
    How do I find what the error is and what do I need to do to solve this?
    Thanks and regards
    Sagnik

    Yes, now that above issue is solved and now when I click on the "HTML" or "PDF" link, I think some file is being generated but not properly.
    For HTML, I am getting blank page error and for PDF I am getting "file is damaged" error.May be, the xslt stylesheet that I am using is wrong, but I am absolutley stuck with this. I have tried many different formats of xlst stylesheets, but none seem to be working.
    pasting the two xslts below:
    *<?xml version="1.0" encoding="UTF-8" ?>*
    *<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">*
    *<xsl:output method="html"/>*
    *<xsl:template match="/">*
    *<xsl:apply-templates/>*
    *</xsl:template>*
    *<html>*
    *<body>*
    *<xsl:template match="session">*
    *<session><xsl:apply-templates/></session>*
    *</xsl:template>*
    *<xsl:template match="entity name">*
    *<entity-name align="center"><xsl:apply-templates/></entity-name>*
    *</xsl:template>*
    *<xsl:template match="instance label">*
    *<instance-label align="center"><xsl:apply-templates/></instance-label>*
    *</xsl:template>*
    *<xsl:template match="attribute id">*
    *<attribute-id><xsl:apply-templates/></attribute-id>*
    *</xsl:template>*
    *<xsl:template match="date-val">*
    *<date-val><xsl:apply-templates/></date-val>*
    *</xsl:template>*
    *<xsl:template match="text-val">*
    *<text-val><xsl:apply-templates/></text-val>*
    *</xsl:template>*
    *<xsl:template match="unknown-val">*
    *<unknown-val><xsl:apply-templates/></unknown-val>*
    *</html>*
    *</body>*
    *</xsl:template>*
    *</xsl:stylesheet>*
    and
    *<?xml version="1.0" encoding="UTF-8" ?>*
    *<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">*
    *<xsl:output method="html"/>*
    *<xsl:template match="/">*
    *<html>*
    *<body>*
    *<xsl:template match="session">*
    *<session><xsl:apply-templates/></session>*
    *</xsl:template>*
    *<enityName>*
    *<xsl:for-each select="entity name">*
    *<instancelabel>*
    *<xsl:for-each select="instance label">*
    *<attribute-id>*
    *<xsl:for-each select="attribute id">*
    *<text-val>*
    *<xsl:value-of select="text-val"/>*
    *</text-val>*
    *<date-val>*
    *<xsl:value-of select="date-val"/>*
    *</date-val>*
    *</xsl:for-each>*
    *</attribute-id>*
    *</xsl:for-each>*
    *</instancelabel>*
    *</xsl:for-each>*
    *</enityName>*
    *</body>*
    *</html>*
    *</xsl:template>*
    *</xsl:stylesheet>*
    also pasting the source xml file I am trying to convert.
    - <session xmlns="http://oracle.com/determinations/engine/relational/sessiondata/10.0" sessionDateTime="2010-12-17T11:34:08" locale="en-US" rulebase="Barclay_2910" rulebase-build="2010-12-17 06:04:02Z">
    - <entity name="global">
    - <instance label="global">
    - <attribute id="S_Other_Type_of_Business1">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Nature_of_Business">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="N_Desired_Review_Period">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_I_Confirm">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_new_investors_ID_Vd">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Address">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="N_Total_Amount_of_Capital_Invested">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_State_Business_use_Trading_name1">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Correspondence_Postcode">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Country">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_BTA_Code1">
    *<text-val>Central Government</text-val>*
    *</attribute>*
    - <attribute id="S_Correspondence_Address">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="N_Total_Amount_Capital_Invested_non_Corporate">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Business_Organisation">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_State_Business_use_Trading_name">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Business_Organisation1">
    *<text-val>1</text-val>*
    *</attribute>*
    - <attribute id="S_Date_Established1">
    *<date-val>2010-01-01</date-val>*
    *</attribute>*
    - <attribute id="S_Telephone_Number">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Date_of_Incorporation1">
    *<uncertain-val />*
    *</attribute>*
    - <attribute id="S_Date_of_Incorporation">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Postcode">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Start_Up_Type_Non_Corporate">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Previous_registered_names">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Other_Investments_non_corporate">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Registered_Number">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="b8@Properties_PropBkACC_xsrc">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Registered_Number1">
    *<text-val />*
    *</attribute>*
    - <attribute id="b6@Properties_PropBkACC_xsrc">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Business_use_Trading_name1">
    *<text-val>Yes</text-val>*
    *</attribute>*
    - <attribute id="S_Registered_address_Main_Trading">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_select_the_high_risk_industry_operated1">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Start_Up_Type">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Priority1">
    *<text-val>Standard</text-val>*
    *</attribute>*
    - <attribute id="S_Correspondence_address_same_Main_Trading">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Additional_Source_Capital">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Previous_Sort_Code">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Source_of_funds">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Choose_Start_Up1">
    *<text-val>Start Up/New Entity/Businesses</text-val>*
    *</attribute>*
    - <attribute id="S_Registered_Country">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Fax_Number">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Contributer">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_business_organisations_annual_turnover1">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Previous_Account_number_Roll_Number">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Previous_registered_names1">
    *<text-val />*
    *</attribute>*
    - <attribute id="b9@Rules_startuprule_doc">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_CIS_Record1">
    *<text-val>Yes</text-val>*
    *</attribute>*
    - <attribute id="S_Employees_Members1">
    *<text-val>1-9</text-val>*
    *</attribute>*
    - <attribute id="S_shareholders_Contributors">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Business_operate_high_risk_industry">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="b7@Properties_PropBkACC_xsrc">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_select_the_high_risk_industry_operated">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_business_organisations_annual_turnover">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Registered_Postcode">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Nature_of_Business1">
    *<text-val />*
    *</attribute>*
    - <attribute id="S_Country_of_Incorporation1">
    *<text-val>1</text-val>*
    *</attribute>*
    - <attribute id="N_issued_share_capital_company">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Correspondence_Country">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Type_of_Business1">
    *<text-val>Sole Trader</text-val>*
    *</attribute>*
    - <attribute id="S_Web_Address">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Registration_Number1">
    *<text-val />*
    *</attribute>*
    - <attribute id="S_Business_operate_high_risk_industry1">
    *<text-val>Yes</text-val>*
    *</attribute>*
    - <attribute id="S_Additional_Source_Capital1">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="Source_of_funds_non_Corporate">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Country_of_Incorporation">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_if_registered_address">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Date_Established">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Registration_Number">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_ID_VD">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_I_confirm_form_287">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Other_Investments">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_I_Confirm1">
    *<text-val>Yes</text-val>*
    *</attribute>*
    - <attribute id="S_Date_Form_Lodged">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Registered_Address">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="S_Other_Type_of_Business">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="N_start_up_capital_business">
    *<unknown-val />*
    *</attribute>*
    - <attribute id="N_Approx_transferring_balance">
    *<unknown-val />*
    *</attribute>*
    *</instance>*
    *</entity>*
    *</session>*
    Edited by: Sagnik on Dec 21, 2010 12:06 AM

  • 'Could not complete your request because of a program error' when trying to use an effect

    Hi all,
    I have looked around and cant seem to find the ansewer to my very annoying problem. When I am trying to use the effect options with in the layers pallete I get the annoying message:
    ' Could not complete your request because of a program error. '
    Has anyone come across it using these tools and has anyone found a fix for it. It was working fine then it went funny. I have restarted photoshop, my machine and re-installed the software but stiill not fix. ITs is very annoying as I use these options everyday in the job I do.
    Cheers.
    Jon

    You might try restting the photoshop preferences:
    http://forums.adobe.com/thread/375776?tstart=0

  • Errors when trying to use WebBrowser control

    Hi,
    I am trying to use the WebBrowser control on a winForm. When I do, I initially get a an error relating to the thread being required to be in a Single Threaded Apartment. (cannot be instantiated because the current thread is not in a single-threaded
    apartment) So I add it to a single threaded apartment which fixes that issue.
    However when I try to run it again, the next error I get is (Controls created on one thread cannot be parented to a control on a different thread). So I add the control to the form in the thread context of the form using a
    SyncContext, but this makes no difference so I use BeginInvoke. Not only does this not work but it freezes the form I am trying to load with the WebBrowser.Any
    Any ideas why this is acting in this fashion?
    Below is my final attempt at getting the web Browser to work:
    Many thanks for any suggestions!
    Public Sub New()
    Dim t As New Threading.Thread(AddressOf InitBrowser)
    t.SetApartmentState(Threading.ApartmentState.STA)
    t.Start()
    End Sub
    Private browser As WebBrowser
    Private Sub InitBrowser()
    browser = New WebBrowser()
    browser.Width = 500
    browser.Height = 500
    ' this didn't work
    '_syncContext.Send(Sub(x)
    ' Me.Controls.Add(browser)
    ' browser.Navigate("http://www.google.com")
    ' End Sub, Nothing)
    If Me.InvokeRequired Then
    Me.BeginInvoke(Sub()
    Me.Controls.Add(browser)
    browser.Navigate("http://www.google.com")
    End Sub)
    Else
    Me.Controls.Add(browser)
    browser.Navigate("http://www.google.com")
    End If
    End Sub
    @nt

    Hi Carl, Thanks for your time.
    Below is the initial simple, unthreaded code, but when I try to run it I get this error :-
    "ActiveX control '8856f961-340a-11d0-a96b-00c04fd705a2' cannot be instantiated because the current thread is not in a single-threaded apartment."
    Const TOP_MARGIN = 50
    Const SIDE_MARGIN = 3
    Me._browser = New WebBrowser() ' breaks here
    _browser.Top = TOP_MARGIN
    _browser.Left = SIDE_MARGIN
    _browser.Height = CInt(Me.Height - (TOP_MARGIN * 2))
    _browser.Width = CInt(Me.Width - (SIDE_MARGIN * 2))
    _browser.ScrollBarsEnabled = False
    so I wrap it in the STA thread which fixes that issue, as below:
    Dim browserThread = New Thread(Sub() InstantiateBrowser())
    browserThread.SetApartmentState(ApartmentState.STA)
    browserThread.Start()
    While browserThread.IsAlive
    Application.DoEvents()
    End While
    Me.Controls.Add(_browser) ' breaks here'
    _browser.Navigate(_preparationURL)
    End Sub
    Private Sub InstantiateBrowser()
    Const TOP_MARGIN = 50
    Const SIDE_MARGIN = 3
    Me._browser = New WebBrowser()
    _browser.Top = TOP_MARGIN
    _browser.Left = SIDE_MARGIN
    _browser.Height = CInt(Me.Height - (TOP_MARGIN * 2))
    _browser.Width = CInt(Me.Width - (SIDE_MARGIN * 2))
    _browser.ScrollBarsEnabled = False
    End Sub
    But now that is Apartment threaded, it is not being created on the same thread as the form, so when I try to add the browser to the forms controls collection I get the error below:
    "Controls created on one thread cannot be parented to a control on a different thread."
    I then tried rejoining the thread with a syncContext but that did not help. Any ideas on this?
    Many thanks
    @nt

  • Shared Services - HTTP 403 error when trying to access from user's PC

    We recently upgraded to Shared Services 9.3.1. We can get into the User Mgt Console when remoted into the Shared Services server; however, when I try to access the URL from my PC, I get an HTTP 403 error. I have confirmed in my Internet Options/Security that I have the Shared Services server as a trusted site. From looking at the error closer, it appears that it finds the website, but the website denies my computer access. If I remote into one of our other Hyperion servers and use the Shared Services URL, it works fine. What do we need to change so that the Hyperion admins can access the Shared Services URL from their own PC w/o having to remote into the servers?
    Terri

    I never tried using the IP address until just a few minutes ago and I still got the HTTP 403 error.
    I also just tried using Mozilla and got the following error:
    The Server is not able to service this request: [Server:002621]Connection rejected, the server license allows connections from only 5 unique IP addresses.
    When we upgraded from Shared Services 9.2.0.2 to 9.3.1, we also upgraded BEA WebLogic from 8.1.4 to 9.2. We did not have this issue when using 8.1.4.
    Thanks for your help!
    Terri

  • 1043 error when trying to use dynamic events on RT system

    Hello,
    I am trying to define some dynamic events as specified it the LabView help for RT targets. But when trying to run the vi I get the 1043 error. What am I doing wrong?
    Thank you,
    Przemek
    Attachments:
    RT test.vi ‏17 KB

    Dear Przemek,
    to fully understand you problem and to be able to help you, I will have to ask you a few questions:
    What version of LabVIEW are you using?
    What RT target are you using?
    What specific help file are you referring to?
    Are you creating an executable? If yes, this document could be helpful:
    http://digital.ni.com/public.nsf/allkb/1E180530E05E4DB28625731C006CCB5A?OpenDocument
    Regards,
    Mateusz Stokłosa
    Applications Engineer
    National Instruments

Maybe you are looking for