Web Forms :: Localization - The Resource Object With Key Msg2 Was Not Found
Aug 21, 2012
I'm trying to implement explicit localization with global resources.I followed the steps mentioned in [URL] .... If I run the page in VS 2005, it works fine, but if i implement the folder structure in IIS webserver is not working.
Im getting Parser error in browser stating. : Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: The resource object with key 'msg2' was not found.
Source Error:
Line 14: <form id="form1" runat="server">
Line 15: <div>Line 16: <asp:Button ID="Button1" runat="server" Text="<%$ Resources:Resource, msg2 %>" /><br />
Line 17: <asp:Label ID="Label1" runat="server" Text="<%$ Resources:Resource, msg1 %>"></asp:Label></div>
Line 18: </form>
Following is the code im using in aspx page.
<%@ Page Language="VB" culture="auto" UICulture="auto"%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>explicit localization</title>
[Code] ....
Not sure what I'm missing
View 1 Replies
Similar Messages:
Jun 9, 2010
i have a very strange error.i get parser error Parser Error Message: The resource object with key 'TopnavHome' was not found.this is the code: [Code]....
BUT, if i do this: [Code]....
View 3 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
Apr 7, 2010
In our web application we need to keep various company's settings. For eg "DiamondProdRefIDCaption","Shippingpickup","ZipCodeCaption","DefaultCountry","AllowToEditInvoice", etcThese settings are different for various companies and are placed in web.config as key-value pair.Initially, we have tried do simplify this process by adding a company_settings table in the DB so as to allow us to add companies on the fly. However, this method makes it very difficult to add a new setting
<%$Resources:DiamondProdRefIDCaption%>
View 3 Replies
Jun 20, 2010
I have a web form in my website folder named login.aspx. After loging in I want to redirect into another webpage called product.aspx which is inside a folder called forms. I receive an error "resource cannot found"
I have Response.Redirect("formsproduct.aspx") and Response.Redirect("forms/product.aspx"). Both doesnt work. What seems to be the right syntax here??.
View 3 Replies
Jun 30, 2010
I am facing problem on integration of fckeditor 2.6.3 with asp.net 3.5.
i added the fckeditor dll into my bin folder and added the fckeditor folder which are extracted from the fckeditor 2.6.3 zipped folder.
when i run the web page it shows the error that resource cannot be found
View 4 Replies
Jan 3, 2010
I start a new web site in vs 2005 I went into IIS 7.5 (I'm ont Windows 7 64bit, .net 2.0) , it is setup as an application and the physical path is correct.I'm connecting using a specific user and password. I have set the solution properties to usehttp://localhost/TestApp/, I set a start page as default.aspx. But when I run debug, I get a server error in application, that the resource couldn't be found.
View 6 Replies
Jan 24, 2016
I try to add a new web api to my .net application and place it on Azure (where all my APIs are).
The new API is getNumbers:
public class GetNumbersController : ApiController
{
[HttpGet]
public List<string> GetNumbers(string planeType)
{
...
} }
For some reason i can't access it. when i type the url [server]/getNumbers i receive:
<Error>
<Message>
No HTTP resource was found that matches the request URI 'http://aeronexus-we.azurewebsites.net/GetTailNumbers'.
</Message>
</Error>
Of course that all my other APIs build the same and are accessible
I even can't see my new API under
[server]/help (where i can see all the others)
Locally I can access my new API
The routes is:
config.Routes.MapHttpRoute(
name: "ActionApi",
routeTemplate: "{controller}/{action}/{id}",
defaults: new {id = RouteParameter.Optional})
View 1 Replies
Oct 21, 2015
I have Following code in Master Page:
with 5 pages in it.
(with 4th and 5th page is inside Admin folder)
No <authorization> are given. all are open to every user.
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
[Code].....
When I run the application, 1st page, second page, 3rd page I get Url on page as:
localhost:2069/TestPage/FirstPage.aspx
localhost:2069/TestPage/SecondPage.aspx
localhost:2069/TestPage/ThirdPage.aspx
theycan be accessible.
also when i click on 4th Page, I get url as:
localhost:2069/TestPage/Admin/FourthPage.aspx
and 4th page will get displayed.But..When i go back to any other page, it will throw an error
"Resource cannot be found"
with URL as:
localhost:2069/TestPage/Admin/ThirdPage.aspx
How to avoid this Error?
View 1 Replies
May 24, 2010
What I want to do is to use the default web resource inside asp.net. For example, If I create a web page with a simple Wizard control and 4 WizardStep ( Start,Step,Finish and Complete) it create a translation of navigation button with the culture of application.
But, for example if i want to create a custom FinishNavigationTemplate I can't (or I don't know how) use the default asp.net transaltion.
How can I use the default asp.net translation (or web resource) for my custom template?
View 2 Replies
Mar 7, 2010
I am facing a big problem.I am using multi language support (English, Punjabi) in my asp.net web application. I pick some data from XML for display into my website. But this lead a problem (only show in one english language), so my question is :-1. How to pick data from resource file and put into XML file??like for asp.net label we pick as Meta:Resource(label1).
View 7 Replies
Nov 1, 2010
I have a resource "myResource" in a resource file called myResourceFile.resxWhen i try to acces the resource in code using : Resources.myResourceFile.myResourceI get the following exception:
"Resources.myResourceFile.myResource
The type 'Resources.myResourceFile' exists in both 'myResourceFile.dll' and 'App_GlobalResources.j3b95g9k.dll'
[code]...
View 1 Replies
Feb 16, 2010
I have a multilanguage application and I use resource files (.resx). I hired a person to make the translation. My question is, am I supposed to give him the resource files in order to make the translation and how he will open the resource files? Obviously, he doesn't have a copy of Visual Studio! Is there any tool that I can give him in order to work with the resource files?
View 2 Replies
Apr 24, 2010
i've got a problem with asp.net routing. My route looks like this:
[Code]....
but if there is a directory with the same name (in my case: "Articles") in my root directory, asp.net routing doesn't work and causes the error: "The resource cannot be found."
View 3 Replies
Dec 4, 2010
I am using the url rewriter described here.
On production, it works great but locally, for any links that uses url rewrite, it says:
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. review the following URL and make sure that it is spelled correctly.
[code]...
View 2 Replies
Feb 21, 2011
I'm using asp.net mvc 2 applications and while clicking on the link,it shows the error as "HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly."The site was deployed in my localhost (IIS 6) web server.For example the link
http://localhost/news/details/My_First_News_title shows the above error but the link
http://localhost/news/index works fine in the browser.And also we added wildcard in IIS configuration and unchecked the "verify file exists options in IIS.
View 15 Replies
Jan 9, 2011
I need my site to be multilingual. So i have added resx to each page. Now the texts been taken from resource depends on chosen culture. Now my customer want to edit some translation from administration panel. Can resources can be edited in runtime? If they are - is it the best choise to do it that way?(Its seems to me strange i didnt see something lake that in any place)?
View 2 Replies
Oct 4, 2010
We are migrating the VB6 applications into VB.NET (2008). They implemented the globalization in the Vb6 application by storing the english strings and corresponding langauage text (italian,spanish or french) in Database(SQL). Now we need to create a resource file in VB.NET(2008) for each language. Instead of creating resource file manually we want to write an application which will create resource file dynamically for each language and copy the english string and correspoding language text value from database into resource file.
SLNo Language English Value
1 English Name Name
2 Italian Name Nome
3 Spanish Name nombre
View 2 Replies
Aug 17, 2010
I have translated Text Ok in arabic and I have that placed in global Navig.resx file
<asp:Button
ID="btnReasonOK"
runat="server"
Text="<%= Resources.Navig.OK%>"
When I run it I see <%= Resources.Navig.OK%> itself.Actually I should get translation of Ok.
View 2 Replies
Oct 28, 2010
In my project i add a reference of one dll and it has some resource files(.resources). Also my project has some resource files with the same language name(Spanish, french and Germany). Also i think we can't add the two resource file for one language. Now how can i mangage both the resource files?
View 1 Replies
Dec 3, 2010
need to bind a resource file using system culture info. Say for example, if my system culture is Spanish(Spain) "es-ES" then i have to look for "es-ES" resource file to bind. If it is not there then i have to bind with default resource file ('en-US"). How to do this?
View 3 Replies
Feb 18, 2010
In our web application we need to keep various company's settings. For eg "Shippingpickup","ZipCodeCaption","DefaultCountry","AllowToEditInvoice", etc
These settings are different for various companies and are placed in web.config as key-value pair.
Initially, we have tried do simplify this process by adding a company_settings table in the DB so as to allow us to add companies on the fly. However, this method makes it very difficult to add a new setting since it would require us to add a column to the company_settings table and thus would require code changes as well as stored procedure changes.
Now we have added separate global resource files for each company's settings. But, whenever we want to add new company to our website, we need to add a new resource file for that company. Adding a resource file requires compilation, and thus the application needs to be restarted. I was wondering if there is a way that we can add a new resource file dynamically at run-time.
Or are resource files not the right thing to use here? Is there a better method of tackling this issue?
View 3 Replies
Mar 17, 2010
I am make website and publish it, i am used different language by Resource.resx and Resource.Ar.resx.
when publish website i see resources files convert to .dll
App_GlobalResources.dll
App_GlobalResources.compiled
AR/App_GlobalResources.resources.dll
i want to make page in administrator to can change value for any key in resources.
how i can search key by value.
then i want to put textbox to change value.
ex:
Key : MSG Value : Message.
i want to change 'Message' Value to 'welcome to visit us' throught website is running.
View 3 Replies
Nov 11, 2010
I am working on a application which supports multiple languages and I am doing it using asp.net resources files. Now the problem is, its a product and each user wants to have their own translations.For Example there is a text say "Home"Some users want to say it "Home Page" and some wants to say "Main Page"
Is there any possibility to do create different resource files, for each users, for each page and then load them according to the user currently logged in?
View 1 Replies
Mar 23, 2010
When developing a rather complex web application that has to be localizable, it can be quite a dawnting task to make even the smallest change like changing a name for an abstract object type.To illustrate the problem, let's assume the user can create objects through our web application called a "FooBar". The web application most probably have numerous resource strings making reference to the object type "FooBar", for example, "Click here to create a new FooBar", or "Delete all the selected FooBars".During or even after the development life cycle of the web application, the owners decide that "FooBar" is not an appropriate name, and would like it to be renamed to "Thingamajic". In the web application there are thousands of references to "FooBar". Now one has to find all and replace them.
View 1 Replies