Quantcast
Viewing all articles
Browse latest Browse all 2540

New Post: MVC Functions that return a File: OutputStream is not available when a custom TextWriter is used.

Your suggestion is a good one to use Attributed Routes, but it took me sometime to track down the documentation might have an error.
http://docs.composite.net/Functions/MVC/Registering-Functions

It indicates the MapMvcAttributeRoutes() should be added to the "OnBeforeInitialize"; however, doing this at this point won't work. My attributed routes aren't part of the route mapping.

I had to move this call up into the C1 Global.asax method "RegisterRoutes" so C1 would know my Attributed routes were registered.

Now everything is working well with my report downloads using my original controller methods.

Viewing all articles
Browse latest Browse all 2540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>