Comments (3)
Thanks @mmsaffari for reporting this issue, I tried to reproduce it but I didn't get any exception.
Can you please share the steps/startup settings you did to see the exception?
from expresslocalization.
Hello Ziya :)
When creating an MVC project, if "enable Razor runtime compilation" is checked, but services.AddRazorPages();
is not included in the ConfigureServices(IServiceCollection services)
, the exception will be thrown.
PS: A normal MVC project (without that feature enabled) does not throw this exception, exactly as you have mentioned.
from expresslocalization.
@mmsaffari thanks for the details, just confirmed the issue.
With reference to your offered solution I managed to solve it with null checker :)
x.Conventions?.Add(new RouteTemplateModelConvention());
I'll do my tests to check if there is any undesired behavior with this solution bedore publishing the fix.
from expresslocalization.
Related Issues (20)
- Roadmap HOT 2
- DefaultRequestCulture not working when change to non-en culture in 3.1.3 HOT 3
- Can we create custom DataAnnotations to avoid re-typing ErrorMessage in every attribute HOT 1
- Case sensitivity mismatch HOT 2
- Null pointer exception HOT 5
- Change culture along with Area and extra parameter HOT 6
- Language Selection Dropdown not Working HOT 4
- Missing ExRequiredAttributeAdapter HOT 3
- RoutePatternException HOT 8
- DataAnnotation messages not being translated HOT 2
- Retrieve Value from .resx file HOT 6
- Problem with ExpressValidationAttributeAdapterProvider HOT 7
- ExRange unexpected behavior as Required HOT 3
- ExpressLocalizationCore3 Field Validation Issue HOT 2
- Culture is not supported HOT 9
- Null Reference Error HOT 4
- Urls without language tag does not work. HOT 2
- Localization with query string HOT 3
- Breaking change in MS.NET.Test.Sdk HOT 5
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 expresslocalization.