Показаны сообщения с ярлыком Microsoft. Показать все сообщения
Показаны сообщения с ярлыком Microsoft. Показать все сообщения

вторник, 20 июня 2017 г.

SSRS 2016 Mobile Report Publisher Error 500

Hi All,

So In case you struggle as I was with SQL Server 2016 Reporting Services and specifically I had two issues:

  • SRS website simply will not show any content which I ignored at start with some similar 500 Error
  • Then when I tried to use Mobile Report Publisher I saw this 500 error

In the SRS logs ("C:\Program Files\Microsoft SQL Server\MSRS13.MSSQLSERVER\Reporting Services\LogFiles" in my case) I can see something like that

Microsoft.ReportingServices.Portal.WebHost!reportserverwebapp!fe!06/20/2017-12:13:09:: e ERROR: [frrma4f2]: OData exception occurred: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentOutOfRangeException: The UTC time represented when the offset is applied must be between year 0 and 10,000.

Now you have to remeber words OData and the string about UTC time.

Turned out the issue is with the fact that... wait for it... your server is living east of London :)

Reset timezone to EST (GMT with minus "-", to the left, west side :)) and the error is gone

I mean, Microsoft, really? :)

I was able to find a solution from this blog post
https://morgansimonsen.com/2015/12/07/office-365-hybrid-configuration-wizard-fails-due-to-datetime-minvalue-issue/
Which is about a problem in C# reported here, a problem known in 2012!!!

Hope this helps someone else out there :)

четверг, 24 марта 2016 г.

Windows Server 2016 TP4 Hyper-V Container fails to start with 80070002

So,

I was playing with new Windows Server containers feature the other day and for some reason Hyper-V container didn't want to start with the following error:

start-container : 'sg-cnt1' failed to start.
'sg-cnt1' failed to initialize: The system cannot find the file specified. (0x80070002).

It took some time and with help of Process Explorer I was able to conclude that WindowsServerCore image, which container host downloads, doesn't contain the template virtual drive (SystemTemplate.vhdx). You can check that NanoServer image does have the template, but not the full windows container image.

You might ask why I don't use a default (non-hyperv) containers? Well, because Microsoft has a bug and you cannot change container computer name - it will change the computer name of the host machine instead. That's why I was trying Hyper-V containers, from breif Nano container examitation I found that this type of container doesn't have this bug. Unfortunately I cannot use the Nano because I need to install some software and on Nano it's going to be difficult.

Solution:

Don't know. I need to find a correct SystemTemplate.vhdx somewhere. I'll update the post when I find.

пятница, 26 июня 2015 г.

Remove specific data from XML with PowerShell. Records from SCOM Default User MP for example

Hi,

Just to save for myself too. I was playing with XML support in PowerShell and was able to use the following to delete part of the XML. This is very useful, especialy for dealing with Operations Manager Default User Management Pack. You can select data for a specific Management Pack and delete it, so that the desired Management pack can be removed without deleting the Default User MP.
$xml = [xml](Get-Content ".\Microsoft.SystemCenter.OperationsManager.DefaultUser.xml")
$xml.ManagementPack.Monitoring.Overrides.MonitorPropertyOverride | ? {$_.Monitor -like "*Exchange*" -or $_.Context -like "*Exchange*"} | % {$_.ParentNode.RemoveChild($_)}
You can also export these contents before deleting. Like that
$xml.ManagementPack.Monitoring.Overrides.MonitorPropertyOverride | ? {$_.Monitor -like "*Exchange*" -or $_.Context -like "*Exchange*"} | % {$_.OuterXML} | Out-File .\MPO.xml

 To save the update MP, use Save method:
$xml.Save("FullPath")

четверг, 12 марта 2015 г.

Win8 WiFi "limited" issue and old DLink router



Hi,

You all probably already saw a lot of different fixes for the "limited" WiFi in Windows 8. TCP/IP stack reinstallations, WiFi network re-adding and many more. Well, they didn't work for me.

The reason for my troubles was DHCP from my old Dlink router. For some reasons when my router were allocating addresses dynamically with pre-set lease time, my Win8 devices were loosing connection from time to time and WiFi state were switching to "limited" state. A workaround was to restart the router, this worked for me, but then I decided to understand the source of the problem.

It turned out that DHCP renew command didn't work. My thought is that my old router has its own internal sense of current date, time and timezone :) I didn't need to fix that because my router is not a time source. And I think what is happening is that the router had it's own sense of lease time and its own sense of when IP address is expired or not, probably this doesn't work well with Windows 8.

To fix that I've added fixed, static DHCP mapping for Windows 8 devices and it worked! Now I don't have issues with Windows8 WiFi devices and I don't need to change my router (originally I thought it's a bug in the firmware and due to my router being too old I thought I had to change it)

вторник, 6 августа 2013 г.

Installing SQL Server Reporting Services on Windows Server Core

Hi All,

A quick post on the subject. I was searching for a while trying to understand why Microsoft limited the ability to install SRS on Server Core. I think mostly because of the fact that you actually need a web browser to work with it, in the configuration tool there are links which should be opened in a webbrowser - which is not installed on the server core.

However there are absolutely no technical limitations whatsoever for running SRS on the core. And I was able to finally find a way to install SRS on it.

A fellow familiar with the setup and how it works(thanks a lot if you are reading it!) helped me identify the name of the check which should be disabled.

So, first of all you should launch the GUI version of SQL server setup. For me it worked correctly only when I launch it from the command prompt and only when I installed GUI management tools feature, here is how you can do this (maybe everything will work even without this):

   Get-windowsfeature | ? {$_.name -like "Server-gui-mgmt*"} | install-windowsfeature

Then I installed everything using the following command

   setup.exe /action=install /features=RS /skiprules=servercoreblockunsupportedfeaturescheck    /iacceptsqlserverlicenseterms /UIMode=enableUIOnServerCore

Setup worked perfectly and now I have SQL server and SRS on Windows Server Core. Which is great!

P.S. Of course you have to have IIS already deployed on the server core and after the installation you need to launch the SRS configuration utility to create a database and web interfaces. (the tool is located at c:\ProgramData\Microsoft\Windows\StartMenu\Programs\... and then in the corresponding SQL server folder)

P.P.S. I was using SQL Server 2012 SP1.

Thanks.