This project has moved. For the latest updates, please go here.

404 on new server

Mar 13, 2012 at 9:22 PM

I'm using ASP.Net MVC3, and the latest version of doddlereports.

I had a project that was working fine under IIS6. We recently built a brand new server running IIS7 and moved the application. Now the app throws a 404 error.

If I go to the controller with out an extension (.pdf, .xlsx) the report renders in the browser. If I add an extension I immediately receive a 404.

Any help would be appreciated.

Thank you.

Coordinator
Mar 14, 2012 at 8:33 PM

I'm afraid I would need more info to help debug this. Can you download the sample app from the source and put it in IIS7 and see if it works? That may help you narrow the problem down

Mar 15, 2012 at 12:11 AM

try this one:

http://new.arbellentheos.com.ar/

thanks!

Mar 20, 2012 at 3:10 PM

The sample responds with the same error. The controller isn't even hit when I use an extension.

Mar 20, 2012 at 6:35 PM

I finally got it working. I had to rebuild my web.config file. Apparently something I had altered in my web.config so MVC would work under IIS6 was causing the 404.

Mar 20, 2012 at 10:35 PM

can you paste your web.config please?

Mar 20, 2012 at 11:06 PM

i have the same problem using mvc 4 beta :(

Coordinator
Aug 1, 2012 at 4:15 AM

Keep in mind you need to call the extension method

routes.MapReportingRoute(); 

at the top of your MVC RouteConfig. It needs to be one of the first routes in the list so that it occurs before your other routes.

Oct 27, 2012 at 1:48 AM

Similar problem here.

My Doddle report is working fine in my development machine using IIS7.5 but when I moved my application to a web server using IIS7 I'm getting 404s.  

This works in IIS7.5:  /Reports/FinanceDetailReport.xls?startDate=2012-10-01&endDate=2012-10-31, but I get a 404 in IIS7.5.

In IIS7.5, I tried /Reports/FinanceDetailReport?ReportType=Excel&startDate=2012-10-01&endDate=2012-10-31 and my MVC controller seems to be getting hit but it's returning just html and not an Excel file.

Would this be a configuration issue with IIS?

Thanks in advance for any help.

Oct 29, 2012 at 5:49 PM

Found the cause of the error.

It appears that my report is not being built because of null values in my data.  Some columns in the new database contained null values. 

I re-wrote my query by adding conditional operators to check for null values and supplying non-null values if they're null.  And that fixed the problem.

The problem therefore had nothing to do with IIS.

Nov 28, 2012 at 9:19 AM
Edited Nov 28, 2012 at 9:19 AM

same problem with MVC4 and vs2012 with package nugetted.

to RouteConfig.cs added line 

 

public static void RegisterRoutes(RouteCollection routes) {
	// Add using DoddleReport.Web;
	// put this line at the _top_ of your route configuration
	routes.MapReportingRoute();
Dec 12, 2012 at 11:21 PM
Edited Dec 12, 2012 at 11:21 PM

I found the solution for MVC4 - vs2012

You need to add under the system.webServer in the web config this configuration:

 

<modules runAllManagedModulesForAllRequests="true" ></modules>
Dec 13, 2012 at 7:55 AM
kedem wrote:

I found the solution for MVC4 - vs2012

You need to add under the system.webServer in the web config this configuration:

 

<modules runAllManagedModulesForAllRequests="true" ></modules>

thats great. work for me :)