Posts Tagged csharp

DotNetNuke on Windows 7 & IIS 7.5

There are tons of Forum and Community posts about all these Permission issues when installing the latest version of DotNetNuke, a ASP.Net based, Open Source CMS (Content Management System).

If you are running into this…this is what got me past the install, and past all the permissions issues.

  1. Download and Install the latest version (I installed the Source version so I can modify things and/or build themes (Portals/Skins).
  2. I would also recommend using this Installation Helper Application if you are not too technical, or you just want to make things a lot easier!
  3. After everything is installed, you will run the website either in the browser or from your Visual Studio, either way you will have to run the InstallWizard…and step 2 is where the Permission issues will start.
  4. Go to the web root folder you designated when you installed it, Right Click, Properties –> Security tab –> Edit –> Add (these ‘users’ to the list)
    • IUSR
    • NETWORK SERVICE
    • IIS_IUSRS (yourmachinename\IIS_IUSRS)
    • DefaultAppPool (you’ll have to find it by typing in “IIS AppPool\DefaultAppPool”)
  5. Make sure you grant Full Control to the Application in the Web.config and if you want to even to the AppPool Identity
  6. If you still get the “your site failed permissions check” error after all this, you will need to go to IIS Management Tool –> Your Website –> .Net Trust Levels and change the Trust Level to Full.

I hope this clears some things up. I spent two days trying to get a local installation and everything I tried was failing…until the last step above.

Please let me know if this works for you, or if you did something else to get past some of the Permission errors.

, , , , , , ,

No Comments

MS Report Viewer Toolbar

I was working on a Web Application that required the use of Microsoft’s Reporting and Report Viewer. I have been use to using these together on a Windows Application and never had any issues with the Reports or the Report Viewer. But, come to find out, the Report Viewer Toolbar does not render properly on IIS 7.0. What’s even more silly is that when you are developing locally it renders just fine (I was using Visual Studio 2008). Nothing worked when I deployed/published to the web server:

< rsweb:ReportViewer ID="ReportViewer1" runat="server" AsyncRendering="False" Width="750px">
< /rsweb:ReportViewer>

Yep, images were missing from the toolbar as well as nothing really working at all. The toolbar uses images and JavaScript that is generated dynamically, using a call to “Reserved.ReportViewerWebControl.axd”. This is usually already completed for you when you add the control, and adds necessary references to your config files. You will usually find this:

< system.web >
  < httpHandlers >
  < add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false"/ >
  < /httpHandlers >
< /system.web >

One thing that has been left off the auto generate is something Microsoft messed up in the switch to IIS 7.0 from IIS 6.0 and you have to remember for this Report Viewer to also add manually:

< system.webServer >
    < handlers >
    < add name="ReportViewerWebControl" path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/ >
    < /handlers >
< /system.webServer >

IIS 7.0 will now understand that whenever a call is made to ReportViewerWebControl.axd it needs to route it to the Http Handler Microsoft.Reporting.WebForms.HttpHandler

, , , , ,

No Comments

Telerik RadChart vs MSChart (Microsoft)

We had a very large project that required some pretty intense charting of data…coming from an Oil and Gas company. So, you can only imagine the amount of data we had to massage and chart in some way, shape, or form.

We used a very nice set of controls for this project in Telerik. They are by far my favorite set of proprietary controls for the .NET Framework. The project was heavily built around these controls so it was only natural to want to keep with them. One problem…98% of the charts had to be Logarithmic. If you are not familiar with this…its when a charts Y Axis is equally spaced with labels dramatically increased (1, 10, 100, 1000, so on) instead of your normal Linear charting (1, 2, 3, 4, etc).

This presented a problem because the Telerik RadChart did not represent the logarithmic minor ticks and lines properly. They didn’t increase and scale the way they were suppose to. It’s hard to explain in words, so here is a screenshot:

The image above still shows a Linear scale even though it’s actually Logarithmic. Well, I searched all over the internet to see if this was just a bug in the Telerik RadChart control or if I was just doing something wrong. Turns out, Telerik knows (recently) about this issue and it has been logged. I added a reply to that thread (in the link) asking if there was any update on the issue…and as you can read there…they said they were not going to fix this. They did offer a workaround though…and here is a screenshot:

What they said to do was just remove the Minor Grid Lines and Ticks from the chart. Well, I had already done that as a temporary fix, but if you know anything about the oil and gas industry then you know how sensitive and important the data is. So, when we are charting their data it is very important to be as precise as possible. The minor grid lines were very important. (BTW, this is just test data in the images, so don’t worry about any issues about showing the clients stuff).

I did some more digging and searching because I really didn’t want to spend too much more time and/or money on this Charting need. I was very lucky too. I came across Microsoft’s latest Charting Controls (add-on to Visual Studio 2008). What’s even better is that as of VS 2010 and .NET Framework 4 it will be already incorporated so there won’t be any installation needed. It did take me about a day to configure, get the data bound to it, make it pretty, etc…but this was the solution I ended up using. And, it turned out to be a lot better…and much more visually appealing. Here is the final:

My only other option would have been some Flash solution or Silverlight. And if you know me very well, you know that I HATE Flash and/or Silverlight. This is one time I can say Hurray for Microsoft this time.

, , , , ,

1 Comment