Deploy SQL Server Reports Locally - sql

i am very new to SQL server Reporting Services.I have developed reports in SQL Server Reporting.now Where do i deploy them in order to use them into my asp.net web application?

To include the report in your ASP.NET application, here you will need to use a custom control however, Microsoft does not provide a custom control like crystal report viewer custom control, in fact you will find it deployed in the samples directory of Reporting service. The custom control is located at
C:\Program Files\Microsoft SQL Server\MSSQL\Reporting Services\Samples\Applications\ReportViewer
You can just go and open that project and compile it and use the ReportViewer DLL in your ASP.NET application. This can be done by opening your toolbox, then click Add/remove and click browse and select the ReportViewer.DLL I included the source and the DLL in the source in case you cannot find it or you didn't install the sample applications of reporting service. Anyway after selecting the DLL you have to select the custom control from the list.
You will find the name of the Custom Control ReportViewer "Microsoft Sample Report Viewer Application"
When you are done, just include the custom control in your ASP.NET page and change the following properties.
First you have to select the report path and this should be something
like :- My Reports/Report1 - exactly the sample folder you deployed
your reports in.
Second you have to edit the ServerURL and here you enter your
reporting service location http://localhost/reportserver/ this is the
reporting server location, while /reports is the report server web management so take care not to get mixed up.
Once both are done, you can start viewing your report by accessing your ASP.NET web page.
Now enter the location of your web application and choose the asp.net page that contains the custom control

Related

Hangfire shared dashboard

.Net Core 2.2
Hangfire.Core 1.6.22
Hangfire.SqlServer 1.6.22
Hangfire 1.6.22
I have created a sample proof of concept for using Hangfire for multiple applications (2 console applications) but with a shared database and dashboard (a separate web app). It works wonderfully except that the dashboard shows either "could not load file or assembly" or "Can not find the target method" on the list of succeeded jobs.
Everything succeeds so that is good, but the dashboard is unable to display the name/description of the job without having a reference to the application dll where the job method is.
Is there a way to specify the job name/description instead of requiring the dashboard to have a reference to the application dll just to retrieve this name/description? I tried using the DisplayName attribute but that doesn't work either. If I reference the application project from the dashboard project then it works OK, but I really do not want to have to reference every project from the dashboard project just to populate this description.

RDLC reports are not published to after deployed to IIS?

I have a web application written in VB.NET. In my application I have a few RDLC reports that will be generated dynamically. Everything works fine during the development. But those reports are not working after I deployed my web application to IIS. Here are my problems.
(1) All the reports under my RDLC folder are not deployed, I think this is the reason why I got the error “error occurred during local report processing”
My question is why this folder was not published, and what should I set to publish this folder?
(2) If I manually copy those RDLC reports to the destination folder, I got another error “failure: unknown user name or bad password”
My authentication mode is set to Windows. Is there anything else I need to set in my web.config?
I am using IIS 5.1 and my web app has been upgraded from VS2005 to VS2010.
Your RDLC files are probably marked as "Embedded resource".
Right click on rdlc file and change it to "Content" and re-publish.
It will work this time.

Deploying .vbhtml on Local IIS Installation

I've come into a company that has been using asp.net for some web applications stored on our local servers. There's no current programmer, so I've used what knowledge I have to build a new feature using MebMatrix Razor VB.NET pages and our current SQL Server database. I have to migrate the project over to a local server running IIS to deploy it.
I don't want to use the WebMatrix Web Deploy feature or anything, I'd rather just move the files over manually and have them run. I assume that IIS just needs to be configured to process .vbhtml file extensions. My understanding is that you don't have to build your solution with this method, as you do with ASP. Does anybody know how to do this, or where I might find a good tutorial?
Copy the directory for your website from the 'My Web Sites' folder in Documents. Paste it into the 'inetpub' directory on the server.
Now open IIS Manager, on the left hand side in the connections pane, right click on 'Sites' and 'Add Web Site'. Choose a name, select the default AppPool, browser to the 'inetpub' directory and select your site's folder, set a port that doesn't conflict with any other sites running, and click OK.
On the right hand pane, click browse, you should be able to see your new website.

Visual Studio 2012 ClickOnce publishing default webpage

I am publishing applications to my website using the ClickOnce publishing tool within Visual Studio 2012, which publishes the webpage which checks for prerequisites and then downloads the application. However, this is formatted completely differently to my website.
Is there a way I can pass Visual Studio a template of some sort which it can use to create the webpages, as otherwise I have to go through and manually change all of the stylings for every application/update I publish. I know I can use an external CSS file to do this, but the webpages are created with inline styling, which was causing problems with the way it was laid out when I tried this last night.
I found this from http://msdn.microsoft.com/en-us/library/k5befhe3.aspx:
To customize the publish Web page
1.
Publish your ClickOnce application to a Web location. For more information, see How to: Publish a ClickOnce Application using the Publish Wizard.
2.
On the Web server, open the Publish.htm file in Visual Web Designer or another HTML editor.
3.
Customize the page as desired and save it.
4.
Optional. To prevent Visual Studio from overwriting your customized publish Web page, uncheck Automatically generate deployment web page after every publish in the Publish Options dialog box. For more information, see Publish Options Dialog Box.
Which means I would have to change each page manually. Does anyone know of a way to pass a template in for VS to use, or is each webpage created on the fly when I click publish?
Thanks
Optional. To prevent Visual Studio from overwriting your customized publish Web page,
uncheck Automatically generate deployment web page after every publish in the Publish
Options dialog box. For more information, see Publish Options Dialog Box.
This is what you want to do, I guess?

Is it possible to use ASP.NET Web Control into a Webpart project?

I'm developing a webpart in Visual Studio 2010 for SharePoint 2010, and I would like to know if I could add a web control I've already developed for a web application in the past.
When I try to add a new item into the project, I only see the option for adding a Server Control, but it only creates a .cs file instead of a control.
Yes, but you will have to make sure that it's strong-named and can be placed into the server's Global Assembly Cache as that is where all web parts are deployed to. Additionally, if it's not a visual web part, you'll have to create it dynamically in code instead of having a drag and drop surface like a normal ASP.NET application.
Generally speaking, it's not too much different than using a server control in a normal ASP.NET application.
EDIT:
To add a custom server control to your application, you can right click inside the toolbox and select "Choose Items...". You can then browse to your custom assembly containing the server control and click OK. After that, it will appear in your toolbox and you can just drag and drop it onto your visual ascx web part.