Since we implemented globalization in our ASP.net website, we are getting some intellisense problems.
When the resource is added to an asp.net control, we receive errors. Even though the error is shown in visual studio, the application works!
For example, the following button
<asp:Button runat="server" ID="BtnSave" Text="<%$ Resources:ResourceName, Save %>" OnClick="BtnSave_Click" />
Is not recognized in the code behind:
The error is only shown when the code behind is open. But in the browser it works!
The same button without the resource reference works well:
<asp:Button runat="server" ID="BtnSave" Text="Save" OnClick="BtnSave_Click" />
This is a custom SQL resource provider factory, added to the web.config:
<globalization resourceProviderFactoryType="MyNamespace.SqlResourceProviderFactory" />
I tried deleting the cache and restarting the computer already.
Do you have any tips on how to find the issue?
Thanks in advance.
There was a problem in our Resource Provider: It was compiling and working on the runtime, but crashing when running without the HTTP context (HttpContext.Current
).
I would advise other people experiencing the same problem to check the classes used in their web.config file for such inconsistencies.