Code Monkey home page Code Monkey logo

Comments (8)

mccalltd avatar mccalltd commented on September 18, 2024

Buggers! I'm not sure why this is happening. So I suggest using the workaround you discovered until I can fix things. Sorry for the inconvenience! Also, ensure you are using v1.3.1., as 1.3.0. had a problem in it.

Thanks for reporting the issue.

On Dec 15, 2011, at 1:16 PM, devmondo wrote:

Hi,

awesome library, that i cant work without it anymore, thanks so much for you for giving us such a tool to ease up our lives.

i had my site working fine up until i upgraded to your latest build, now i get
HTTP 404 Not Found

i have made a test by disabling the route attribute temporarily and use normal ASP MVC routing and it is working, so my code is fine.

now i dug a little deeper and found out that if i remove registration to global.asax.cs everything works fine again, so the problem is in the App_Start file that you provide

here is my code in the appstart

[assembly: WebActivator.PreApplicationStartMethod(typeof(MyWebApplication.App_Start.AttributeRouting), "Start")]

namespace Syrianmartyrs.App_Start
{
public static class AttributeRouting
{
public static void RegisterRoutes(RouteCollection routes)
{

      routes.MapAttributeRoutes(config =>
      {
          config.ScanAssembly(Assembly.GetExecutingAssembly());
          config.UseLowercaseRoutes = true;
          config.AddRoutesFromControllersOfType<AdminController>();
      });
  }

  public static void Start()
  {
      RegisterRoutes(RouteTable.Routes);
  }

}
}


Reply to this email directly or view it on GitHub:
#29

from attributerouting.

devmondo avatar devmondo commented on September 18, 2024

wow,
amazing fast response, i am using 1.3.1

thank you

from attributerouting.

devmondo avatar devmondo commented on September 18, 2024

Hi again,

i confirm that when you add any other Nuget Package, it also stops working

now it is not working at all neither from appstart or global.asax.cs

and i get
HTTP 500 Internal Server Error

update:
i have found out the cause

when i delete

from <system.web>
the site works fine
i am using
asp mvc 3
iis7
.Net 4
Integrated mode.

what do you think is causing this?

from attributerouting.

mccalltd avatar mccalltd commented on September 18, 2024

That's very strange. I am using 1.3.1 right now at this very moment in a project with lots of nugget package changes since adding AR, and have no problems. Could you please send me a private message with a sample project? That would help me with recreating, cause it sounds wacky!

t

On Dec 15, 2011, at 2:03 PM, devmondo wrote:

Hi again,

i confirm that when you add any other Nuget Package, it also stops working

now it is not working at all neither from appstart or global.asax.cs


Reply to this email directly or view it on GitHub:
#29 (comment)

from attributerouting.

devmondo avatar devmondo commented on September 18, 2024

hi again,
thanks for the fast reply,
it is a big confidential project, and i think i will get fired if i send something :)
but i will try to create a sample project for you, again thanks alot for the speedy reply

from attributerouting.

mccalltd avatar mccalltd commented on September 18, 2024

I don't want anything confidential!

:)

On Dec 15, 2011, at 2:24 PM, devmondo wrote:

hi again,
thanks for the fast reply,
it is a big confidential project, and i think i will get fired if i send something :)
but i will try to create a sample project for you, again thanks alot for the speedy reply


Reply to this email directly or view it on GitHub:
#29 (comment)

from attributerouting.

devmondo avatar devmondo commented on September 18, 2024

sure mate :) i will try to work a sample in this weekend

thanks alot again

from attributerouting.

devmondo avatar devmondo commented on September 18, 2024

hi again man,

i have created another project, and everything seems fine even after adding nuget Package, i am suspecting Git source control is causing me the trouble.

i will dig more before i waste your time and see if anything comes up.

thanks again

from attributerouting.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.