Forums

Welcome Guest Search | Active Topics | Members

General .NET question Options
natebell
Posted: Thursday, July 26, 2007 5:50:43 AM
Rank: Member
Groups: Member

Joined: 3/28/2007
Posts: 56
Points: 0
Sergey,

I'm having a weird issue that maybe you have seen or might know where to point me to look.

On my local machine the Cancel all changes button works great, we also have a dev server that I push to and it works great. However, when I push to a test server we use for testing, the customizable message no longer works right. It says "ExitMessage" instead of "Changes are not saved." This seems very weird to me and all I can think of is maybe something in the GAC is not working right? And all other messages work fine too, this is the only one I have seen.

It's taking the resource name, not the value, but only on a specific server, and its the exact same code.
(I publish to a local directory and then copy files to the server, so they are the exact same files between the two servers)

any help would be appreciated.

thanks,
Nate
natebell
Posted: Thursday, July 26, 2007 12:53:42 PM
Rank: Member
Groups: Member

Joined: 3/28/2007
Posts: 56
Points: 0
Seems the issue was the fact that the GetLocalizedName in PhotoEditorModel.cs expects to find an actual file. If you do not allow the precompiled app to be updatable it will compile the app_localresources directories in the project. Then the file isn't found, it's compiled.

Is there a way to update this function so that I can build my app without allowing it to be updatable?
Sergey Peshekhonov
Posted: Monday, July 30, 2007 3:52:00 AM
Rank: Advanced Member
Groups: Member

Joined: 6/6/2007
Posts: 54
Points: 36
Hello, Nate!

Thank you for your post! We confirm the problem and have temporary solution for you.
(So, we plan to fix this problem in next release of PhotoEditor)

You should just replace GetLocalizedName method with the following:

Code:
public static string GetLocalizedName(string caption, string name)
{
    string result = name;
    Object o = HttpContext.GetLocalResourceObject(Config.PhotoEditorLocation + "/" + caption, name);
    if (o != null)
    {
        result = o.ToString();
    }
    return result;
}


I hope this will help you.

Sincerely yours,
Sergey Peshekhonov.

Aurigma Technical Support Team.
natebell
Posted: Tuesday, July 31, 2007 5:22:52 AM
Rank: Member
Groups: Member

Joined: 3/28/2007
Posts: 56
Points: 0
great, thanks Sergey!
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Yet Another Forum.net version 1.9.1.6 running under Cuyahoga.
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.