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 6371657
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:06:29+00:00 2026-05-25T01:06:29+00:00

My simple test application works great off my local IIS server. When I publish

  • 0

My simple test application works great off my local IIS server.
When I publish it my shared hosting environment (discountasp.net), The AJAX call

$("#calendar").fullCalendar({
            eventSources: [{
                url: '/Home/GetCurrentMonth',
                type: 'Get',
                error: function () {
                    alert('there was an error while fetching events!');
                }
            }]

        });

fails. Firebug shows the get arriving with the proper params and gives a ‘404 Not Found’ error. And I can see that the controller method ‘GetCurrentMonth’ is never being called (with some log\audit code I put in).

As everything runs fine on my local IIS server and I can’t connect with IIS7 Manager to the remote site to get a ‘Failed Request Tracing’.. I’m kind of stuck.

If there is no magic web.config setting (oh please!) I would settle for a recommendation of a ‘shared hosting environment’ that supports ASP.NET MVC 3 where FullCalendar works and I’d move the application (my current hosting environment has been way less than helpful).

  • 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-05-25T01:06:30+00:00Added an answer on May 25, 2026 at 1:06 am

    Never hardcode urls as you did. Always use url helpers when generating urls in an ASP.NET MVC application:

    $('#calendar').fullCalendar({
        eventSources: [{
            url: '@Url.Action("GetCurrentMonth", "Home")',
            type: 'GET',
            error: function () {
                alert('there was an error while fetching events!');
            }
        }]
    });
    

    Or if this is in a separate javascript file in which you don’t have access to server side code one possibility is to use for example HTML5 data-* attributes, like this:

    <div id="calendar" data-url="@Url.Action("GetCurrentMonth", "Home")"></div>
    

    and then in your separate javascript file:

    $('#calendar').fullCalendar({
        eventSources: [{
            url: $('#calendar').data('url'),
            type: 'GET',
            error: function () {
                alert('there was an error while fetching events!');
            }
        }]
    });
    

    I bet 50 bucks the reason why your code doesn’t work when you deployed it is because there is a virtual directory appended by IIS. So the correct url is not /Home/GetCurrentMonth but /YourApplicationName/Home/GetCurrentMonth. To avoid all those problems you should always use helpers when generating urls.

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

Sidebar

Related Questions

I'm creating a simple test application so I can see how ASP.Net MVC works
I've uploaded a simple Ruby test application to Cloud Foundry that works on my
I have implemented simple com.sun.net.httpserver.HttpServer application using one of examples in the internet. Server
I have VS2010, MVC3 and ASP.NET 4.0 with a simple test mvc application. The
I have a simple test application (C# console application) that does an HTTP GET
I have made a simple test application for the issue, two winforms each containing
I am writing the test application in Windows Forms. It has a simple form
I have a simple test application where I want to have a clear button
I have a Box2D world which works great. I'm using it in a simple
Folks, I have a simple test application in which I return a string from

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.