Can't preview SSRS report in VS2013? - reporting-services

I've created a new "Report Server Project" in VS2013 .Net 4.5. I've added a data source and the test connection succeeds. I've added a DataSet using the "Use a dataset embedded in my report" option choosing the data source previously created. The query type is Stored Procedure with a single text parameter. In the report data box I can right click my DataSet, choose Query, and execute the sproc. I see a grid populated correctly with my data.
However, when I try to create and preview a report it fails. I do the following:
Add a new report.
Drop a table on it from the toolbox.
Start dragging fields from my DataSet onto the table.
When I hit preview I see the following
Here is the text that gets spit into the output window:
System.ServiceModel.CommunicationObjectFaultedException: The
communication object,
System.ServiceModel.Channels.ClientFramingDuplexSessionChannel, cannot
be used for communication because it is in the Faulted state.
Server stack trace: at
System.ServiceModel.Channels.CommunicationObject.ThrowIfDisposedOrNotOpen()
at System.ServiceModel.Channels.OutputChannel.BeginSend(Message
message, TimeSpan timeout, AsyncCallback callback, Object state) at
System.ServiceModel.Dispatcher.DuplexChannelBinder.BeginRequest(Message
message, TimeSpan timeout, AsyncCallback callback, Object state) at
System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.StartSend(Boolean
completedSynchronously) at
System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.FinishEnsureOpen(IAsyncResult
result, Boolean completedSynchronously) at
System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.StartEnsureOpen(Boolean
completedSynchronously) at
System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.FinishEnsureInteractiveInit(IAsyncResult
result, Boolean completedSynchronously) at
System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.StartEnsureInteractiveInit()
at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.Begin()
at System.ServiceModel.Channels.ServiceChannel.BeginCall(String
action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins,
TimeSpan timeout, AsyncCallback callback, Object asyncState) at
System.ServiceModel.Channels.ServiceChannelProxy.InvokeBeginService(IMethodCallMessage
methodCall, ProxyOperationRuntime operation) at
System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage
message)
Exception rethrown at [0]: at
System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage
reqMsg, IMessage retMsg) at
System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
msgData, Int32 type) at
Microsoft.ReportDesigner.Design.IPreviewProcessing.BeginSetItemPath(String
itemPath, AsyncCallback callback, Object asyncState) at
Microsoft.ReportDesigner.Design.PreviewProcessingClient.BeginSetItemPath(String
itemPath, AsyncCallback callback, Object asyncState) at
Microsoft.ReportDesigner.Design.WCFProcessingHost.<>c__DisplayClass1.b__0(AsyncCallback
ac, Object s) at
Microsoft.ReportDesigner.Design.WCFProcessingHost.<>c__DisplayClass3b.b__39()
at
Microsoft.ReportDesigner.Design.WCFProcessingHost.ExecuteWcfCall(Action
wcfCall) at
Microsoft.ReportDesigner.Design.WCFProcessingHost.ExecuteAsyncCall(Func`3
beginAction, AsyncCallback endAction) at
Microsoft.ReportDesigner.Design.WCFProcessingHost.set_ItemContext(PreviewItemContext
value) at
Microsoft.Reporting.WinForms.LocalReport.ChangeReportDefinition(DefinitionSource
updatingSourceType, Action changeAction) at
Microsoft.Reporting.WinForms.LocalReport.set_ReportPath(String value)
at Microsoft.ReportDesigner.Design.PreviewFrame.RefreshPreview()
I have googled for two days with no luck, any help is much appreciated.
EDIT:
It turns out, when you preview the report, this console window opens. I must have closed it the first time, then the preview fails. If you leave the console window open the preview works fine. Here is a screenshot so you can see what I'm talking about. In order to get previewing to work, I just had to re-start visual studio and make sure not to close the console window when it pops up when I hit preview.

This is a reported bug in SSDT-BI. In the meantime the current workaround is to right click on the report you want to preview in your Solution Explorer and click RUN and it will work unless you want to keep that command prompt window open.

Running the Microsoft Visual Studio as Administrator will resolve this issue.

Related

Unable to run UFT automation scripts using edge browser

We have built our entire project automation suite using UFT 15.0.1.416. We have used Visual studio 2019 to build the automation suite. And there are around 900 test cases we have automated and able to run all of them without any issues in IE 11 browser.
As IE 11 sooner going to retired by Microsoft, we are planning to migrate to Chrome & Edge.
But we are facing issues with Chrome & Edge browsers to run automation scripts.
Chrome Browser: we are able to launch the application & run the scripts.
But running scripts on Chrome is very very slow. It is taking couple of minutes even to execute simple script. When we debug, we have noticed that every operation that interacts with web element is taking lot of time. Even getting the properties of web element like Id, Class are also taking time.
We are using chrome version - 91.0.4472.114.
Edge browser - we are unable to lunch the application using edge browser. Keep on getting following error.
Exception: General Error occurred
at HP.LFT.SDK.Core.Communication.CommunicationClient.HandleError(Action2 onError, Int32 status, IDictionary2 data)
at HP.LFT.SDK.Core.Communication.CommunicationClient.Send(String messageType, IDictionary2 data, Action2 onError)
at HP.LFT.SDK.Web.BrowserFactory.BrowserFactoryInstance.InternalLaunch(Dictionary2 launchInfo) at HP.LFT.SDK.Web.BrowserFactory.BrowserFactoryInstance.<>c__DisplayClass2.<Launch>b__1() at HP.LFT.SDK.OperationExecutionWrapper.ExecuteWithEventsInternally[T](ITestObject testObject, Object additionalInfo, Func1 innerAction, MethodBase methodInfo, Boolean reportOnlyOnError, Object[] arguments)
at HP.LFT.SDK.OperationExecutionWrapper.ExecuteWithEvents[T](ITestObject testObject, Object additionalInfo, Func1 innerAction, MethodBase methodInfo, Boolean reportOnlyOnError, Object[] arguments) at HP.LFT.SDK.OperationExecutionWrapper.ExecuteWithEvents[T1,TR](Func1 innerAction, Func`2 originalMethod, T1 param1, Boolean reportOnlyOnError, ITestObject testObject, Object additionalInfo)
at HP.LFT.SDK.Web.BrowserFactory.BrowserFactoryInstance.Launch(BrowserType browserType)
at HP.LFT.SDK.Web.BrowserFactory.Launch(BrowserType browserType)
And Edge extension is already installed.
Has anyone ever encountered this type of problems ?
Thanks in advance for any help
Please upgrade to latest UFTD 15.0.2 to solve the issue.

Not seeing SSRS 2016 exec proc calls in SQL Profiler

I have a report that calls a proc to load a list of Ids (procLoadIds) and then a proc that gets all my data (procGetData).
I start a SQL profiler trace with the RPC:Completed, RPC:Starting, SQL:BatchCompleted, and SQL:BatchStarting events and nothing filtered. I then refresh the page my report is on, choose my parameters, and click "View Report". I expect I should see a call to procLoadIds and procGetData in the trace results somewhere but I don't... is there something I'm missing setting up this trace?
I seem to be having issues when I am passing a lot of Ids so I want to see the actual "execute procGetData" with the parameters being passed so I can run that manually in SSMS.
UPDATE: I started seeing this show up but only for the event RPC:Completed. is there a way I can see this when I call it (I thought that's what RPC:Starting might do), not after it finished (or more specifically timed out).

Cannot open log for source 'Microsoft.Practices.EnterpriseLibrary.Data'. You may not have write access When Read/Write to Event log

i'm working on a SharePoint 2013 site, i have 2 type of registration: (Win Authentication and FBA).
I'm trying to use a solution (WSP) from the old portal (SP 2010), this WSP use a dll named 'Microsoft.Practices.EnterpriseLibrary.Data' which isn't existed in SP 2013 environment.
So to resolve that i installed the Microsoft Enterprise Library 5.0 from Microsoft, then i copied this dll to the bin folder under inetpub\wwwroot\wss\VirtualDirectories\80\
Now when i logged in to site using windows authentication mode the WebPart appear but when logged as FBA User the an error appeared:
System.InvalidOperationException: Cannot open log for source 'Microsoft.Practices.EnterpriseLibrary.Data'. You may not have write access. ---> System.ComponentModel.Win32Exception: Access is denied
--- End of inner exception stack trace ---
at System.Diagnostics.EventLogInternal.OpenForWrite(String currentMachineName)
at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName)
at System.Diagnostics.EventLogInternal.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category, Byte[] rawData)
at System.Diagnostics.EventLog.WriteEntry(String source, String message, EventLogEntryType type, Int32 eventID, Int16 category, Byte[] rawData)
at System.Diagnostics.EventLog.WriteEntry(String source, String message, EventLogEntryType type)
at ProjectName.Internet.EventViewerLogService.LogEvent(String source, String message, EventLogEntryType type)
at ProjectName.Internet.ExceptionHandler.Handle(Exception exception)
at ProjectName.Internet.SQLHelper.GetVolunteerInfo(String VolunteerId)
at ProjectName.Internet.Profiles.Volunteer.GetVolunteer(String VolunteerId)
at ProjectName.Internet.Accessibility.Accessibility.AccessibilityUserControl.Page_Load(Object sender, EventArgs e)
Note: i tried to give permission to "Security" into the registry HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Security to the 'Authenticated Users group' because i had an error in the beginning
Error: The source was not found, but some or all event logs could not be searched. Inaccessible logs: Security.
PS: This is a follow up to this . I followed the given answers but to no avail.
I guess this is due to some configuration issue on server?
The error is related to permission issue, when i logged in with FBA User i missed the permission to write into new event Sources.
By default, any authenticated user is able to write to application event log. However only administrators can create new event Sources.
I resolve it by run the CreateEventSource method with elevated Privileges, like the below:
SPSecurity.RunWithElevatedPrivileges(delegate()
{
if (!EventLog.SourceExists(eSource))
{
EventLog.CreateEventSource(eSource, eLog);
}
EventLog.WriteEntry(eSource, ex.ToString(), EventLogEntryType.Error);
});

StreamingSubscritionConnection throwing Key not found exception

I am developing an application which uses the StreamingSubscriptionConnection object in the EWS managed API.
When the network connection is lost for a certain period of time it throws an exception whose StackTrace shows this
System.Collections.Generic.KeyNotFoundException was unhandled
Message=The given key was not present in the dictionary.
Source=mscorlib
StackTrace:
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at Microsoft.Exchange.WebServices.Data.StreamingSubscriptionConnection.IssueSubscriptionFailures(GetStreamingEventsResponse gseResponse)
at Microsoft.Exchange.WebServices.Data.StreamingSubscriptionConnection.HandleServiceResponseObject(Object response)
at Microsoft.Exchange.WebServices.Data.HangingServiceRequestBase.ParseResponses(Object state)
at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
InnerException:
Anyone has any idea why this might be happening?
Thanks in advance.
It seems that your client receives notification for a subscriptons which has already been terminated and removed from the client. The StreamingSubscriptionConnection class maintains an internal list of subscriptions. When it receives a failure event from the server, it notifies the client and removes the subscription from said list. If it receives another failure event for this subscription the exception you are seeing would be created.
To troubleshoot the issue try monitor the traffic returned between your client and the Exchange server with Fiddler (http://www.fiddler2.com/fiddler2/). It acts as a proxy between your application and Exchange and it can decrypt SSL traffic. Perhaps this will give you more insight about what's going on.

SSRS only showing blank reports

I've been trying to get SSRS working but I only get blank reports (using the sample reports from codeplex).
Logs have this error
ui!ReportManager_0-1!1430!04/26/2011-20:10:27:: Unhandled exception: System.Web.HttpException: Path '/Reports_ANTHONYWS/ScriptResource.axd' was not found.
at System.Web.HttpNotFoundHandler.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Do your settings in Reporting Services Configuration Manager all look OK? I ask because it looks like you've changed the default "Reports" virtual directory to "Reports_ANTHONYWS", wonder if this is affecting anything.