TemplateControl.GetLocalResourceObject(string) Does Not Work On Deploy Server?

Nov 17, 2010

It works under VS 2010 development server, in .aspx file:

<%= GetLocalResourceObject("Title") %>

It does not work under win 2003, iis 6, in .aspx file, after deployment from web setup(.msi):

<%= GetLocalResourceObject("Title") %>

Same .dll, with same resources names in it (e.g. namespance.pagename.aspx.resource). Does not : iis restart, reinstalling, restarting computer. Resourcekey exists in resource file. There is resource in .dll.

The exception message: "System.InvalidOperationException: The resource class for this page was not found. check if the resource file exists and try again."

Control's "meta:resourcekey" does not work too. Here is no exception. Just no text.

View 1 Replies


Similar Messages:

Replace CheckBoxList TemplateControl With Custom UserControl?

Feb 1, 2010

I am trying to create a more detailed item template for the standard CheckBoxList control. It exposes an ITemplate property called TemplateControl but I wasn't able to find a straightforward resource on how to actually use it. Here's the code I have so far:

Protected Overrides Sub OnLoad(ByVal e As System.EventArgs)
MyBase.OnLoad(e)
Dim items As New List(Of ListItem)
items.Add(New ListItem() With {.Text = "A", .Value = "1"})
items.Add(New ListItem() With {.Text = "B", .Value = "2"})
items.Add(New ListItem() With {.Text = "C", .Value = "3"})
Dim lst As New CheckBoxList()
Dim tpl As ITemplate = LoadTemplate("~/CustomListItem.ascx")
Dim g As New TemplateControlWrapper()
tpl.InstantiateIn(g)
lst.TemplateControl = g
lst.DataSource = items
lst.DataBind()
Form.Controls.Add(lst)
End Sub
Class TemplateControlWrapper
Inherits UserControl
End Class

It seems to be ignoring the TemplateControl property completely.

View 2 Replies

Cannot Use GetLocalResourceObject Inside InstantiateIn?

Oct 12, 2010

I'd like to localize my aspx-page.This should include dynamically created LinkButtons in a GridView inside of InstantiateIN

(amendment 1: implementation of the System.Web.UI.ITemplate.InstantiateIN method to manipulate the appearance of a GridView)

(amendment 2: first six lines of code added to better indicate location of other code)

But inside InstantiateIN I cannot use (see) the method GetLocalResourceObject

Solution: use a Session-Variable

Question: Why can't I use GetLocalResourceObject inside InstantiateIN? the following happens inside InstantiateIN

public class DynamicTemplateGridViewSearch : ITemplate
{
public void InstantiateIn(System.Web.UI.Control Container) [code]....

View 1 Replies

Missing Connection String On Deploy?

Mar 23, 2011

I built a prototype I'm looking to deploy. It uses a database file MySite.mdf that I created. At some point in the process, the database file ASPNETDB.mdf was added to the project.

When I look at the web.config file, I see the connectionStrings tag but in there I only see the nested tag for MySite.

Now that I'm looking to deploy, what do I put for the second file in the tag.

View 1 Replies

Web Forms :: HttpContext.GetLocalResourceObject() Throws InvalidOperationException

Jun 12, 2010

Let's say we have such site structure:

App_LocalResources
|- A.aspx.resx
|- B.aspx.resx
A.aspx
B.aspx

Now I use HttpContext.GetLocalResourceObject("~/A.aspx") in A.aspx.cs, and it works fine. But if I use HttpContext.GetLocalResourceObject("~/A.aspx")
in B.aspx.cs, it throws an exception:

The resource class for this page was not found. Please check if the resource file exists and try again.

Exception Details: System.InvalidOperationException: The resource class for this page was not found. Please check if the resource file exists and try again.

I want to read the local resources from an external page, and I don't want to read the .resx file myself.

In my case, there're some "data.xml" files(they are in different directories, and have elements like [Code].... and the contents of them will be rendered as html.

But the key names in the data.xml should be localized before rendering (different data.xml contain different keys).

For example, the data.xml has such an element:
[Code]....
"
in the [Code].... folder, then use the [Code].... for each data.xml to retrieve the localized key names. That way Idon't need to read the xml myself. Is it possible?

P.S. This is a post I posted in stackOverflow some days ago. You can also answer it in stackOverflow:

http://stackoverflow.com/questions/2997211/asp-net-httpcontext-getlocalresourceobject-throws-invalidoperationexception, thanks:)

View 7 Replies

SQL Reporting :: Sql Server Reports Deploy On Production Server?

May 6, 2010

I have create a report in sql server 2005 & want to deploy on production server, in local system it deployed & works well. also if that report deploy at local system successfuly than how i see report in intranet.

View 2 Replies

Configuration :: How To Deploy Website Having SQL Server On IIS Server On Different Computer.

Sep 1, 2010

how to deploy ASP.net Website having SQL Server on IIS server on Different Computer..

View 2 Replies

MVC :: How To Deploy A Simple App To The Server

Feb 17, 2011

I created a MVC Movies application tutorial on my local mechine. Now I want to deploy it to my server. (IIS 7) I read few articles and I am lost in the middle.Can any one tell me how can I deploy a simple mVC app to the server?

View 6 Replies

Configuration :: Web Deploy Behind An ISA Server?

Apr 10, 2010

I have an 2008 server behind a ISA 2000 server at a remote location. I am trying to use web deloy to publish web sites to that location. this server was tested at this location and we were able to publish to it, it was then disjoned from the network and joined to the remote network.

I have opend port 8172 in the isa server and router. web deployment and web management services are running, I set up a deligation rule will all roles and added my Administrators account to it.I cant get it to publish using eithe htttps or http, with https is get Start Web Deploy Publish the Application/package to

https://thatsit.net.au:8172/msdeploy.axd?site=ThatsIT ...

C:Program FilesMSBuildMicrosoftVisualStudiov10.0WebMicrosoft.Web.Publishing.targets(3481,5): Error : Web deployment task failed.(Remote agent (URL https://server.com:8172/msdeploy.axd?site=ThatsIT) could not be contacted. Make sure the remote agent service is installed and started on the target computer.)

Make sure firewall and network settings on your computer and on the server are configured to allow connections between them. If the issue is not resolved, please contact your local or server administrator.

Error details: if i use http it hangs on this line in the output

Start Web Deploy Publish the Application/package to http://seerver.com/MSDEPLOYAGENTSERVICE

View 2 Replies

Deploy A Website To Internet (SQL Server )?

Aug 21, 2010

I am new to the web development.I have built my website in visual studio 2008 using Sql server 2008 as backend.Now I want to know the whole process of deploying the website in some web domains and as well as my database to some database domain.I didn't purchase any domain till now.I want to know about web hosting as well.

View 2 Replies

Deploy Website From SVN To Multiple Server?

Sep 30, 2010

I need to deploy a website from the SVN to different servers all within our own network. The code is currently not complied but probably will be in the future.

First the site would need to be deployed to the development server for the developers to test.

Once the Developer signs off it would be deployed to the staging server for the testers.

Once final sign off was given it would be deployed to a server farm, two live servers.

Each server has a couple of settings in the web.config to that are different; expect the two live server of course. I would like to use templates, the way the Ruby on Rails world does, seems like an elegant solution to multiple web.config files.

I also need to create a list/report of the files that were changed and what the change was since the last deployment.

I thinking of writing a script that will do the following
1. Take args for server to deploy to, and revision
2. Export a copy of the source to a directory with svn export -r <deploy revision>
3. Delete the web.config file
4. Use ttree (a template tool [URL]) to create the correct web.config
5. Create a list of file changes with svn list -r <deploy revision>:<current server revision>
6. Stores the <current server revision> of the website for when the script is run next time

I prefer to use tools that are already available rather than re-invent the wheel. Unfortunately I don't think MSDeploy will do what I need, but I'm happy to use it, or anything else, if it will do what I need it to. Does anyone know of any tools that are up to the task or is the script my only option?

View 1 Replies

Configuration :: How To Deploy Wcf Services Into The Server

Dec 27, 2010

i have created simple hello world WCF services it is working fine in local machine but when i try to uploaded to the server and then run that service it not at al start like http://localhost:8080/wcf/helloservice.svc

i am trying to modified the webconfig file <endpoint> address i have changed to my servername.com/wcf/helloservice.svc again it shows error can give usefull link to creation and deployment to the server

View 1 Replies

VS 2010 - Deploy Code To A Server

Feb 20, 2012

I have recently been dropped into the ocean known as ASP.NET. Here are my questions:

1.) I am trying to deploy my code to a server. I read there are a few different ways to do this but I will stick with the simple way for now. The way I am deploying is to remote into the server and copy my files(with a copy paste) and placing them on the server. My question is do I put the files on the server in the virtual directory or on the real directory that it points to?

2.) When I deploy my files are the changes recognized automatically or do I need to issue a command to IIS?

View 4 Replies

Localization :: Culture Settings Work On Machine - Don't Work When Moved To Server?

Jan 20, 2010

I am working on a multi-language web site. It is half English and half Portuguese. I have created forms that have portuguese values in it. These forms work perfectly on my desktop. I'm using Cassini as the development server. When I move them over to IIS, they are not loading properly. The text comes up all weird looking. I am declaring the culture in the page attribute: Culture="pt-BR"

View 4 Replies

Configuration :: Deploy Web.config And App.config Connection String?

May 3, 2010

I have deploy my web site, it contains a project!

in MyWeb there are all the aspx page and some entites datamodel, in MyApp there are the class with function like "getter data from DB" and there is a entity data model.

afeter the deploy, I have only the web.config and the connection string for the entity datamodel....itīs run ok, read/write the data on the DB.

The problem is with MyApp.....after the deploy it is a dll file and I donīt have the app.config and the entity inside it donīt run, not read/write nothing on the DB.

There arenīt error or messager but not read/write the data in the MyApp project.

all run on the iis 7

now...the question is:

I lose the connection string (in app.config) after the deploy?

Can I put a entity in the MyWeb and read it in another project (myApp)?

ps: for connect to DB I use not the c# code:

var db=from x in AccessDB.Example select x;

View 1 Replies

How To Deploy Website On Windows Server 2003 & IIS 6.0

Aug 4, 2010

how to deploy an ASP.NET2.0 website on Windows server 2003 & IIS 6.0.

I tried to follow these steps but I get the message "Internet Explorer cannot display the webpage".

1. Create a new website in IIS with a host header.

2. Browse to the directory where the asp.net website is and setting it as home directory.

3. Stopping the website and starting it.

I am using Visual studio 2005 to develop my Asp.net website.

View 16 Replies

Deploy And Configure Aspnetdb On A Production Server?

Mar 7, 2011

I am developing a MVC 2 application that uses aspnetdb on my SQL Server 2008 detabase for forms authentication. On my development machine I can configure the users, roles and permissions using my Website Administration Tool (WAT). My question is how do I deploy this database to a production server and how do I configure it with users, roles and permissions?

View 1 Replies

Configuration :: How To Deploy Web Application On Remote Server

May 4, 2010

I have developed web application i need to deploy it on remote server.i am using asp.net 3.5 ,c# 3.0 and visual studio 2008,sql server 2005.using visual studio 2008 how i can make msi file to deploy application on server

View 5 Replies

Get Error When Deploy The Application On The Remote Server

May 24, 2010

I get this error when I deploy the application on the remote server. This application works fine on my local machine though. It is built in MSVisual studio 2008.

View 2 Replies

NLB And Using MS Web Deploy To Push A New Version Of The Application To One Server

Apr 26, 2010

I have two webservers in a cluster serving a web application. Using MS Web Deploy to push a new version of the application to one server, and then again to synchronize the files to the other server in the cluster. It seems to be the most ordinary thing to do. But wouldn't there be a problemm, when one server is deployed with the new version, and the other is not yet finished. Will it not cause troubles, when a page loaded with the new version makes a webservice request and the balancer sends the request to the server with the old version?

What's the best way to avoid this? I thought about scripting a drainstop of the server, that we deploy to, and make sure only one server is running at a time. But I can't find anyone else, who seems to have written about such a solution. And guess that it doesn't scale very well too. Another solution could be to shut down all servers when updating. But that doesn't seems very clever.

View 2 Replies

Configuration :: Deploy Both MVC2 And Web Forms On The Same Web Server?

Jul 21, 2010

I have managed to deploy my website written using ASP.NET MVC2, C#, .NET Framework 4 and Visual Studio 2010 on my PC running Windows XP Service Pack 3 and IIS 5.1 (see [URL] The website is accessible on [URL] I need to install a separate ASP.NET Web Forms application under the folder Apps so that it is accessible as follows: [URL] Do I need to disable the wildcard maps on the folder Apps?

View 3 Replies

Web Forms :: Below URL Works In Mapp On PC, But Not When Deploy The App On The Server?

Jan 27, 2010

VS2008 I have a problem where the below URL works in my app on my PC, but not when I deploy the app on the server.

lTransferURL = "/Menus/mainmenu.aspx"

View 3 Replies

C# - Deploy .net Web Application Multiple Times On The Same Server?

Mar 16, 2010

I have a ASP.NET 3.5 web application and I would like to allow users to install this web application multiple times on the same server.

--------
WebApp1 - database1
WebApp2 - database2
WebApp3 - database3

View 2 Replies

Configuration :: Deploy Application To Web Server With MySql DB?

Jul 31, 2010

I have developed a web application with ASP.Net 2.0 (VB Code Behind) and I am using My SQL as database.

I wish to sell the web application from my other website to multiple users. What would you suggest to be the best way to deliver this application? Fact is I can compile the front end script and provide the compiled version but I am not sure how to provide the associated MySQL database to them. I need to make sure that the buyers are not able to alter any code in the application or modify the preset data in the MySQL database. I do not wish to use the Setup Based deployment method as it will require the buyers to have administrative rights on the server, which may not be available on shared hosting.

But at the same time they must be able to get the web application up and running with minimal effort. I must be honest with you that I have developed only HTML based static websites till now and this would the first time I am launching an ASP.Net application.

View 1 Replies

Configuration :: Deploy An Application With A Sql Server Express Db?

Mar 20, 2011

for the last couple of days i've been trying to deploy an application that uses a sql express db on to my iis.up until now i was trying to upload it onto iis 5.1, but now i a brand new iis7.5 but i still get this annoying error:An attempt to attach an auto-named database for file C:application_nameApp_DataDatabase1.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.needless to say that there is no database with this name on my computer. i've set the application pool to .net framework 4.0.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved