Гость
Целевая тема:
Создать новую тему:
Автор:
Форумы / ASP.NET [игнор отключен] [закрыт для гостей] / Помогите с ошибкой / 15 сообщений из 15, страница 1 из 1
25.08.2006, 11:16
    #33942377
Cherrex
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Помогите с ошибкой
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".

<!-- Web.Config Configuration File -->
<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>
 
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.

<!-- Web.Config Configuration File -->
<configuration>
    <system.web>
        <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
</configuration>
 
...
Рейтинг: 0 / 0
25.08.2006, 11:24
    #33942409
Raindrop
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Помогите с ошибкой
Это описание абсолютно неинформативно. По нему можно только понять, что Вы обратились к какой-то странице своего ASP.NET сайта с удаленной машины и там что-то не работает. Описание ошибки скрыто из соображений безопасности :)

1) Попробуйте зайти на сайт с локальной для него машины ("The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.")
2) Проверьте, что все необходимые сервера и базы живы
...
Рейтинг: 0 / 0
25.08.2006, 11:35
    #33942450
Cherrex
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Помогите с ошибкой
Локально все работает. Я не сильный специалист в ASP.NET. Я только учусь.
...
Рейтинг: 0 / 0
25.08.2006, 12:41
    #33942719
Cherrex
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Помогите с ошибкой
С той ошибкой разобрался, появилась новая.



Server Error in '/' Application.
--------------------------------------------------------------------------------
The current identity (NT AUTHORITY\NETWORK SERVICE) does not have write
access to 'C:\WINDOWS\Microsoft.NET\Framework\V2.0.50727\Temporary ASP.NET
Files'.
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.Web.HttpException: The current identity (NT
AUTHORITY\NETWORK SERVICE) does not have write access to
'C:\WINDOWS\Microsoft.NET\Framework\V2.0.50727\Temporary ASP.NET Files'.
Source Error:
      An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.
Stack Trace:
[HttpException (0x80004005): The current identity (NT AUTHORITY\NETWORK
SERVICE) does not have write access to
'C:\WINDOWS\Microsoft.NET\Framework\V2.0.50727\Temporary ASP.NET Files'.]
   System.Web.HttpRuntime.SetUpCodegenDirectory(CompilationSection
compilationSection) +3474107
   System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags)
+226
[HttpException (0x80004005): The current identity (NT AUTHORITY\NETWORK
SERVICE) does not have write access to
'C:\WINDOWS\Microsoft.NET\Framework\V2.0.50727\Temporary ASP.NET Files'.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +3426839
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +88
   System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +149

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET
Version:2.0.50727.42
...
Рейтинг: 0 / 0
25.08.2006, 13:20
    #33942849
Dade
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Помогите с ошибкой
NT AUTHORITY\NETWORK SERVICE вот этому пользователю, надо поставить права на запись к папке C:\WINDOWS\Microsoft.NET\Framework\V2.0.50727\Temporary ASP.NET
File

судя по тексту ошибки.:)
...
Рейтинг: 0 / 0
25.08.2006, 14:15
    #33943088
Cherrex
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Помогите с ошибкой
Право на запись дал теперь такое:

Server Error in '/' Application.
--------------------------------------------------------------------------------
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.  Please review the following URL and make sure that
it is spelled correctly.
Requested URL: /WEB1/Default.aspx

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET
Version:2.0.50727.42
...
Рейтинг: 0 / 0
25.08.2006, 14:19
    #33943105
Dade
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Помогите с ошибкой
проверь, реально ли там ресурс находится.
 по этому пути /WEB1/Default.aspx
...
Рейтинг: 0 / 0
25.08.2006, 14:35
    #33943181
Cherrex
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Помогите с ошибкой
C:\inetpub\wwwroot\Default.aspx  лежит там
а в домашний коталог. локальный путь  C:\inetpub\wwwroot

все правильно?
...
Рейтинг: 0 / 0
25.08.2006, 14:40
    #33943215
Dade
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Помогите с ошибкой
нет.
C:\inetpub\wwwroot\ WEB1\ Default.aspx
где WEB1 - папка, в которой леджит весь проект.
...
Рейтинг: 0 / 0
25.08.2006, 15:00
    #33943312
Cherrex
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Помогите с ошибкой
исправил теперь такая ошибка.
ASP.NET
Version:2.0.50727.42



Configuration Error
Description: An error occurred during the processing of a configuration file
required to service this request. Please review the specific error details
below and modify your configuration file appropriately.
Parser Error Message: It is an error to use a section registered as
allowDefinition='MachineToApplication' beyond application level.  This error
can be caused by a virtual directory not being configured as an application
in IIS.
Source Error:
Line 44:     <!-- Web.Config Configuration File -->
Line 45:
Line 46:     <authentication mode="Forms"/>
Line 47: <!--
Line 48:             The <customErrors> section enables configuration
Source File: C:\inetpub\wwwroot\web1\web.config    Line: 46

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET
Version:2.0.50727.42
...
Рейтинг: 0 / 0
25.08.2006, 15:04
    #33943332
Dade
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Помогите с ошибкой
в настройках IIS следующее:
зайти в IIS Manager, там в Default Web Site, найдт ппку с именем своего проекта. В свойствах проекта, на первой закладке нажми копнку Create напротив Application name.

Должно помочь.
...
Рейтинг: 0 / 0
25.08.2006, 15:24
    #33943427
Cherrex
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Помогите с ошибкой
А я могу вызывать модально окна в Web?
Если да, то как избежать ошибки?



Server Error in '/WEB1' Application.


Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.
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.InvalidOperationException: Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.

Source Error:





An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:





[InvalidOperationException: Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.]
System.Windows.Forms.Form.ShowDialog(IWin32Window owner) +2084501
System.Windows.Forms.Form.ShowDialog() +6
WebConClass.WebFormClass.Connect() in C:\Documents and Settings\Administrator\Desktop\VS Temp\WebConClass\WebConClass\WebFormClass.cs:13
_Default.Page_Load(Object sender, EventArgs e) +59
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061




Version Information:  Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
...
Рейтинг: 0 / 0
25.08.2006, 15:32
    #33943466
Dade
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Помогите с ошибкой
Признаюсь насчет вызова модальных окон не знаю:(
так как пока не приходилось пользоваться... проверь код приложения, и исправь все в соответсвии с ошибкой.
...
Рейтинг: 0 / 0
25.08.2006, 15:41
    #33943503
Cherrex
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Помогите с ошибкой
Самое интересное что, в дебагере в VS2005 все работает без ошибок.
...
Рейтинг: 0 / 0
25.08.2006, 15:58
    #33943590
bazile
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Помогите с ошибкой
А я могу вызывать модально окна в Web?
Если да, то как избежать ошибки?



Server Error in '/WEB1' Application.


Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.
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.
Модальный диалог надо вызывать средствами JavaScript с помощью метода window.showModalDialog. Методы из пространства имен System.Windows.Forms в ASP.NET нельзя использовать. Из-за этого ошибка и возникает. Дело в том, что раз ASP.NET выполняется на сервере, то и диалог при таком вызове должен был бы появится на сервере (а не у клиента), но настройки сервиса не дают ему прав на такое действие. В любом случае это неправильный подход.
...
Рейтинг: 0 / 0
Форумы / ASP.NET [игнор отключен] [закрыт для гостей] / Помогите с ошибкой / 15 сообщений из 15, страница 1 из 1
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


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