Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...getting error 404 in service frameworkgetting error 404 in service framework
Previous
 
Next
New Post
6/30/2012 4:39 PM
 
Today I had to face this problem, with a module getting a 404 error while making a call to a controller in a module, that worked well on my development environment but not on an instance on Azure. If I called to the module method (that only had the HttpPost verb enabled) directly through the browser, what I noticed is that the 404 errors were "different" depending on the environment: one returned by IIS, not managed, a blue-white-red screen -this is where my module didn't work-, and one returned by ASP.net, managed, the typical 404 ASP.net message.

I was using the latest DNN 6.2 release, using the same 4.0 pipeline mode in the pool, the same file contents (including web.config and bin folders, etc.) so my first thought was that some assembly dependency was missing on the Azure instance. I installed MVC 2 runtime on Azure to test for a solution, without success. Installed MVC 3, with the same results.


To simplify the problem I built the "HelloWorldService" described on this Scott S. post (http://www.dotnetnuke.com/Resources/Blogs/EntryId/3327/Getting-Started-with-DotNetNuke-Services-Framework.aspx). On Dev environment I saw the "HelloWorld!" message, on Azure didn't, the same 404 IIS not managed message. Seems that by some reason the router was not being registered.

My surprise was that after installing the same "HelloWorldService" on other identical deployment on Azure, it worked. The only difference was the OS Family="1" (this is Windows Server 2008) and OS Family="2" (this is Windows Server 2008 R2). On the second one worked well.

After redeploying the device using OS Family="2", the problem dissapeared. I still think that is a dependency problem that is installed on 2008 R2 but not on 2008, not sure which one is.

I will create the issue on Gemini for further investigation.

David Rodriguez
DNN Cloud Team Lead Engineer | Microsoft Azure MVP | Microsoft Azure Insider / Advisor

 
New Post
7/13/2012 5:53 AM
 

Hi I have the same problem.

On a new installation the HelloWorldService work well, but in a Old version with a lot of upgrade and now at the 6.2.1 version HelloWorldService call return 404 error

I think that the problem is that the system don't know the MVC call and think that it is a path and return 404

Can you help me?

thanks

Fabio

URL richiesto http://www.xxx.fab:80/Desktopmodules/MyServices/API/Welcome/HelloWorld?test=xxx
Percorso fisico C:\archivi_web\www.xxx.com\www\Desktopmodules\MyServices\API\Welcome\HelloWorld
Metodo di accesso Forms
Utente accesso host

Modulo IIS Web Core
Notifica MapRequestHandler
Gestore StaticFile
Codice errore 0x80070002


 
New Post
7/13/2012 11:54 AM
 
please make sure you have the following 2 lines in your web.config
< add assembly="System.Web.Abstractions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">< /add>
< add assembly="System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">< /add>
[Moderator edit: added blanks afer < for making lines visible.]

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
9/7/2012 4:38 PM
 

I ran into the 404 error as well for both my local and staging environment. I was testing against DNN 6.2+ and I was following this tutorial by Scott S. http://www.dotnetnuke.com/Resources/B...

For my local machine, I just had to switch my VS 2010 dev web server to IIS express, and it worked.

For my staging environment, I had to modify the web.config file <system.webServer>, <modules> section  to end up like this

<system.webServer>     
	<modules>
<!--<add name="UrlRoutingModule" type="System.Web.Routing.UrlRoutingModule, System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />-->
<remove name="UrlRoutingModule-4.0"></remove>
<add name="UrlRoutingModule-4.0" type="System.Web.Routing.UrlRoutingModule" preCondition="" />

......

Refer to this page: http://blog.tjitjing.com/index.php/20...

I hope this info helps those who might run into the same problem. I spent a lot of hours trying to solve this problem, but really didn't see much on the web. Maybe only a few people are having this issue.

Han

 
New Post
9/19/2012 5:18 AM
 
Han,

Thank you for this web.config change - after I modified the web.config on our test platform as you suggested it all fired into life.

I had had it all working on a purely clean 6.2.3 DNN Install on my local computer - but as you pointed out - it works automatically out of the box using WebMatrix and IIS 7.5 Express on a .net 4.0 pipeline. However on our productions servers (also with DNN 6.2.x running IIS7 and .net 4.0 integrated pipelines) it always returned 404. Now it behaves as expected.

Scott
2ic
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...getting error 404 in service frameworkgetting error 404 in service framework


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out