Localization :: Error: Cannot Resolve Symbol DesignTimeResourceProviderFactory
Nov 13, 2010
This is a head-scratcher. I've got two projects open. In one of them I have no trouble incorporating DesignTimeResourceProviderFactory but in the second project I get the above error. Adding using System.Web.UI.Design does no good; "Design" is red and the rest is grayed out. No problem importing System.Web.UI though.
View 1 Replies
Similar Messages:
Jan 19, 2010
I am currently localizing my MVC website, using the Html.Encode method.
I've got a global resouce named "Localization" and using it by e.g. <%= Html.Encode(Resources.Localization.FirstName) %>
When compiled and viewing in the browser it works perfectly, but in VS 2008 Development Edition it marks it red and displays Cannot resolve symbol 'Resources' when hovering it.
View 3 Replies
Apr 4, 2011
Using VS2008 and R# 5 I'm running into an odd situation, where on an aspx page I keep getting
Cannot resolve symbol 'symbolname'
But the code compiles and runs fine. While having a fix for this would be great, I'm just trying to figure out if I'm losing my mind.
The CodeFile directive and Inherits directives are fine. If I compile the app or just let devenv sit for a bit it'll go away, but as soon as I save the aspx [via ctrl+s] R# suddenly has trouble with the Inherits attribute and flips out on every method in the page (OnClick etc).
// Anonymized of course but otherwise intact
<%@ Page AutoEventWireup="true" CodeFile="TestPage.aspx.cs" Inherits="TestPage" Language="C#" MasterPageFile="~/MasterPage.master" Title="Test Page Title" %>
This is mostly just a grievance, because since the code compiles it doesn't stop me from doing what I need.
I would post a bug report to the JetBrains site but first I would like to know I'm not alone. It could be my machine. Maybe when I roll to VS2010 in a couple weeks this will go away?
View 1 Replies
May 2, 2010
I was working with the previous version of the AjaxControlToolkit (I had the source project in my solution, just in case I needed to debug something) and everything worked ok, now I've downloaded the lastest build (40412) and I've choosen to remove that project and only use the binaries (of 40412). I added this line in the web.config (inside <controls>) to have it prepared for all the pages, and avoid the need to use the @register in each one of them <add namespace="AjaxControlToolkit" assembly="AjaxControlToolkit" tagPrefix="ajaxtoolkit"/>
Now, only have the binaries I think I should used
<add tagPrefix="ajaxToolkit" namespace="AjaxControlToolkit" assembly="AjaxControlToolkit, Version=3.5.40412.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
and inside <assemblies> this line
<add assembly="AjaxControlToolkit, Version=3.5.40412.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e"/>
I don't know what should I write as PublicKeyToken, I'm getting Cannot resolve symbol 'AjaxControlToolkit' and, of course, my UserControls that use the AjaxControlToolkit are giving me error.
View 13 Replies
Apr 4, 2011
I just installed SP1 for VS2010, and since then I get error messages from Resharper for stuff that used to work and be ok for Resharper (5.1) before.
The error messages are "Cannot resolve symbol 'Eval'" and some other methods other than Eval.
How do I solve this?
Is there a fix?
Is there some resharper cache that I must delete/clear?
(The code compiles and runs as usual)
View 2 Replies
Jan 30, 2010
I have a site in ASP.NET using Telerik AJAX controls.Despite the latest binary being added to the website project, my code (eg myRadGrid.Datasource = "";) shows a red line on type names as they cannot be found for some reason.possibly explain why or have experience in this sort of problem?
View 2 Replies
Apr 10, 2010
I used the culture in my project. i want currency format only. i dont' want to shows the currency symbol.
View 3 Replies
Mar 15, 2010
I'm trying to create an XmlReader class instance to read an xml file. However I pass it a url for the xml file but it isn't resolved. what do I have to do to get the proper url?
[Code]....
View 6 Replies
Feb 8, 2011
If a user enters "<" or if it already exists in a textbox inside an update panel, I am getting "internal server error 500" during post back. I believe the page suspects a HTML injection and is attempting to stop it. I could use Page.EnableEventValidation to avoid it but I really don't want to do that. Is there any other way, I could resolve it (like replace < with > or something like that)?
Update:
This is happening in a textbox inside a gridView.
[Code]....
View 2 Replies
Jan 31, 2011
I have one text box control on aspx page in my .net application.
and in code behind on page load event i wrote:
txt.Text = "Sample"
Now if build website on system [ windows XP ] it build properly but on system [ Windows 7 Enterprise ] it showing following error:
" Name 'txt' is not declared "
What would be the reason.Is that environment specific problem.I am using VS 2008.
View 1 Replies
Jul 29, 2010
Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).
I am using it in Gridview's EditTemplate Field to show color with ajax 3.5
This is my master page hierarchy
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="Outer.master.cs" Inherits="Home" %>
<%@ Master Language="C#" MasterPageFile="~/Outer.master" AutoEventWireup="true" CodeFile="FullMid.master.cs" Inherits="FullMid" %>
<%@ Page Title="" Language="C#" MasterPageFile="~/FullMid.master" AutoEventWireup="true" CodeFile="StatusRoomMaster.aspx.cs" Inherits="StatusRoomMaster" %>
Page where I am getting error
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<EditItemTemplate>
<asp:TextBox ID="txtColorCode" runat="server" Text='<%# Bind("ColorCode") %>'></asp:TextBox> [code]....
I am using it under masterpage's -> masterpage's -> page
<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
</asp:ToolkitScriptManager>
I am using this in outer.master and no update panel has been used.
View 1 Replies
Feb 23, 2011
I'm Using Ajax Accordion i want Collapsed Panes Start with "+" Symbol and When It Expanded Change That Symbol to "-" When Collapsed Again Start with + .... and Continue like that...
Note : I'm Using Header Tempalte and Content Template and Pass Data Source to it.
View 5 Replies
Sep 2, 2010
I have looked at nearly every single WCF Rest PUT/POST issues on SO here and have still been unable to determine why I am unable to PUT or POST to my web service but am able to call a test GetTime method via GET. This particular service exchanges custom credential information (username, password and some other information) for a token. This token information is encrypted and added to the header of subsequent requests to other web services so that username/passwords don't have to be passed around everywhere. All web service calls are still treated as stateless, but require this auth header information rather username/passwords to access secured service operations.
[Code]....
I have also checked in IIS 7 the handler mappings for *.svc and checked that 'all verbs' are enabled.
View 1 Replies
Feb 17, 2010
I have a problem with server-side validation in xVal. I'm using the RequiredAttribute from DataAnnotations.
I would like to change error message from:
The field is required.
to:
Polje je obvezno.
My current solution is this: [Required(ErrorMessage = "Polje je obvezno.")]
But I was wondering if it's possible just to write [Required] and to override error message in one place? (like there is a localization file for client-side validation in xVal)
View 2 Replies
Mar 25, 2010
I have a bunch of literals that try to get their info from a resource. I want the page to show Dutch automatically and english by use of a url parameter (?lang=en)
[Code]....
I keep getting a " System.InvalidOperationException: The resource class for this page was not found. Please check if the resource file exists and try again."My web.config looks like <globalization uiCulture="auto:nl" culture="auto:nl-BE"/>In Literal1 I use Resources:Voorstelling.aspx.nl-BE, bevord.Text . Is this correct?The resources are named "Voorstelling.aspx.nl-BE.resx" and "Voorstelling.aspx.en-GB.resx". There are copies of it in the root and in App_LocalResources. They are also compiled form in ../bin/site.dll, in ../bin/en-GB and in ../bin/nl-BE . Where should I save my resources?At this moment I want my page to recognize the resources without using InitializeCulture() or any fancy stuff.Is this possible?This problem has been bugging me for 2 days already. I tried iisreset /stop and /start.
View 5 Replies
Mar 11, 2010
I'm creating a multi-language web site using ASP.NET and Framework 3.5. So far no login required. Everything has been working fine. But when I update my windows 7 and software and compile the site the follow error appear
Server Error in '/' Application.
Compilation Error
Description:
An error occurred during the compilation of a resource required to service this request. review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC30554: 'ProfileCommon' is ambiguous.
This are my codes:
web.config
<connectionStrings>
</connectionStrings>
<system.net>
<mailSettings>
<smtp from="[URL]">
<network host="[URL]" port="587" />
</smtp>
</mailSettings>
</system.net>
<system.web>
<anonymousIdentification enabled="true"/>
<authorization>
<allow users="*" />
</authorization>
<!--profile inherits="System.Web.Profile.ProfileBase"-->
<profile defaultProvider="AspNetSqlProfileProvider" inherits="System.Web.Profile.ProfileBase">
<properties>
<add name="UICulture" allowAnonymous="true" defaultValue="es-PR"/>
<add name="Culture" allowAnonymous="true" defaultValue="es-PR" />
<add name="PreferredCulture" allowAnonymous="true" defaultValue="es-PR"/>
</properties>
</profile>
<globalization culture="es-ES" uiCulture="es-ES"/>
<!--
Set compilation debug="true" to insert debugging symbols into the compiled page. Because this affects performance, set this value to true only during development.
-->
<compilation debug="true">
<assemblies>
<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</assemblies>
</compilation>
<!--
The <authentication> section enables configuration of the security authentication mode used by ASP.NET to identify an incoming user.
-->
<authentication mode="Windows"/>
default.aspx
<script runat="server">
Protected Overrides Sub InitializeCulture()
Dim CurrentContext As HttpContext = HttpContext.Current
Dim UserCulture As String = CurrentContext.Profile.GetPropertyValue("PreferredCulture").ToString()
If UserCulture <> "" Then
Thread.CurrentThread.CurrentUICulture = New CultureInfo(UserCulture)
Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(UserCulture)
End If
End Sub
Private Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Load
If Not IsPostBack Or CStr(Session("CultureName")) <> CultureInfo.CurrentCulture.Name Then
Session("CultureName") = CultureInfo.CurrentCulture.Name
End If
End Sub 'Page_Load
Protected Sub SetLanguage(ByVal sender As Object, ByVal e As EventArgs)
'Save selected user language in profile
Profile.SetPropertyValue("PreferredCulture", "es-PR")
'Force re-initialization of the page to fire InitializeCulture()
Response.Redirect(Request.Url.LocalPath)
End Sub
Protected Sub SetLanguageEn(ByVal sender As Object, ByVal e As EventArgs)
'Save selected user language in profile
Profile.SetPropertyValue("PreferredCulture", "en")
'Force re-initialization of the page to fire InitializeCulture()
Response.Redirect(Request.Url.LocalPath)
End Sub
</script>
If I run the olds files with the precompiled file this work.
View 1 Replies
May 13, 2010
I have a problem regarding writing local language in TextBox. I am using "google transliteration" for writing text in TextBox control. It works fine. But the problem is when I put TextBox in CreateUserWizard then it shows me an error messge. I do not understand how to resolve this problem?Have anybody handled such a problem? Please help me regarding this.
View 23 Replies
May 28, 2010
I have an ASP.Net(2.0) website which I have localized based on user's browser settings. So when a user navigates to my website, I check their browser settings and redirect them.Here's the code which I have in global.asax
protected void Session_Start(object sender, EventArgs e)
{
string localeName = ResourceHelper.GetCulture();
string refUrl = HttpContext.Current.Request.Url.ToString();[code]....
My problem is that on google, my 404 error page is being cached and the error page title comes up as the search result.I think because of the way I redirect users, the search crawler gets to the error page instead of the homepage.
View 1 Replies
Jul 15, 2010
I'm making changes to some xxx.resources files on our web server, everytime I try and copy the new file out to the server I keep getting the error:
'the process cannot access the file because it is being used by another process.'
I get this for about 20 minutes or so after I check the web site. Is there another way to update/copy the xxx.resources file on the web server without waiting 20 minutes or so to do so?
View 2 Replies
Mar 19, 2010
Saving resource file at runtime -Access denied error
View 2 Replies
Nov 12, 2010
I am not sure if I have found the right forum for this one.
the problem is:
I have a .licx file in my rootfolder.
I am getting the error:
Error 53 Unable to resolve type ' <add type="TabStrip" version="7.0" />' C:inetpubwwwrootCrop_ApplicationCrop_Applicationeo_web.licx 7 Crop_Application
,which I get for all the types that are in the xml file(i just gave one of them).
A friend told me that I have to add the type .licx in the MIME type in the IIS .
The problem is that I find the MIME type, I add the extension type .licx but I do not know the MIME type for .licx
View 1 Replies
May 18, 2010
how can i convert string written in eng to hindi. For label i know, is there any why to convert string.
View 4 Replies
Mar 27, 2011
The URL link below will open a new Google mail window. The problem I have is that Google replaces all the plus (+) sign in the email body with blank space. It looks like it only happens with the + sign. ( I am working the ASP.NET web page)
[URL]
(In the body email, "Hi there+Hello there" will show up as "Hi there Hello there")
View 2 Replies
Apr 4, 2011
I have a field that I display via:
String.Format({0:c},amount)
This produces the string "$28.28" However, when I try to convert back to a decimal amount, I get an incorrect format exception:
amount = Decimal.Parse(amount.Text, NumberStyles.Currency)
I also tried it with NumberStyles.AllowCurrencySymbol with the same results. I verified that the value in amount.Text is "$28.28". Am I missing something? Shouldn't these two operations use the same currency symbol and formats?
View 2 Replies
Mar 17, 2011
i want to show a menu in some pages.
the menu is build from db with repeater
[code]....
when i am in "folder/page1.aspx" all the link are ok [URL]. when i'm in a folder "folder/folder2/page1.aspx" the links are [URL]
UPDATED:
i change it to
<a href="<%# VirtualPathUtility.ToAbsolute("~/admin/"+(string)Eval("TD_PageName"))%>"><%# Eval("TD_Name")%></a>
View 2 Replies