Comments (8)
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 Foundi 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.
wow,
amazing fast response, i am using 1.3.1
thank you
from attributerouting.
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.
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.
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.
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.
sure mate :) i will try to work a sample in this weekend
thanks alot again
from attributerouting.
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)
- Controller level attributes not being applied when using configuration.AddRoutesFromAssembly
- Same route with different Http Verbs does not work HOT 1
- Routes are not registering HOT 1
- Attribute Routing does not work after deloyment
- how to store subdomain each RouteValues?
- Bug: Route Name + Translation Key = Duplicate Keys
- MVC 5 incorporated? HOT 4
- Need help configuring subdomain area
- Integration with WebApi2?
- Route For Sitemap.xml Not Working in Production
- Poor handling of malformed route - Index was outside the bounds of the array.
- Unhelpful exception
- Custom Translator HOT 1
- Custom Route Translation and UiCulture Constraint
- Doesn't work with New Relic installed on server
- "vjscor" Missing
- "Site disabled · GitHub Pages" when loading attributerouting.net HOT 4
- Nuget.org missing most recent versions HOT 1
- Got System.NullReferenceException on routes.MapHttpAttributeRoutes(); HOT 1
- Security Risk: Incorrect URL Validation using Incomplete RegEx parsing/validation logic in `StringExtensions.cs`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from attributerouting.