Ssrs and script from was blocked due to mime type mismatch

Hi
I'm trying to add a script to my header on my SSRS report. I've been following this link:
http://blogs.infosupport.com/reporting-services-javascript-injection/
I get error stating:
SEC7112: Script from http//####/HCCReportsServer?/ReportsLibrary/script.js was blocked due to mime type mismatch
My code:
="<a href=""javascript:eval(unescape('function addScript(scriptFile){var head = document.getElementsByTagName(\'HEAD\')[0]; var script = document.createElement(\'script\'); script.setAttribute(\'language\', \'JScript\'); script.setAttribute(\'type\', \'text/Javascript\'); script.setAttribute(\'src\', scriptFile); head.appendChild(script);} addScript(\'http://dc1-sqlrs-d02/HCCReportsServer?/ReportsLibrary/script.js\');'))"">inject</a>"
Please help. This is urgent to get it working for a demo.
Thanks

Hi Sunette,
Based on my understanding, you come across an SEC7112 error when you inject JavaScript into the Reporting Services.
In your scenario, you should remove the below setting in the web.config file(Location: C:\inetpub\wwwroot\wss\VirtualDirectories\<your port>).
<add name="X-Content-Type-Options" value="nosniff" />
As we tested in our environment(SQL Server 2012,SharePoint 2013,IE 11), we can inject JavaScript successfully. Please refer our test steps and results:
1. Delete “X-Content-Type-Options" with value "nosniff" within the web.config file (Location: C:\inetpub\wwwroot\wss\VirtualDirectories\80).
2. Design the report as below, then deploy the report to the SharePoint site.
3. Create the script.js file with code below, and upload to the SharePoint site.
function test()
alert("The CHANGEME textbox will actually change…");
//var doc = window.frames[1][1].document;
var el = document.getElementsByTagName('span');
for (var nr=0; nr<el.length; nr++)
if (el[nr].innerHTML == "CHANGEME")
el[nr].innerHTML = "I FEEL LIKE A CHANGED TEXTBOX";
4. Run the report. Click the “inject”->”test”, the final results should look like below:
If you have any question, please feel free to ask.
Best regards,
Qiuyun Yu
Qiuyun Yu
TechNet Community Support

Similar Messages

  • How can I get a credit card re-instated with ITunes/Apple Store?  It was blocked due to an ITunes billing error.  Called customer (lacking in) service, but they were no help!

    How can I get a credit card re-instated with ITunes/Apple Store?  It was blocked due to an ITunes billing error.  Called customer (lacking in) service, but they were no help!  The rep emailed that I had to get a new credit card   No way.... --PB

    Only Apple Account Security could help at this point. You can try calling Apple Support in Canada - you'll have to find one of the several ways, such as Skype, to call an 800 number from outside of the relevant country - and ask for Account Security and see if they can help. Or you can find a friend who speaks Chinese and ask them to help you talk to Apple Support in China. There are really no other options that I know of.
    Note, by the way, that these are user-to-user support forums. You aren't speaking with Apple when you post here.
    Regards.

  • Java was blocked due to the threat I have followed the update & other options to reenable it ie.manual updates reinstalls yet websites like YouTube still wont load up.Works fine in Chrome & IE!

    Java was blocked due to the threat I have followed the update & other options to reenable it ie.manual updates reinstalls yet websites like YouTube still wont load up.Works fine in Chrome & IE!

    Your plugins list in "more system details" shows Next Generation Java Plug-in 1.6.0_31 for Mozilla browsers so Java should not be blocked.
    Could you post a link to a webpage where Java isn't working for you? YouTube uses Flash, not Java. Here is a list of Java test pages you can try, to confirm that Java is working, from http://kb.mozillazine.org/Java#Testing_Java
    * [http://www.java.com/en/download/help/testvm.jsp Test your Java Virtual Machine (JVM)] at java.com.
    * [http://browserspy.dk/java.php Java Information - BrowserSpy.dk]
    * [http://javatester.org/ Java Tester] - The test pages at javatester.org will tell you if your web browser is enabled for Java and, if so, the Java version.
    * [http://www.pinlady.net/PluginDetect/Java/ Java Plugin Detector]
    By the way, I see in your plugins list that you also have the VLC media player Web Plugin 2.0.0 so, it's possible that the VLC plugin is causing a conflict if YouTube or other videos don't work. See [[Video or audio does not play]] (you may need to disable the VLC Media Player plugin in the Add-ons -> Plugins list for some media to play).

  • Helo , my secret question and apple id was blocked, please help me repair my apple id , i want to keep using this my apple id

    dear ...
    please help meeee.... my my secret question and apple id was blocked, please help me repair my apple id , i want to keep using this my apple id.
    please helppppp meeeeeee......
    <E-mail Edited by Host>

    Dendyhebatz wrote:
    dear ...
    please help meeee.... my my secret question and apple id was blocked, please help me repair my apple id , i want to keep using this my apple id.
    please helppppp meeeeeee......my email & apple id XXXXXXX
    Try changing your Apple ID password at iforgot.apple.com first.
    Also:
    How to reset your Apple ID security questions.
    Go to appleid.apple.com, click on the blue button that says 'Manage Your Apple ID'.
    Log in with your Apple ID and password. (If you have forgotten your Apple ID password, go to iforgot.apple.com first to reset your password with a password recovery email)
    Go to the Password & Security section on the left side, and click on the link underneath the security questions that says 'Forgot your answers? Send reset security info email to [email]'.  This will generate an automated e-mail that will allow you to reset your security questions.
    If that doesn't work, or  there is no rescue email link available, then click on 'Temporary Support PIN' that is in the bottom left side, and generate a 4-digit PIN for the Apple Account Security Advisor you will be contacting later.
    Next, go to https://getsupport.apple.com
    (If you see a message that says 'There are no products registered to this Apple ID, simply click on 'See all products and services')
    Choose 'More Products & Services', then 'Apple ID'.
    A new page will open.
    Choose 'Other Apple ID Topics', then 'Forgotten Apple ID Security Questions'.
    Click the blue 'Continue' button.
    Select the contact option that suits your needs best.

  • When I try to download the latest version of iTunes on my iPod Classic I get the message that "iTunes has an invalid signature" and that "Content was blocked because it was not signed by a valid security certificate.  Anyone know how to fix this?

    When I try to download the latest version of iTunes from apple.com, I get the message "Content was blocked because it was not signed by a valid security certificate."When I open iTunes and try to download the latest version there, I get the message "iTunes has an invalid signature.  The download has been removed."  I have also gotten an Internet Script Error stating that an error has occured in Line 0, Char O and that "Access is denied to images.apple.com/global/scripts/lib/iepngfix.htc."  This problem has never occurred with earlier versions of ITunes.  Anyone know how to fix this problem? 

    Are you downloading iTunes form an Apple website or somewhere else? If the answer is somewhere else, try downloading it from Apple. Click on iTunes in the black menu bar above and go from there.
    Let us know what happens.

  • Cut and paste from one block diagram to another?

    Is it possible to cut objects from the block diagram of one vi and paste them into the block diagram of another vi?
    Also, is it possible to "comment out" parts of a block diagram like you can in a text based program? That is, can you disable "code" on a block diagram without removing it from the diagram entirely?

    querty999 wrote: 
    As for training, I've got diploma's in Core 1 and Core 2 LabVIEW. I've worked numerous examples independently and read large part of several books. I'm living proof that LabVIEW ain't for dummies."Pictures and wires" programming doesn't click for me. Too many details to memorize.
    CVI is much easier to me than LabVIEW, maybe since I've been programming extensively in C for 20 years. But boss says we gotta use LabVIEW. It's the politically correct thing to do.
    Lots of LabVIEW advocates in management here. Few have done anything of significance with it. Some use Signal Express and call it LabVIEW. I guess they're technically correct. SE says LabVIEW on the splash page.
    You may be interested in this discussion: http://forums.ni.com/t5/BreakPoint/LabView-vs-LabWindows-CVI/td-p/400121

  • TS1424 What do i do if my ID is disabled and says it's blocked due to trying to many times to answer my 2 questions ??

    What to do if my apple ID is blocked  due to not being able to answer my 2 questions, it says ill be bared for 8 hours.  does anyone know what to do in this situation or HOW to find the answers to my 2 questions for security

    exactly wat was the passcode for? homescreen or something else?

  • Calling sql script from anonymous block

    Hi
    how to call an script from an anonymous block, like
    declare
    v_reccord_account number :=0;
    begin
    SELECT xx.cc INTO v_reccord_account FROM
    (select count(1) cc
    from accounts
    group by account_id
    having count(account_id) > 1
    )xx
    where ROWNUM=1;
    if v_reccord_account <1
    then
    dbms_output.put_line('no duplicates');
    ELSE
    < here i have to call this script -- @e:/test44.SQL >
    end if;
    end;

    Hi
    thanks for replying, i'm having some sql statements, i have to spool the results of those statements .. below is the content of the file i'm calling.
    =================================================
    whenever sqlerror exit sql.sqlcode
    set serveroutput on
    column fn new_value filename
    select 'remove_duplicates_'||to_char(sysdate, 'yyyymmddhh24miss')||'.log' as fn from dual;
    spool E:/&filename
    prompt 'Checking for duplicates'
    --select account_id, count(1)
    --from accounts
    --group by account_id
    --having count(1) > 1;
    prompt 'Records to be deleted'
    select *
    from accounts
    where decode ( substr(account_id,1,3),'COG',1,0)=1
    group by account_id
    having count(1) > 1;
    prompt ' Deleting duplicates'
    delete
    from accounts
    where account_id in (
    select account_id
    from accounts
    where decode ( substr(account_id,1,3),'COG',1,0)=1
    group by account_id
    having count(1) > 1
    commit;
    ==========================================

  • Pacman -Syu fails due to mime.types[SOLVED]

    Hi All,
    pacman -Syu results in:
    error: failed to commit transaction (conflicting files)
    mime-types: /etc/mime.types exists in filesystem
    Is it safe to mv mime.types and retry the system upgrade?
    I have Gnome and KDE installed.  I currently use KDE and this is "the" KED4.1 upgrade.
    Thanks.
    Last edited by whot (2008-08-19 01:03:49)

    pacman -Qo /etc/mime.types, showed no owner for the file.
    Performed:
    pacman -Rn mime-types
    pacman -S mime-types
    pacman -Syu
    System upgrade finished with no further problems.  Machine booted to KDE4.1 
    I've noticed a few things with KDE4.1:
    DUUUUDE, where's my data?!!? (calendar data, pim data, etc.)
    It seems a bit slow to respond.  I don't know if this is a kernel26 upgrade issue or it's the first time
    applications are being used so "things" are being set-up/configured for the first time.
    All in all, smooth upgrade to KDE4.1.  Thank you, devs.
    Thanks for your help, fwojciec.

  • Problem with shell commands and scripts from an Applescript Application

    Hi-
    I am fairly new to OSX software development. I am trying to build an application that creates a reverse SSH tunnel to my computer and starts OSXvnc. The idea is that my Mom or anyone else who needs help can connect to me without having to tinker with their firewalls.
    There are plenty of resources on how to do this, and I have found them. What I have a problem with is the following.
    I am building this application in Xcode as an Applescript application, because Applescript and shell scripting are the only forms of programming I know. I use an expect script to connect through SSH, and a "do shell script" for the raw OSXvnc-server application to allow screen sharing.
    The problem is that when I click on the button to launch OSXvnc-server or the button to launch SSH, the application freezes until the process it spawns is killed or finishes. For example, I can set SSH to timeout after 60 seconds of no connection, and then the Applescript application responds again. I even tried using the ssh -f command to fork the process, but that doesn't seem to help.
    I am also using "try" around each of the items.
    What am I doing wrong? How can I make the buttons in my app launch SSH and OSXvnc-server without hanging the application while it waits for them to finish?
    Thanks so much!

    See here for an explanation of the syntax.
    (20960)

  • SSRS and data from SharePoint lists - special characters in HTML

    Hi All,
    This may not actually fit into this forum, but here goes anyway...
    We're using SSRS to report on data stored in Project Server workspaces (so SharePoint lists). Prior to upgrading to 2013, we could pull this data in and set the "Placeholder properties" of the text box to interpret HTML tags as styles and it would
    format everything as it appeared in the SharePoint list. Now that we have upgraded to 2013, this works with a few notable exceptions - some special characters are rendered as their escaped/encoded (whatever the term is) - so a colon which is within the text
    field in SharePoint, rather than appearing in the SSRS report as ":" appears as "&#58;".
    These are multiline, rich text formatted columns in the SharePoint list. Using =Replace(Fields!Description.Value,"&#58;",":") in the report makes the appropriate replacement, but given that this occurs with a handful of other special
    characters as well, this solution becomes very unruley very quickly. Has anyone else encountered this, or does anyone have any other suggestions for a work around?
    If not now, when?

    Facing same issue but having no solution, please suggest..

  • Running Unix commands and scripts from HTML-DB

    Hi,
    How can I run scripts (like perl scripts) that I have on the UNIX machine that the HTML_DB is installed on.
    How for a start can I run even simple UNIX command like "ls" ?
    Thanx,
    Alon

    Alon,
    Best to try the database forum and search for "external process" or "extproc" for this - it needs setup for the listener and in the database itself.
    You need to be aware - all your commands will be run as the oracle user so you should be very careful who can run them and what commands they can run.
    Greg

  • Mac SE FDHD with dead HDD - boot and run from floppy drive alone? HDD type?

    Hello!
    I picked up a Mac SE FDHD a few months back - a model with a Superdrive and hard drive, as well as 4 MB of RAM. It came with a keyboard and mouse, but no floppies of any kind. Upon testing, I discovered that the hard drive did not work - the "flashing question mark folder" appears at startup, and the disk setup utility on the system 6 install disks I created using a more modern mac can't detect it. I don't hear HDD seek sounds either. Everything else works fine, as far as I can tell. The reason I want to use this old Mac is simply to boot it up and run a few favorite old programs (such as MacPaint and many old games), so I don't want to put too much money into it.
    I discovered my parents still owned a old, 170 MB "LaCie Tsunami" SCSI external drive, used with our long-failed Mac II, and decided to use as the SE's boot drive, as a cheap workaround to avoid buying a "new" drive. However, after a rather odd turn of events (described below for information purposes), it turns out that the 50-pin SCSI drive itself functions, but in the process, I think I killed the enclosure. Unless this drive can replace the internal drive of the SE, (or get lucky and find a compatible drive somewhere), I'll need to run the SE from its single floppy drive.
    I figure that since the original Mac had 128k of memory, a single 800k floppy, and no hard drive, and yet can still run OS 7, the SE should be able to run system 6 from floppies somehow. The question is how? Is there a tutorial online somewhere on how to set this up?
    Furthermore, as far as the hard drive is concerned, is the SE's internal drive a standard 50 pin SCSI HDD, and thus likely compatible with the one from the LaCie?
    Thanks for any suggestions, and for helping this "Old time Mac Newbie" out!
    -Dan
    PS: What happened to the LaCie drive - for information purposes:
    WHen I attached to the LaCie drive to the SE and booted the OS 6 install disks, t worked - OS 6 installed to it just fine. However, it turns out that a "dormant" copy of Norton utilities reactivated when I booted to the SCSI drive, and encrypted the disk's partition table. (Why it was not encrypted BEFORE installing and booting OS 6, I don't know) Having not used the drive for 17 years , and thus not knowing the password, I had to reformat it. I have a Sawtooth G4 with an Apple SCSI card - but no cable that would go from the PCI card's SCSI port to the external enclosure. THus, I removed the drive from the enclosure, mounted it in the G4 internally, and formatted it as Mac OS Standard (with OS 9 drivers) using Mac OS 10.3. Upon re-installing the drive in its SCSI enclosure, I found that it no longer works - Norton was erased, but the SE gives me a "Sad Mac" icon upon boot. Furthermore, after borrowing the correct SCSI cable, I found the enclosure now kernel panics my G4 when attached. The drive itself, when mounted internally in the G4, still functions perfectly. Thus, it seems that either the enclosure is dead, or something about OS X's reformat is renders the HDD incompatible with the enclosure...

    "I removed the drive from the enclosure, mounted it in the G4 internally, and formatted it as Mac OS Standard (with OS 9 drivers) using Mac OS 10.3."
    I just re-checked Disk Utility's format options under Panther and only see "Mac OS Extended (Journaled)" or "Mac OS Extended." I don't see an option for formatting Mac OS Standard. Are you certain that you formatted the drive as a Mac OS Standard (HFS) volume? If it's a Mac OS Extended (HFS+) volume, that would explain why it won't work when connected to the SE. When using external SCSI enclosures having a hard drive or optical drive, I always opted to connect an "active" SCSI terminator to the unused SCSI port on the enclosure. It seemed to provide stability, because I never had a problem with any of them. Does the LaCie enclosure have a built-in termination switch or do you plug in a terminator to the opposite SCSI port on the back? As for installing/using the 170 MB hard drive in the SE, it must have a jumper installed on its TE pins, if it's the last device connected to the SE's SCSI ribbon cable. Additionally, the HDD must have a unique SCSI address, The factory default is usually 0, which doesn't necessarily require a jumper. If another address is desired, a jumper or two installed across specific pins will accomplish that. If the LaCie enclosure had a switchable SCSI address button on the back (you change it by pressing in with a ball point pen), there were small wires from it that were connected to the drive's address pins in a specific way. Did you disconnect/re-connect these when you re-installed the drive in the enclosure? Also, if the enclosure has a termination switch, did you re-connect its wires to the drive's TE pins?

  • Invoice block due to tolerance limit

    Hello,
    I have created a PO for 600 DKK.
    I have created an invoice for 610 DKK and want to do the invoice verification in MIRO.
    The invoice gets blocked.
    Which tolerance limit is causing this?
    I have specified tolerance limits in transaction OMR6:
    1) PP (price variance): + 5% - 5% +15 DKK - 15 DKK
    2) KW (Var. from condition): +2% -2/ - -
    My 10 DKK difference between the PO & invoice lies between these tolerances.
    Are there any other tolerances to be fixed?
    Thank you for sharing your experience.
    Kind regards,
    Linda

    Hi,
    Stochastically blocked meaning that the invoice was blocked due to a payment block set at random in the document header. For each company code, we can define the degree of probability that an invoice will be stochastically blocked. In IMG setting, We mention Threshold value and the Percentage probability for our Company code.
    The degree of probability depends on the invoice value. If our Invoice value is the same or larger than the threshold value, the degree of probability is the same as the percentage probability maitained. If the invoice value is smaller, the degree of probability is calculated in proportion to the threshold value.
    Example
    Threshold value: 3000 percentage: 60
    Invoice value Degree of probability of a block
    3000 60 %
    5000 60 %
    1500 30 % (= 60 * 1500/3000)
    100 2 % (= 60 *  100/3000)

  • Account blocking due to Crimea sanctions!

    Hello to all!
    My account was blocked due to Crimean sanctions (I have received letter about it from Apple).
    But I'm not from Crimea! What I need to do to unblock it?
    Thanks!

    No, it was'nt fishing email. They just inform me, that my account was blocked due to sanctions. After that I tried to login into the Member Center and got message that my account is blocked.
    Here is email:
    Dear Vadim Simonov,
    This letter serves as notice of termination of the Registered Apple Developer Agreement (the “RAD Agreement”) between you and Apple, effective immediately.
    Apple may terminate your status as a Registered Apple Developer at any time at its sole discretion under the RAD Agreement. The new sanctions on the Crimea Region announced by the US Government on December 19, 2014 and announced by the European Commission on December 18, 2014 prohibit the continuation of the RAD Agreement between you and Apple. For more information, please reviewExecutive Order 13685 and the European Commission notice.
    We would like to remind you of your obligations with regard to all software and other confidential information that you obtained from Apple as a Registered Apple Developer. You must promptly cease all use of and destroy such materials and comply with all the other termination obligations set forth in the RAD Agreement.
    Sincerely,
    Apple Inc.

Maybe you are looking for

  • Oracle Workflow 2.6 with Oracle 8.1.7 for linux

    Is Oracle Workflow Server 2.6 available for Linux as a standalone product against an Oracle 8.1.7 database? Oracle Workflow does not seem to be included in the Integration Server option with the 8.1.7 installation. I've only found the Oracle Workflow

  • Blue screen wont shut down

    help..my imac wont shut down from the pull down menu - just goes to blue screen ?

  • I can't get iphoto to talk to itunes or my iphone

    When I used my pc with my iphone i plugged it in and itunes popped up on my screen then another screen asked if I wanted to upload any new photos it found...easy. Now I have a mac it , annoyingly, takes some photos not all and has only ever offered t

  • Highlight variance

    Hi, In one of the interactive report I am showing monthly billing... I can use interactive option to highlight any significant variance, but it shows a + sign that is causing some confusion... Is there a way I can highlight any significant month over

  • How to create a popup windown with javascript?

    Hi, every one, I made a jsp program. I know we can use win.open, win.close to create, to close a popup window with javascript. But I don't know how to create a popup window ,display some message on this window and there is a button on it for closing