Cannot preview SSRS report in Visual Studio 2012 - assembly does not allow partially trusted callers
Hi,
I have an SSRS report that works fine in Visual Studio 2008 BIDS. This report references a .Net assembly namely:
System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
I use this assembly in some simple Code functions in the report. e.g.
System.Web.HttpUtility.UrlEncode(inURL).ToString
I have converted the SSRS project to 2012 and am trying to preview the report. However, I get an error relating to: "That assembly does not allow partially trusted callers". If i deploy the rdl to my local SSRS it renders fine, but
how do I fix Visual Studio to preview the report without error? This is highly annoying.
My Visual Studio version is:
Microsoft Visual Studio Professional 2012
Version 11.0.61030.00 Update 4
Microsoft .NET Framework
Version 4.5.51641
SQL Server Reporting Services
Microsoft SQL Server Reporting Services Designers
Version 11.0.3402.0
Any help is appreciated on this one.
Regards,
MrHH
Hi MrHappyHead,
According to your description, you used custom assembly in the report, when you run the report in Visual Studio 2008, the report works fine. When you run the report in Visual Studio 2012, the error message occurred: "That assembly does not allow partially
trusted callers". But the report works fine after you deployed it to report manager.
Only applications that are fully trusted by the runtime code access security system are allowed to access a shared managed code assembly that is not explicitly marked with the System.Security.AllowPartiallyTrustedCallers attribute. A partially trusted assembly
(one that is registered in SQL Server with the SAFE or EXTERNAL_ACCESS permission set) that attempts to access a strong-name signed assembly without this attribute causes a System.Security.SecurityException to be thrown. To troubleshoot the problem, please
refer to the following steps:
Add namespace system.security to AssemblyInfo.cs file
Add [assembly:allowpartiallytrustedcaller] to the file.
Set trust level to "Full" in web.config file
For more information, please refer to the following document:
http://support.microsoft.com/kb/2869522/en-us
If you have any more questions, please feel free to ask.
Thanks,
Wendy Fu
Similar Messages
-
Unable to preview ssrs report in visual studio
Hi, I'm new to ssrs. i'm created a report but cannot preview the data. the query is working fine in sql server but return 0 when i execute in query designer in visual studio. i've try to create the new one but still the same problem occur. anyone can help
me? thanks.Hi accy,
According to your description, you have a query which runs properly in SSMS. When execution the query in SSRS query designer, it returns incorrect result. Right?
In Reporting Services, the query we execute in query designer will be sent to corresponding database and run, then return the result. However, it still have some limitations for query designer.
All the query in query designer will only be executed one time. Unless we re-run the report, the query will not execute again and the return data will not change.
In query designer, The result set must be a single set of rows and columns where the same number of values exist for each row of data. Multiple results sets from a single query are not supported. It will only return the first result set. Ragged hierarchies,
which do not have a constant number of columns and can produce different number of data values for each row, are not supported.
In this scenario, the issue should be on query side. Please check the input parameter and the return result set. If possible, you can post your query so that we can have some deep analysis.
Best Regards,
Simon Hou -
Get error when passing server name to Crystal Reports in Visual Studio 2012
Hello,
I work on Visual Studio 2012 with Crystal Report 13.0.12 (both developer and run-time). When I pass the name of the server to the Crystal Reports, I get an error -- Failed to open the connection. Database Vendor Code 17. I use SQL OLEDB as the provider. It worked before. Not sure what has happened.
Any help is much appreciated!!!
JohnHi,
See this: Failed to open the connection - database vendor code 17
--dj -
Crystal Report for Visual Studio 2012(free download)
I want to use Crystal Report for a Web Application which has to be hosted in Web servers. Please let me know whether the developer version of Crystal Report Downloaded for development purpose can be used for hosting purpose also?
Or
Crystal Report has to be bought from SAP?
Message was edited by: Ludek UherDownloads are here:
SAP Crystal Reports, developer version for Microsoft Visual Studio: Updates & Runtime Downloads
Licensing info is here:
Crystal Reports for Visual Studio 2010 Licensing
If you need more info re. licensing, please contact sales: 866-681-3435
http://www.sap.com/contactsap/directory/index.epx
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter -
Cannot open visio template in visual studio 2012 COM Exception "An exception occurred"
Hi,
I have following piece of code
DocumentnewDocument =
null;
if
(visioApplication ==
null)
visioApplication = newVisio.Application();
newDocument = visioApplication.Documents.OpenEx(fileTemplate, (
short)Visio.VisOpenSaveArgs.visOpenCopy);
This works fine in visual studio 2008 and server 2008. But after migration to visual studio 2012 and windows server 2012(this code runs in a windows service in server) it is no longer working throwing COM Exception - "An Exception occurred" while
opening a template. Visio 2013 is installed on both server and client. Tried changing the file extension from vst to vstx. but no use.Hi
SM_CT,
According to the error message “Exception from HRESULT: 0x800706BE”, you can refer to this article.
http://support.microsoft.com/kb/2461206
If there is anything I can do for you regarding this issue, feel free to post back.
Best regards,
Greta Ge
TechNet Community Support
It's recommended to download and install
Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
programs. -
Hi,
I am getting this error from visual studio 2012 whenever i try to create the following project types:
- Workflow Custom activity
- Web parts
The error is as mentioned below
"The partial project item type does not have a value for this property"
Due to this the when I add above type of items in my project, they show a red cross icon against them.
Please let me know If have you any solution?Hi
I had same issue. Below is the solution
Installing
"Visual Studio 2012 Update 3" usually solves this problem. (You can download it through microsoft's official site at
"http://www.microsoft.com/en-in/download/details.aspx?id=39305")
Hansraj Rathva -
Visual Studio 2012 Ultimate - GUI not loading.
Recently, my copy of Visual Studio 2012 Ultimate has started loading in with a completely white screen with only the grey General bar on the left.
The other graphics render after resizing the window but the menu items (File, Edit, View, etc.) won't drop down menus when clicked on.
I have tried repairing Visual Studio (through Programs and Features), but the problem persists.
Has anyone else had this issue? Did you manage to fix it?Hi Jaosh,
Glad to receive your reply.
According to your description, you mean that when you re-install the VS 2012 Ultimate, the grey General bar and
the window’s menu items (File, Edit, View, etc.) still won't drop down menus when you clicked on, am I right?
If yes, to make sure the issue if it is related to the VS IDE or Windows System, I suggest you can try to install
the VS 2012 Ultimate on another machine check if you get same issue.
Note: you'd better sure you have same system configuration on another machine.
If you did not get same issue on another machine, I doubt that the issue may be related to your windows system.
I suggest you can repair your machine and then check this issue again.
If you still get the issue, I think that I suggest you can try the following commands to check the issue.
Step1: You can try to run your VS in safe mode check this issue again.
Reference:
http://msdn.microsoft.com/en-us/library/ms241278(v=vs.110).aspx
Step2: You can try to reset the setting file by using
devenv /resetsetting commands
Step3: You can correct the log and upload the onedrive, then copy link here.
http://msdn.microsoft.com/en-us/library/ms241272(v=vs.110).aspx
Best Regards,
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. -
I set up my work e-mail account on my iphone 4S. When I try to send an e-mail message from my phone, an error message occurs "Cannot Send Mail" - "recipient was rejected by the server because it does not allow relaying". What does this mean and how do I correct it?
Get the correct mail server settings from your IT department.
-
Upgrade from SSRS 2008 to visual studio 2012/2013
Hello,
Is it possible to upgrade Visual Studio BIDS file/project types from 2008R2 to 2012/2013:
SSRS *.sln
SSIS * .dtsx
*.dbproj
If it is possible, can the resulting (upgraded) 2012/2013 file/projects be back-ended in 2008R2 SQL Server database engine?
Or is it necessary to have the version of the back-end SQL Server database engine match the version of the VS BIDS projects?
thanks,Microsoft Visual Studio 2010 does not support Business Intelligence Development Studio Integration Services, Report Services and Analysis Services projects for SQL Server 2008 and SQL Server 2008 R2.
To work around this issue, you can install Visual Studio 2008 alongside Visual Studio 2010 on the same machine and then open the Business Intelligence Development Studio projects in Visual Studio 2008.
(we have to follow side-by-side installation of SQL Server 2012 and SQL Server 2008. since you may have
some issues with BIDS.) -
SSRS Report in Visual Studio using a Stored Procedure as data source
I have a stored procedure that creates a table used in an SSRS report that will be stored in AOT of Dynamics AX 2012 and be placed on a menu within Dynamics. My concern is -- will mutiple users be able to run the report at the same
time for different filters without anything special being done in the stored procedure.
The stored procedure deletes a table, then recreates each time the stored procedure is run. The ssrs report executes the procedure.Hi,
Thank you for posting in the MSDN forum.
Since it is related to the SSRS, we will move this case to the
SSRS forum, you will get dedicated support from the SSRS experts.
Best Regards,
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. -
Visual Studio Community 2013 does not show database explorer
I am a Newbie who wants to learn web development. it seems in older version of visual studio, when you add a database item in solution explorer there is a database explorer.
but now in my visual studio 2013, if i add a database item, there is no database explorer to let me browse table or others below. Why? I installed SQL express and Visual Studio on windows 8.1 x64
Also any pointers to free tutorial on the internet that lets me learn and practise working with database in a web application?Hello Lenny,
Can you see Server Explorer in your VS? What about show us a sceenshot so that we can understand your problem.
I do not have VS 2013 Community right now but in my point of view you should have related components. I will also install VS Community later and share you some info.
Best regards,
Barry
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. -
How can I print out a few pages of a kindle ebook (music) from my iPad.
How can I download this book to my iMac from the iPad. It is NOT in my e books library, but I can only access it from my kindle app.
Thanks for any help you can give me.One work around is, if the Kindle app allows, make a screen cap of the page and print that.
Hold down the sleep and home keys and relase them together....kinda like you'd press the shutter of a camera, a joint quick down and up
You'll see a white flash and hear a shutter sound. Then look in your photos app and you'll see the images. You can print them just like you'd print a photo. -
Sharepoint 2013 - Can I use Visual Studio 2012 express edition for web-parts and app parts?
I am new to sharepoint 2013. I want to develop the app and web parts using visual studio 2012 express edition. Can I use vs 2012 express edtion to create app and web parts for sharepoint 2013?
Unfortunately no, check this post:
http://sharepoint.stackexchange.com/questions/52338/sharepoint2013-development-with-vs2012-express
To build SharePoint 2013 webparts/apps you will need the 'Microsoft Office Developer Tools for Visual Studio 2012', which do not come as part of Visual Studio. The tools require Visual Studio 2012 Ultimate, Premium, or Professional.
The tools and prerequisites can be found here:
http://msdn.microsoft.com/en-us/office/apps/fp123627.aspx
Brandon Atkinson
Blog: http://brandonatkinson.blogspot.com -
Cannot Send Mail-recipient was rejected because it does not allow relaying
iPod 4g - Cannot Send Mail - The recipient was rejected because it does not allow relaying. Does anyone know of a fix for this problem?
Do you have more than one mail account on the iPod? The Mail app usually is set up to use alternate outgoing SMTP serves if the primary (the one associated with the accout you are sending from) is not available. Some providers do not allow sending mail from other the the account associated with that server. It appears that the primary server is not responding and a secondary server is rejecting the messag.
Try resetting the iPOd. Nothing will be lost.
Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
least ten seconds, until the Apple logo appears.
Do other devices send mail from that accout? -
Visual Studio 2012 + Report Viewer 2012 Word Render Margin Problem
Hi all,
I am developing a asp.net web application /w visual studio 2012. I have created some reports with report viwer, and I would like to export those reports to pdf and word format. The pdf output is same as I expected, but the word output is missing
top and bottom margin, it leads we cannot print the header and footer correctly in word, also the repeat header on each page property didn't work too.
Is anyone has the solution for this issue?
Thanks,
hkHello,
Welcome to MSDN forum.
Your issue is out of support range of VS General Question forum which mainly discusses
the usage of Visual Studio IDE such as WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
and Visual Studio Editor.
Because you are working with ASP.NET Web Application, I suggest that you can consult your issue on ASP.NET forum:
http://forums.asp.net/
for better solution and support.
Best regards,
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
-
Audigy 2 ZS Platinum Pro - spdif and optical at the same t
Hi, I own a Audigy 2 ZS Platinum Pro, DR release .84.40. I have an optical source and an coax spdif source that I would like to connect to the external module. I have found that as soon as I connect a spdif source the optical is cut off. I can't get
-
The title I want to see is being affected with icons (ex. the ones of my dock), in other parts it shows my background, i`ll try to give you a shot
-
Conversion of P&L Item To B/L Item
Hi, Can anybody tell me for this below issue.. Client want to change the freight GL from OLD 701233 to new GL 701234. But present client are maintaining this new GL 701234 as P&L item. Now Client wanted to know the impacts or affects. Converting P&L
-
How to upload image in MIME repository from bsp application
Hi, I want to upload Image in MIME repository from my BSP Application. I want to access again or reuse uploaded image later in my BSP application. Can you please help me how to do this? I already go through http://help.sap.com/saphelp_nw2004s/helpdat
-
How close can I come to Realtime with Labview student edition and an Arduino project?
Hey everyone, I'm really new to Labview and just recieved the Labview 2012 student edition and I plan to do a project. It came to my concern that after asking the Labview interface for arduino forums, they suggested that it cannot provide realtime.My