powered by simpleCommunicator - 2.0.59     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / ASP.NET [игнор отключен] [закрыт для гостей] / Миграция с fw1.1 на fw2.0
3 сообщений из 3, страница 1 из 1
Миграция с fw1.1 на fw2.0
    #33559758
===S_Q_L===
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Может здесь кто знает, почему в VS2002 вот такой код работает на ура а в VS2005 выдает ошибку:

..cut of code..
in *.aspx
Код: plaintext
<%= LocRM.GetString("L_BannerUCH_Text") %>

in *.aspx.vb
Код: plaintext
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
Option Explicit On 
Imports System.Resources
Imports System.Globalization
Imports ASCEP.NET.Common
Public Class _Default2
    Inherits System.Web.UI.Page
    Protected LocRM As ResourceManager

    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        'Put user code to initialize the page here
        LocRM = New ResourceManager("ASCEP.NET.strings", GetType(_Default2).Assembly)
    End Sub

End Class

XML файл со строковыми ресурсами /common/strings.ru.resx

Я конечно понимаю, что в ВС2005 предусмотрены другие механизмы локализации, но ведь и это должно работать! Не лопатить-же 169 страниц!
...
Рейтинг: 0 / 0
Миграция с fw1.1 на fw2.0
    #33567069
===S_Q_L===
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
После конвертации проекта появился вот такой варнинг:
Warning: Resource files were moved to 'App_GlobalResources' folder. Code using resources may have to be fixed manually.

А вот и ошибочка:
Server Error in '/' Application.
--------------------------------------------------------------------------------

Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "ASCEP.NET.strings.resources" was correctly embedded or linked into assembly "App_Web_login.aspx.cdcab7d2.motkgbeu" at compile time, or that all the satellite assemblies required are loadable and fully signed.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Resources.MissingManifestResourceException: Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "ASCEP.NET.strings.resources" was correctly embedded or linked into assembly "App_Web_login.aspx.cdcab7d2.motkgbeu" at compile time, or that all the satellite assemblies required are loadable and fully signed.

Source Error:

Line 5: <HEAD>
Line 6: <title>
Line 7: <%= LocRM.GetString("L_BannerLogin_Text") %>
Line 8: </title>
Line 9: <LINK href="<%= Constant.VirtualRoot %>/Common/Common.css" type="text/css" rel="stylesheet">

Source File: K:\ASCEP\ASCEP.NET\login.aspx Line: 7

Други помогите!!!
...
Рейтинг: 0 / 0
Миграция с fw1.1 на fw2.0
    #33575589
===S_Q_L===
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Неужели никто не знает???!!!
...
Рейтинг: 0 / 0
3 сообщений из 3, страница 1 из 1
Форумы / ASP.NET [игнор отключен] [закрыт для гостей] / Миграция с fw1.1 на fw2.0
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]