403 Forbidden errors when calling GetUploadURL for iTunes U API

I am trying to test the uploading of XML to iTunes U using the provided
API. However, I am consistently receiving a 403 Forbidden response
(and resulting exception thrown in Java) when I attempt to get the
URL for upload with the call to /WebObjects/Core.woa/API/GetUploadURL/.
I am able to generate successful login URLs with identical calls to
/WebObjects/Core.woa/API/GetBrowseURL/, which successfully authenticate
me to iTunes U, with the same credential.
Furthermore, following a suggestion found online, I have issued calls to
/WebObjects/Core.woa/Browse/ with my debugging string appended, again
with the same credentials, and that SUCCEEDS, telling me that
"Because the received signature and time were valid, the received identity
and credentials were accepted by iTunes U" so I get no further information.
My system clock has the proper time, etc.
I am also able to retrieve an XML manifest of the contents of my site
by issuing a call to /API/ShowTree/, no problem whatsoever.
Any ideas of what might be the problem? Or perhaps some way I might be
able to do further debugging? Putting the debug string on the
GetUploadURL does nothing, the Forbidden overrides me getting any actual
response at all.
Thanks for any assistance.

Just a sanity check here ...
When you use GetUploadURL, and you want to send a web services XML document rather than an ordinary media file, you must also include the type=XMLControlFile token in your token string.
That is, normally, you create a token string this way:
credentials=your-creds&identity=your-identity&time=12345678&signature=big-long-h ex-string
When you want an upload URL for a web services request, you need to add one more token ...
credentials=your-creds&identity=your-identity&time=12345678&signature=big-long-h ex-string
&type=XMLControlFile

Similar Messages

  • Getting a "403 Forbidden" error when I login ..

    Hi all ... Well yesterday I did a new installation of Oracle Express Edition 11g DB, which installed fine ... I then installed OC4J, and then finally installed APEX Listener 4.1 ...
    Now, when I opened 127.0.0.1:8888/apex/listenerAdmin for the very first time .. I saw a page where I was to configure the connection .. At that point I was unable to get the 'Basic' connection working (I think the error was that the Listener was unable at connect to the database), and so I closed down that page ..
    Now, one day later, when I open 127.0.0.1:8888/apex/listenerAdmin, I am asked for some login details ... I don't know what to put here to login .. In fact I have not successfully logged in here even once ..
    However, some clues are as follows: Before installing APEX Listener, I defined some new roles and users from the OC4J web interface ... If I try logging in through any of these, I get the '403 Forbidden' error ... Otherwise, if I enter any other random login details, the same login box keeps popping up ..
    So anyone know whats the problem here ? ... I suspect that no connect between APEX Listener and the Oracle DB is yet defined, which is why these problems are occuring ...
    I tried 'undeploying' APEX listener from the OC4J web interface, and then again 'deploying' it, but the exact same thing is happening ..
    Can anyone help me out here ?
    EDIT:
    I assume maybe I'm supposed to use the APEX_PUBLIC_USER account, which I configured in oracle before installing APEX (as per intructions in Oracle installation guides), but even when I try logging in through APEX_PUBLIC_USER, my login details are not accepted ... Also, I AM able to login into Oracle Database using APEX_PUBLIC_USER, but not in APEX Listener ... And since unlike what I described above, when I enter my APEX_PUBLIC_USER login details, the same login prompt keeps reappearing, meaning the login is not recognised at all ...
    Edited by: user7366837 on Sep 9, 2011 3:39 AM

    Hi,
    Now, when I opened 127.0.0.1:8888/apex/listenerAdmin for the very first time .. I saw a page where I was to configure the connection .. At that point I was unable to get the 'Basic' connection working (I think the error was that the >Listener was unable at connect to the database), and so I closed down that page ..I think the page you actually opened was http://127.0.0.1:8888/apex/listenerConfigure . At least, this is the page for the initial configuration. You can call it again until you've configured the database successful for the first time.
    Now, one day later, when I open 127.0.0.1:8888/apex/listenerAdmin, I am asked for some login details ... I don't know what to put here to login .. In fact I have not successfully logged in here even once ..The admin page needs the credentials you've configured on your OC4J.
    However, some clues are as follows: Before installing APEX Listener, I defined some new roles and users from the OC4J web interface ... If I try logging in through any of these, I get the '403 Forbidden' error ...... which you seem to have done, but probably you've some typo in there. Please note that you have to use the exact role names as described in the installation manual. A common problem is that users don't care about case sensitivity... This would fit to the symptom: You have a correct username/password combination, so the basic authentication is done, but the user is not authorized to call listenerAdmin because he doesn't have the appropriate role.
    -Udo

  • HTTP Error 403 - Forbidden  error when auto including a jspx page

    Hi All -
    We have a situation where one of different reports pages gets included inside a main reports page based on user selection via a selectOneChoice control.
    But when the Reports Main page tab is clicked for the first time we get a "You are not authorized to view this page" HTTP Error 403 - Forbidden error.
    Upon clicking "Refresh" and then clicking the Reports Main page tab again, the page renders correctly.
    This is our code snippet. All the report related pages(MainPage.jspx, Schedule.jspx and Budget.jspx) are inside a reports folder under the context root. Please help.
    Thanks for your time.
    MainPage.jspx
    =====================
    Here I have a selection box, and based on the user selection I include different JSPX pages. The page Definition of this page
    contains all the executables and the bindings of the included pages also.
    <af:selectOneChoice value="#{backing_Reports.measureSelected}"
    label="Measure" unselectedLabel="Select One"
    id="selectmeasure" autoSubmit="true"
    immediate="true">
    <af:selectItem label="Schedule Data"
    value="Schedule.jspx"/>
    <af:selectItem label="Budget Data"
    value="Budget.jspx"/>
    </af:selectOneChoice>
    <af:panelGroup>
    <jsp:include page="${backing_Reports.measureSelected}" flush="true"/>
    </af:panelGroup>
    Faces Config:
    ===================
    <navigation-rule>
    <from-view-id>*</from-view-id>
    <navigation-case>
    <from-outcome>GlobalHome</from-outcome>
    <to-view-id>/pages/Welcome.jspx</to-view-id>
    <redirect/>
    </navigation-case>
    <navigation-case>
    <from-outcome>GlobalReports</from-outcome>
    <to-view-id>/reports/MainPage.jspx</to-view-id>
    </navigation-case>
    <!-- 1. Reports menu tab item -->
    <managed-bean>
    <managed-bean-name>menuItem_Reports</managed-bean-name>
    <managed-bean-class>cs.view.menu.MenuItem</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    <managed-property>
    <property-name>label</property-name>
    <value>#{resources['scorecard.menu.reports']}</value>
    </managed-property>
    <managed-property>
    <property-name>viewId</property-name>
    <value>/reports/MainPage.jspx</value>
    </managed-property>
    <managed-property>
    <property-name>outcome</property-name>
    <value>GlobalReports</value>
    </managed-property>
    </managed-bean>
    :

    We have solved this, temproarily. But don't know if this is the best method to do this. Please post if somepne has a better way of doing this.
    While debugging we found that the ${backing_Reports.measureSelected} field which was set to a default value in backing bean was returned as null when the page renders for the first time. So we had a work around like this in our MainPage.jspx
    <af:panelBox width="80%" partialTriggers="selectmeasure"
    inlineStyle="margin:40.0px;">
    <af:panelGroup>
    <jsp:include page="${backing_Reports.measureSelected==null?'BlankPage.jspx':backing_Reports.measureSelected}"
    flush="true"/>
    </af:panelGroup>
    </af:panelBox>
    Thanks.

  • Apache: 403 Forbidden error when trying to change DocumentRoot

    I am developing several websites, but I prefer to store them in a directory at the root of my hard drive (let's call it /Websites) rather than in ~/sites or /Library/WebServer/Documents. I want to be able to preview php files locally for testing purposes, but am having trouble figuring out how to give Apache access to them without temporarily moving them into ~/Sites and back every time. The Apache documentation suggests two ways which I may point to /Websites: 1) by changing DocumentRoot in httpd.conf, or 2) through symbolic links.
    The problem is, either method results in a 403 forbidden error. I assured that permissions were set the same way as the files Apache can access (755 for directories, 664 for files) and tried changing ownership to root, admin... but it didn't work and I'd prefer not to have all of my site files owned by root as it makes editing difficult.
    What am I doing wrong? Any suggestions?
    I also tried adding the following to httpd.conf but it had no discernible effect.
    <Directory "/Websites">
    Options +Indexes FollowSymLinks +ExecCGI
    AllowOverride AuthConfig FileInfo
    Order allow,deny
    Allow from all
    </Directory>
    Assuming it did work, would changing the "Allow from..." line to "Allow from 127.0.0.1" or "Allow from localhost" along with "deny from all" be the proper way to let me preview on the local machine without serving my test pages to the entire internet?

    Did you change this to reflect new DocRoot?
    # Note that from this point forward you must specifically allow
    # particular features to be enabled - so if something's not working as
    # you might expect, make sure that you have specifically enabled it
    # below.
    # This should be changed to whatever you set DocumentRoot to.
    <Directory "/Library/WebServer/Documents">

  • Why am I getting 403 Forbidden error when creating an account.

    I have been tryinto to setup a new ePrint account, and I keep getting "Ajax submit failed: error = 403, Forbidden" instead of a new account.
    Since there is noone I can call, who do I contact to resolve this?  
    I would expect that after a few hours, SOMEONE would have looked at this on HP's side, and resolved it.

    A different browser should fix the issue. However if you are hooked on the current browser you are using, or do not have an alternate one installed, a simple restart of your computer will generally clear up this error. Let me know if this is the case for you as well.
    Jon-W
    I work on behalf of HP
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    Click the KUDOS STAR on the left to say “Thanks” for helping!

  • Error when installing QuickTime for iTunes 7

    "The installlation of QuickTime did not complete successfully. iTunes requires QuickTime."
    That's exactly how it appears, typo and all, when I attempt to install iTunes 7.
    Here are a few errors from a log file:
    MessageType: INSTALLMESSAGE_INFO
    Message: 1: ISMsiServerStartup Failure, Failed to create InstallDriver, Error = 0x80029c4a
    Returning: 1L
    MessageType: INSTALLMESSAGE_INFO
    Message: 1: MsiServerStartup failed. Abort installation.
    Returning: 1L
    MessageType: INSTALLMESSAGE_INFO
    Message: Action ended 16:41:27: ISMsiServerStartup. Return value 1603.
    Returning: 1L
    MessageType: INSTALLMESSAGE_INFO
    Message: Action ended 16:41:27: ISStartup. Return value 3.
    Returning: 1L
    I can post the rest if it would help. I've googled for this and can't turn up anything. Any help would be appreciated.
    I've also checked the InstallDriver parameters in C:\WINDOWS\system32\dcomcnfg.exe are set to the launching user.

    Ok...Here's what will solve your problem for sure. I know because it worked for me.
    Step 1.) If you have itunes/quicktime on your computer, uninstall quicktime using the installer that came with it. You don't need to uninstall itunes.
    Step 2.) Reboot your computer and terminate/disable all antivirus/spyware shields/protection.
    Step 3.) Click start, run, type regedit, and navigate to the key that was mentioned when you first tried to install/upgrade itunes and quicktime. Delete the folder the key (value) resides in, which is something like: QuickTimePlayerLib.QuickTimePlayerApp (whatever is said from the installer).
    Step 4.) Close the registry editor, and install the new itunes/quicktime. You might want to download it again to start with a fresh copy.
    Note: If you did as I said, it will work and quicktime/windows will not be harmed because of the registry editing.
    Hope this solves this problem once and for all. Have fun!

  • Ajax submit failed: error =403, Forbidden error when signing in

    when trying to log in or create a new account for www.eprintcenter.com this is the error I get, and I can't get past the log in page.

    Try here..
    http://www.google.com/search?q=Ajax+submit+failed%3A+error+%3D403&sourceid=ie7&rls=com.microsoft:en-...=
    Say thanks by clicking the Kudos Thumbs Up to the right in the post.
    If my post resolved your problem, please mark it as an Accepted Solution ...
    I worked for HP but now I'm retired!

  • Purchased mountain lion and receive 403 forbidden error when downloading to snow leopard 10.6.8

    can you help me?
    Thank you so much for suggestions

    That's an error message from the server, and it has nothing to do with the permissions of your files. There are several possible causes.
    Sometimes the error is due to a problem in Apple's network. You just have to wait it out.
    You may have exceeded a download cap imposed by your ISP. Log in to your ISP account to check.
    If you're connecting through a proxy server, disable it in the Network preference pane and try again.
    "Anti-virus" software can interfere with the App Store. To disable it, boot in safe mode. Wi-Fi won't work in safe mode on some iMac models. If yours is one of them, and you can only connect via Wi-Fi, uninstall the "anti-virus" product according to the developer's instructions, then reboot. You're better off without it anyway.
    If you're using a public DNS service such as OpenDNS, use the DNS servers provided by your ISP instead. That's also a change you make in the Network preference pane.

  • 403 Forbidden Error while trying to access External SharePoint site in SP 2010

    I am trying to access external Claims based SP site and trying to download the file from a doc library.
    I am receiving the 403 Forbidden error when executing the code.
    I am using SP 2010 and Client Object Model.
    PFB the code I am running.
    using (SPCOM.ClientContext clientContext = ClaimClientContext.GetAuthenticatedContext(siteURL))
    if (clientContext != null)
    clientContext.Credentials = System.Net.CredentialCache.DefaultNetworkCredentials;
    clientContext.Load(clientContext.Web);
    clientContext.ExecuteQuery();
    SPCOM.Web web = clientContext.Web;
    clientContext.Load(web);
    clientContext.ExecuteQuery();
    using (SPCOM.FileInformation fInfo = SPCOM.File.OpenBinaryDirect(clientContext, item["FileRef"].ToString()))
    string fileName = (string)item["FileRef"];
    fileName = string.Concat(SaveLocation, fileName.Substring(fileName.LastIndexOf("/") + 1));
    //now save it
    using (System.IO.FileStream outPutFile = System.IO.File.OpenWrite(fileName))
    fInfo.Stream.CopyTo(outPutFile);
    fInfo.Stream.Close();
    I suspect the OpenBinaryDirect method ,
    I am also using Cookie based authentication I guess PFB the code for that.
    public static ClientContext GetAuthenticatedContext(string targetSiteUrl)
    return (GetAuthenticatedContext(targetSiteUrl, 0, 0));
    /// <summary>
    /// This method will return a ClientContext object with the authentication cookie set.
    /// The ClientContext should be disposed of as any other IDisposable
    /// </summary>
    /// <param name="targetSiteUrl"></param>
    /// <returns></returns>
    public static ClientContext GetAuthenticatedContext(string targetSiteUrl, int popUpWidth, int popUpHeight)
    CookieCollection cookies = null;
    cookies = ClaimClientContext.GetAuthenticatedCookies(targetSiteUrl, popUpWidth, popUpHeight);
    if (cookies == null) return null;
    ClientContext context = new ClientContext(targetSiteUrl);
    try
    context.ExecutingWebRequest += delegate(object sender, WebRequestEventArgs e)
    e.WebRequestExecutor.WebRequest.CookieContainer = new CookieContainer();
    foreach (Cookie cookie in cookies)
    e.WebRequestExecutor.WebRequest.CookieContainer.Add(cookie);
    catch
    if (context != null) context.Dispose();
    throw;
    return context;
    If anyone has an idea of why is this happening, pls help me. 
    Thanks,
    K.V.N.PAVAN

    Hi,
    Please try to add following line of code before you initialize cookie container.
    e.WebRequestExecutor.WebRequest.UserAgent = “Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)”;
    http://razirais.wordpress.com/2011/05/19/how-to-fix-sharepoint-online-403-forbidden-error-while-downloading-files-using-client-object-model/
    Or change the following line of code
    clientContext.Credentials = System.Net.CredentialCache.DefaultNetworkCredentials;
    to
    clientContext.Credentials=new NetworkCredential("Username", "Passworkd", "Domain");
    Thanks,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Dennis Guo
    TechNet Community Support

  • Solution: Apache2 personal web sharing 403 Forbidden error

    Many people are puzzled about Apache 2 throwing 403 Forbidden errors when accessing the user's personal website, although the computer website works. And a lot of incorrect solutions are floating around. I decided to post some info that hopefully will clarify the issue.
    As an example, my new Mac mini would run a website OK at http://192.168.0.2/ but my personal website at http://192.168.0.2/~username/ would give a 403 Forbidden error. I believe I have found out why. This is due to incorrect user-level settings that I believe were migrated from a previous OS version. I migrated from an old Power Mac G5 Quad with MacOS X 10.5 to my new Mac mini with MacOS X Lion 10.7.
    The problem here is that Apache denies access to the user level Sites folder. If you create a new user on Lion, the system will create a username.conf, where username is the user's short name. But if you migrated from a previous version, this file will not exist, so Apache will not serve pages from the user's Sites folder. Some people tried to fix this by modifying httpd.conf, for example, by putting virtual hosts on the computer's main site. But that's not the right place to fix it. This should be fixed at the username.conf level. So.. look for this file with your username:
        /private/etc/apache2/users/yourusername.conf
    If it does not exist, you will have to create it in a text editor, and change the owners. First get a text editor and create it, for example you could do this in pico
        sudo pico /private/etc/apache2/users/yourusername.conf
    Then add this to the file and save it:
        <Directory "/Users/yourusername/Sites/">
        Options Indexes MultiViews ExecCGI
        AllowOverride AuthConfig FileInfo
        Order allow,deny
        Allow from all
        </Directory>
    Be sure to hit Control-O (letter o) to write out the file then Control-X to exit the pico editor. Note that I have enabled some options, like ExecCGI to allow .cgi files to run, and Authconfig and FileInfo so some useful .htaccess methods work. You could dumb it down and say AllowOverride none like the default settings.
    Once you have created the yourusername.conf file, you will have to change the ownership to system:wheel. However, oddly enough, you can't chown system, you have to chown root. So the command will look like this:
        sudo chown root:wheel /private/etc/apache2/users/yourusername.conf
    You can put other directives here that will only apply to this user. Try to avoid modifying httpd.conf, it's easy to mess up globally and it can be hard to fix if you break it.

    Howdy, I was having the same problem you were having, until I noticed that I had placed some incompatible File Sharing settings on my home folder. Specifically, I had placed No Access for the 'everyone' group, which is the group that Apache uses.
    Thus, even though my ~/Sites folder had "public" permissions, the enclosing folder (~/) had even more restrictive permissions so Apache couldn't serve anything from it.
    Check to see if you've enabled any custom File Sharing permissions on your home (or Sites) directory in the Sharing preference pane.
    hth.
    Message was edited by: Wesley Miyazaki [corrected OS version]

  • What does "ajax submit failed: error = 403, forbidden" mean when trying to sign up for eprint?

    what does "ajax submit failed: error = 403, forbidden" mean when trying to sign up for eprint?

    Hi,
    Please use different browser such as Firefox or Chrome and try again.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • When I try to got to a website I get a message that says 403-forbidden error

    this is what I get when I try to go to a website...
    403 - Forbidden Error
    You are not allowed to access this address.
    If the error persists, please contact the website webmaster.
    If you are the webmaster of this site please log in to Cpanel and check the Error Logs. You will find the exact reason for this error there.
    Common reasons for this error are:
    * Incorrect file/directory permissions: Below 644.
    In order files to be read by the webserver, their permissions have to be equal or above 644. You can update file permissions with a FTP client or through cPanel's File Manager.
    * Restrictive Apache directives inside .htaccess file.
    There are two Apache directives which can cause this error - 'Deny from' and 'Options -Indexes'.
    how can I fix this?

    Carmell-
    When I've had a similar problem, it was because I was accessing the iTunes store from a device I hadn't used before, such as when I upgraded from an iPad 1 to the iPad 2.  It was a little confusing to me until I figured it out.
    All I had to do was use the ID of my existing account and play along with the iTunes store.  As I recall, it asked for my password twice, and the security code from the back of my credit card.  After that, downloads proceeded as before.
    Fred

  • 403 Forbidden error calling PL/SQL Procedure from URL

    I am getting a 403 Forbidden browser error when calling a PL/SQL procedure from the URL, as in this:
    http://<server.port>/apex/SCHEMA.procedure_name/f?p_param1=394&p_param2=2, etc
    We are upgrading from HTMLDB 2.0 to APEX 4.0.2. I do not believe the upgrade has anything to do with it, c/o the upgraded app works fine in another APE 4.0.2 environment.
    The upgrade is to new machines, new DB and new app server, Oracle Web Tier, Oracle HTTP server deployment.
    The dads.conf entries are fine, all standard:
    Alias /i/ "/apexd01/app/oracle/product/http/Oracle_WT1/ohs/images/"
    Alias /c/ "/apexd01/app/oracle/product/http/Oracle_WT1/ohs/custom_htmldb/"
    <Location /pls/apexd>
    Order deny,allow
    PlsqlDocumentPath docs
    AllowOverride None
    PlsqlDocumentProcedure wwv_flow_file_mgr.process_download
    PlsqlDatabaseConnectString dbserver.us.com:1521:SERVER.US.COM ServiceNameFormat
    PlsqlNLSLanguage AMERICAN_AMERICA.AL32UTF8
    PlsqlAuthenticationMode Basic
    SetHandler pls_handler
    PlsqlDocumentTablename wwv_flow_file_objects$
    PlsqlDatabaseUsername APEX_PUBLIC_USER
    PlsqlDefaultPage apex
    PlsqlDatabasePassword apexpwd
    PlsqlRequestValidationFunction wwv_flow_epg_include_modules.authorize
    Allow from all
    </Location>
    The GRANT EXECUTE ON procedure TO PUBLIC is there.
    A call to the same procedure via a process in an APEX page works fine - the procedure is OK.
    The call from javascript, which sets up the call from the URL, is the one that fails with the 403 Forbidden error.
    The same app works fine in another APEX 4.0.2 environment, so I know it is not the JS; It has to be some configuration setting in this environment.
    I do NOT have access to the app server.
    I have asked that they compare the httpd.conf, and all underlying conf files, to check for differences.
    In order for me to be more specific, and hopefully speed up the troubleshooting process, can anyone suggest what other settings to look at?
    Thank you - Karen

    Hello,
    Good catch, but the difference in URL is in fact the difference in my env to theirs. My typo in not correcting my example to match the dads.conf entry of /pls/apexd. My env uses /apex/. Just saves on my typing.
    As an update, I asked the DBA to double-check, and yes, the www_flow_epg_include_mod_local function IS there.
    www_flow_epg_include_mod_local is an APEX function.
    So now we are trying adding procedures to it. I'll let you know if it works.
    My previous question remains - why would I need to do this in one env, and not another,
    given that the DB GRANTs are there.
    Is there a particular app server setting that wil block execution of PL/SL procedures from the URL?
    My guess is, there is some difference in configuration settings for the app server, somewhere in the httpd.conf chain.
    Since I do not have access to those files, I cannot do a diff myself, as I would have if I the issue was on my machine.
    I am in a situation where I can suggest what to do, but that's it. I agree, it's hard to troubleshoot in this situation.
    I am being asked "what setting do I need to change?" without the benefit of access to what is there,so I am doing the best I can, without diverting from my work for a deep-dive refresher session on httpd.conf settings.
    So, if anyone is aware of some setting that would block execution of a PL/SQL proc from the URL, please let me know,
    and of course, if adding a proc to www_flow_epg_include_mod_local works, I'll be happy. Just still curious.
    Thank you - K

  • BW error:  "invalid call sequence for interface when recording changes"

    I am getting the error "invalid call sequence for interface when recording changes" when I try to activate a datasource in BW.  Any ideas on how to resolve this error?
    Thanks.

    I already tried that.  This is what's happening..  When I get this error, if I try again it will activate and gets collected into a transport.  I moved this transport to our QA system.  As soon as I try to execute an infopackage under this datasource in QA, I get the error datasource   xxxxx must be activated.   Before the excecution of the infopackage, the datasource is in "Active version executable".   After I get the error message "datasource must be activated", the datasource in the QA system changes to "Active version not executable".   I am not sure all these issues are related back to the "invalid call sequence" error I am getting when I try to activate the data source.
    I also tried recollecting the transport from our Dev system to QA and it still gives the above errors.
    Any help?
    Thanks.

  • Return The remote server returned an error: (403) Forbidden error for some file types

    hi
    am using below code to get the byte array 
    byte[] myDataBuffer = client.DownloadData((new Uri(sourceUrl)));
    for source of type .txt/.jpg no problem with accessing.but the file type with .master/.wsp/.cs
    it is returning "The remote server returned an error: (403) Forbidden error for some file types" Error.how can i get rid of this.please help me
    Thanks in Advance

    Hi,
    It seems there is something wrong with your code, from your code the account and key are the same, because their appsetting name are the same.
    string account = ConfigurationManager.AppSettings["StorageAccountName"];
    //string account = CloudConfigurationManager.GetSetting("StorageAccountName");
    //string key = CloudConfigurationManager.GetSetting("StorageAccountAccessKey");
    string key = ConfigurationManager.AppSettings["StorageAccountName"];
    string connectionString = String.Format("DefaultEndpointsProtocol=https;AccountName={0};AccountKey={1}", account, key);
    return CloudStorageAccount.Parse(connectionString);
    If you use CloudConfigurationManager.GetSetting, please consider set azure project as the startup project, if not, this value will be null, this resulted in solution being started as a web project that didn't run inside the Azure emulator. Since CloudConfigurationManager.GetSetting
    tries to get setting by contacting Azure (or Azure emulator in this case), and it is not running, it returns null.
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for