powered by simpleCommunicator - 2.0.59     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / ASP.NET [игнор отключен] [закрыт для гостей] / Почему не работает перехватчик в silverligth-приложении?
3 сообщений из 3, страница 1 из 1
Почему не работает перехватчик в silverligth-приложении?
    #38000704
Solomka
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Добавляю перехватчик в конфигурационный файл:
Код: xml
1.
2.
3.
    <handlers>
      <add name="Handler22" path="term.aspx" verb="*" type="WorkWithPictures.ClassGen" resourceType="Unspecified" preCondition="integratedMode" />
    </handlers>



Однако, если я набираб в адресной строке:
http://localhost:52878/term.aspx?IdProject=89
то у меня говориться что такой страницы нет, хотя её действительно нет...
когда перехватчик работает в браузере по адресу term.aspx выдается то содержимое которое мне нужно.

Перехватичик я создавала в обычном Web-sait а потом пыталась добавить его в серверную часть для проекта Silverligth.

Где тут спряталась ошибка?
Почему в одном приложении работающий перехватчик работает, а в другом - нет?

Конфигурационный файл Серверного приложения для проекта типа Business Application Silverligth: ( в котором переватчик не работает )

Код: xml
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
57.
58.
59.
60.
61.
62.
63.
64.
65.
66.
67.
68.
69.
70.
71.
72.
<?xml version="1.0"?>
<configuration>
  <configSections>
    <sectionGroup name="system.serviceModel">
      <section name="domainServices" type="System.ServiceModel.DomainServices.Hosting.DomainServicesSection, System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" allowDefinition="MachineToApplication" requirePermission="false" />
    </sectionGroup>
  </configSections>

  <connectionStrings>
    <add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true"
      providerName="System.Data.SqlClient" />
    <add name="Zada4iConnectionString" connectionString="Data Source=SEM;Initial Catalog=Zada4i;Persist Security Info=True;"
      providerName="System.Data.SqlClient" />
  </connectionStrings>

  <system.web>
    <httpModules>
      <add name="DomainServiceModule" type="System.ServiceModel.DomainServices.Hosting.DomainServiceHttpModule, System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    </httpModules>
    <compilation debug="true" targetFramework="4.0" />
    <globalization culture="auto" uiCulture="auto" />

    <authentication mode="Forms">
      <forms name=".baTestBuiltTreeView_ASPXAUTH" timeout="2880" />
    </authentication>

    <membership>
      <providers>
        <clear/>
        <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices"
             enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false"
             maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10"
             applicationName="/" />
      </providers>
    </membership>

    <roleManager enabled="true">
      <providers>
        <clear/>
        <add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/" />
        <add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/" />
      </providers>
    </roleManager>

    <profile>
      <providers>
        <clear/>
        <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/"/>
      </providers>
      <properties>
        <add name="FriendlyName"/>
      </properties>
    </profile>

  </system.web>

  <system.webServer>
     <validation validateIntegratedModeConfiguration="false"/>
    <modules runAllManagedModulesForAllRequests="true">
      <add name="DomainServiceModule" preCondition="managedHandler"
          type="System.ServiceModel.DomainServices.Hosting.DomainServiceHttpModule, System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    </modules>   
    <handlers>
      <add name="Handler22" path="term.aspx" verb="*" type="WorkWithPictures.ClassGen" resourceType="Unspecified" preCondition="integratedMode" />
    </handlers>
  

  </system.webServer>
  <system.serviceModel>
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
  </system.serviceModel>
</configuration>



Конфигурационный файл для обычного WebSait: (в котором перехватчик работает):
Код: xml
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
<?xml version="1.0" encoding="UTF-8"?>
<!--
  Дополнительные сведения по настройке приложения ASP.NET см. по ссылке
  http://go.microsoft.com/fwlink/?LinkId=169433
  -->
<configuration>
  <connectionStrings>
    <add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true"
      providerName="System.Data.SqlClient" />
    <add name="Zada4iConnectionString" connectionString="Data Source=SEM;Initial Catalog=Zada4i;Persist Security Info=True;"
      providerName="System.Data.SqlClient" />
  </connectionStrings>
  <system.web>
    <compilation debug="true" targetFramework="4.0" />
    <authentication mode="Forms">
      <forms loginUrl="~/Account/Login.aspx" timeout="2880" />
    </authentication>
    <membership>
      <providers>
        <clear />
        <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/" />
      </providers>
    </membership>
    <profile>
      <providers>
        <clear />
        <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/" />
      </providers>
    </profile>
    <roleManager enabled="false">
      <providers>
        <clear />
        <add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/" />
        <add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/" />
      </providers>
    </roleManager>
 
      <!--<httpHandlers>
        <add verb="*" path="picture.aspx" type="WorkWithPictures.PictureHandler"/>     
      </httpHandlers>-->
  
  </system.web>
    <system.webServer>
      <!--<validation@validateIntegratedModeConfiguration value="false"/>-->
      
      
      <handlers>
        <add name="HandlerForPictureImages" path="picture.aspx" verb="*" type="WorkWithPictures.PictureHandler" resourceType="Unspecified" preCondition="integratedMode" />
        <add name="Handler22" path="term.aspx" verb="*" type="WorkWithPictures.ClassGen" resourceType="Unspecified" preCondition="integratedMode" />
        <add name="Handler" path="schema.aspx" verb="*" type="WorkWithPictures.Handler2" resourceType="Unspecified" preCondition="integratedMode" />
          
      </handlers>
    </system.webServer>
 
</configuration>



Исходник проекта:
http://narod.ru/disk/62552785001.fc1eed0dc8fd4dfdef76b07259c168a9/baTestBuiltTreeView.rar.html
...
Рейтинг: 0 / 0
Почему не работает перехватчик в silverligth-приложении?
    #38000771
Фотография МСУ
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Сильвер RIP. На кой оно нужно? :)
...
Рейтинг: 0 / 0
Почему не работает перехватчик в silverligth-приложении?
    #38001621
Solomka
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
МСУСильвер RIP. На кой оно нужно? :)
Можно по конкретнее задавать вопрос.
Если имелось в виду, что делает этот файл?
То он генерит XML-файл, который будет служить основой структуры дерева TreeView
...
Рейтинг: 0 / 0
3 сообщений из 3, страница 1 из 1
Форумы / ASP.NET [игнор отключен] [закрыт для гостей] / Почему не работает перехватчик в silverligth-приложении?
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


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