Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8692833
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T00:24:10+00:00 2026-06-13T00:24:10+00:00

I’ve created a asp webapi for my application to connect with DB. While developing

  • 0

I’ve created a asp webapi for my application to connect with DB. While developing on localhost everything is working fine. But after publishing nothing is working beside main page. It looks like my routing isn’t working after publishing

public class RouteConfig
{
    public static void RegisterRoutes(RouteCollection routes)
    {
        routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

        routes.MapHttpRoute(
            name: "DefaultApi",
            routeTemplate: "sd/{controller}/{action}"
        );

        routes.MapHttpRoute(
            name: "ParamApi",
            routeTemplate: "sd/{controller}/{action}/{param}",
            defaults: new { param = RouteParameter.Optional }
        );

        routes.MapHttpRoute(
            name: "GuestApi",
            routeTemplate: "sd/{controller}/{action}/{username}/{password}/",
            defaults: new
            {
                username = UrlParameter.Optional,
                password = UrlParameter.Optional
            }
        );

        routes.MapHttpRoute(
            name: "BriefcasePutApi",
            routeTemplate: "sd/{controller}/{action}/{id}/{value}/{owner}",
            defaults: new { 
                id = RouteParameter.Optional,
                value = RouteParameter.Optional,
                owner = RouteParameter.Optional
            }
        );

        routes.MapRoute(
            name: "Default",
            url: "{controller}/{action}/{id}",
            defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
        );
    }
}

Only thing that is working after publishing is route with name Default. None from the rest isn’t. I get error like this:

Server Error in '/' Application.

Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.\r\n

 Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".`

I get this error when I invoke url like: http://domain.com/sd/content/get

On my localhost it works perfectly fine but not on azure after publishing

I might be wrong about that it is problem of routing but I don’t know where else I could look.

I’ve created project in .NET 4.5 but after then I’ve found that I can’t yet use it on azure so I’ve converted it to 4.0

UPDATE
Ok. After quick check with controller I get blank page. No error :/

The check is that my action returns int number “2”. So I know that problem isn’t caused by some code in action. But now I get no error, no nothing. Just blank page

Strange thing: Firefox returns blank page but Internet Explorer returns Error 500


ANSWER BELOW

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T00:24:11+00:00Added an answer on June 13, 2026 at 12:24 am

    I Found the problem !

    I’ve backrolled from .NET 4.5 to .NET 4.0 but Entity Framework didn’t backrolled from 5.0 to 4.3.1 so I had to manualy uninstall v 5.0 and then from NuGet I had to install the 4.3.1. After that everything started to work !!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
This could be a duplicate question, but I have no idea what search terms
Seemingly simple, but I cannot find anything relevant on the web. What is the
I want to construct a data frame in an Rcpp function, but when I
I'm working with an upstream system that sometimes sends me text destined for HTML/XML

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.