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.
I had this problem when I created a new VS2010 solution and dragged in an existing website. To solve it right click on the project and 'Convert to Web Application' which will create designer files and fix the intellisense problems.