简体   繁体   中英

RouteConfig is not declared Error Message in VS2012

I am trying out FriendlyUrls in VS2012. I am using the readme and Hanselman's post as a guide. i added the following to Application Start but VS tells me RouteConfig is not declared.

RouteConfig.RegisterRoutes(RouteTable.Routes)

I have googled but have not found an answer. I have imported system.web.routing. How do I correct this error message

I solved it. The FriendlyUrls Package when installed from the package manager console creates a RouteConfig.cs file in App_Start even if the project is a VBNet project. So just create the equiavlent vbnet file and the erro will go away.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM