Local Report in visual studio 2017 Shows Error in Value field - visual-studio-2017

Local Report Rdlc in vs2017 when try to make expression in field it gives #error but it works in other machine without issue
I'm just making simple report and make group in one column, when try to run report in my new computer report shows #error in fields that i made any expression on it even if concatenation
but if move the report file in my old machine it works fine
this is example of expression i used
=Fields!CollegeNameEn.Value & "tt"
it not shows in report
I expected to show value but it shows #error

after searching I found this post with similar issue
https://forums.asp.net/t/1757832.aspx?Reportviewer+2010+showing+Error+for+expressions
and puting these lines in code fixed my issue
var sec = new System.Security.PermissionSet(System.Security.Permissions.PermissionState.Unrestricted);
localReport.SetBasePermissionsForSandboxAppDomain(sec);
I don't why I need these lines but issue is fixed
ho[e this will help anyone have the issue

Related

Sorry, we're having trouble reaching the server

We have restore site from dev machine to staging. We have list in our site with people picker which is working fine on dev, but on staging it is showing message "Sorry, we're having trouble reaching the server.".
I have try to create one more people picker column in list(Stag), but new column also giving same error.
If i create new list on new column to other list(stag), it is working fine.
Can any one please help me in that.
We are facing this issue due to SP.js file is available on NewForm.aspx page with other js files.
There is some discrepancy while loading the page and error occurs. It is working for us when we removed the reference of SP.js file.
This worked for me
https://social.technet.microsoft.com/wiki/contents/articles/36583.sharepoint-2013-people-picker-error-sorry-were-having-trouble-reaching-the-server.aspx
$webApp = Get-SPWebApplication https://<web adderss>
$newdomain = new-object Microsoft.SharePoint.Administration.SPPeoplePickerSearchActiveDirectoryDomain
$newdomain.DomainName ='<Domain Name like domain.com>';
$newdomain.ShortDomainName ='<net bios name (optional)>';
$newdomain.LoginName ='domain\Farm Account'
$newdomain.IsForest='false'
$webapp.PeoplePickerSettings.SearchActiveDirectoryDomains.Add($newdomain)
$webapp.update()
To verify
$webapp.PeoplePickerSettings.SearchActiveDirectoryDomains

Jupyter Notebook error during saving

Everything used to work fine but now every time I try saving any file in Jupyter Notebook, I get the following error.
URIError: URIMalformed
Also the following is shown in the title bar.
Last Checkpoint: 09/02/2016 Autosave Failed!
How do I fix this issue?
I encountered this same error as well. I ended up tracing it down to the LastPass extension in Chrome. I disabled the extension, and I was able to save again.
[lastpass] [jupyter]
There is a solution for the Lastpass users:
https://github.com/jupyter/notebook/issues/1966
adding "localhost" to My Vault -> Account Settings -> Neverl URLS -> "Never Add Site"
I'm having the same issue and tracked it back to the character %.
I'm using it in the line %matplotlib auto.
I don't even have to run the line of code. Just having it in my text prompts the error. If I remove the character, then I can save again.
Remove any % and see if you can then save.
+1 to Scott's answer above. I also got the exact same error messages you got using Python 3.5.1. I fixed the issue by getting rid of any % characters in my code per Scott's answer from yesterday. I needed the % for the modulo operator. I just imported operator.mod() instead.
Aside: This is such a quirky bug!
As an alternative to globally disabling the LastPass extension in Chrome, I was able to get things working by running the notebook in a Chrome incognito window.
Additionally, this issue only seems to affect Chrome. Even with LastPass enabled in Firefox, I've been able to save the notebooks without the urierror.
Not using '%' in Jupyter Notebooks doesn't seem like a solution, since the magics all start with % and even having % in a print statement causes the error.

Sitecore 7.2 Media Library images not working with underscore in the name

I just upgraded a client's test installation of Sitecore to 7.2 (SP1) and now, any image that has an underscore in its name is throwing a 404 error when being referenced by a page. This was actually a series of upgrades from 6.4 so it's quite possible that a config setting somewhere got missed along the way, but I don't see anything standing out at me that would cause this problem.
If I change the image name to not have an underscore, it works fine, and it also works fine if I set "Media.UseItemPaths" to false, but they would prefer it if their image URL's had the file name displayed.
Can anyone help identify what may have gone wrong?
Due to a change in Sitecore 7.1, any replacements specified in encodeNameReplacements are now also applied to media items as well as regular items in the content tree.
One option is to remove the replaceWith="_" declaration, but the likely reason this was added was to possibly replace spaces in your URLs so they do not display with %20. Removing this declaration will mean they return!
You can instead apply the fix specified in this Sitecore Knowledgebase article: Sitecore is unable to open media items when using encodeNameReplacements

VS2012 migration "HasTrailingSlash" issue

I am trying to migrate a VS 2005 project to VS 2012. But it reports the following error.
The "HasTrailingSlash" function only accepts a scalar value, but its
argument "$(IntDir)" evaluates to
"C:\Users\Mahesh\HelloWorld_obj\DebugW7-Win32;\" which is not a
scalar value. C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.Cpp.targets
I understand its a string literal and not a scalar value. But how to resolve the issue. Can anyone please share your ideas. Googling didn't help much.
Failed attempt : Though changing the delimeter to / from ; for the macro serving as intermediate directory in the property sheet did not work.
Success: I opened the property sheet in Notepad and removed the following lines for the user macro "ObjOut" which serves as an intermediate directory for my project.
InheritsFromParent="true"
Delimiter=";"
The same can be achieved via IDE as well when "Macro inherits from parent property sheets" is unchecked for the macro.
Hope this is useful to someone in future. I posted the same on MSDN forum as well.

Visual Studio C++ project error re: LOCALAPPDATA

I'm trying to create a new C++ project in VS 10, and can't even get an empty project to load from the template. I get an error...
The "exists" function only accepts a scalar value but its argument "$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" evaluates to "{~}" which is not a scalar value.
The {~} value is what I have stored in the LOCALAPPDATA variable in the computer Environment Variables, concatenated with "\Microsoft\MSBuild\v4.0\Microsoft.Cpp.Win32.user.props" at the end.
I'm reluctant to go changing any template files without understanding what's going on.
Well, it looks like Windows XP doesn't provide any default value for this variable and "~" is definitely not a valid directory on your PC. Try to set it as described here, and maybe you'll get lucky. VS2010 had some bug related to this. Perhaps you also need to upgrade it to SP1.
The links provided by #Mihai gave the information I needed to find a solution. The problem was that LocalAppData didn't have the value it was looking for (just what the error message says). I couldn't change that data because other apps had modified it for their own purposes (the value wasn't "~", that was a placeholder for this post).
Instead, I opened the .vcxproj file in Notepad, and modified the ImportGroup nodes causing the error. Instead of the attribute:
Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')"
... it now reads
Condition="exists('$(UserProfile)\Local Settings\Application Data\Microsoft.Cpp.$(Platform).user.props')"
The project now loads.