Faccruz 0 Denunciar post Postado Março 17, 2009 Boa tarde Como agrego uma página ASPX em uma já criada em HTML? Ela está sendo exibida com o IIS (Windows 2000) com endereço registrado. Criei um diretorio virtual no IIS, como sempre fiz, mas está dando o RUNTIME ERROR 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> verifiquei o WEB.CONFIG e tem essa "chave" customErrors mode="Off" criada. não sei mais onde tenho que mexer para funcionar Compartilhar este post Link para o post Compartilhar em outros sites
quintelab 91 Denunciar post Postado Março 17, 2009 O que você quer fazer é pegar os fontes do aspx e adicionar em um arquivo HTML? Acho que isso não será possível, terá que ser um página aspx. Abraços... Compartilhar este post Link para o post Compartilhar em outros sites
Faccruz 0 Denunciar post Postado Março 18, 2009 não é isso.... tenho uma página já publicada, feita em html, quero apenas chamar outra em aspx, mas qndo chamo ela, me dá o erro descrito no primeiro tópico. No servidor tem instalado o Framework 2.0 (por ser windows 2000 Server) e IIS. Compartilhar este post Link para o post Compartilhar em outros sites
Oenning 0 Denunciar post Postado Março 18, 2009 Pode colocar seu web.config aqui? Compartilhar este post Link para o post Compartilhar em outros sites
Faccruz 0 Denunciar post Postado Março 18, 2009 <?xml version="1.0"?> <configuration> <appSettings/> <connectionStrings/> <system.web> <!-- Set compilation debug="true" to insert debugging symbols into the compiled page. Because this affects performance, set this value to true only during development. Visual Basic options: Set strict="true" to disallow all data type conversions where data loss can occur. Set explicit="true" to force declaration of all variables. --> <customErrors mode="Off"/> <compilation debug="true" strict="false" explicit="true"> </compilation> <pages> <namespaces> <clear/> <add namespace="System"/> <add namespace="System.Collections"/> <add namespace="System.Collections.Generic"/> <add namespace="System.Collections.Specialized"/> <add namespace="System.Configuration"/> <add namespace="System.Text"/> <add namespace="System.Text.RegularExpressions"/> <add namespace="System.Linq"/> <add namespace="System.Xml.Linq"/> <add namespace="System.Web"/> <add namespace="System.Web.Caching"/> <add namespace="System.Web.SessionState"/> <add namespace="System.Web.Security"/> <add namespace="System.Web.Profile"/> <add namespace="System.Web.UI"/> <add namespace="System.Web.UI.WebControls"/> <add namespace="System.Web.UI.WebControls.WebParts"/> <add namespace="System.Web.UI.HtmlControls"/> </namespaces> </pages> <!-- The <authentication> section enables configuration of the security authentication mode used by ASP.NET to identify an incoming user. --> <authentication mode="Windows"/> <!-- The <customErrors> section enables configuration of what to do if/when an unhandled error occurs during the execution of a request. Specifically, it enables developers to configure html error pages to be displayed in place of a error stack trace. <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm"> <error statusCode="403" redirect="NoAccess.htm" /> <error statusCode="404" redirect="FileNotFound.htm" /> </customErrors> --> </system.web> <system.codedom> </system.codedom> <!-- The system.webServer section is required for running ASP.NET AJAX under Internet Information Services 7.0. It is not necessary for previous version of IIS. --> <system.webServer> </system.webServer> <startup><supportedRuntime version="v2.0.50727"/></startup></configuration> Compartilhar este post Link para o post Compartilhar em outros sites
Oenning 0 Denunciar post Postado Março 18, 2009 Você está usando o IIS local ou executando pelo Visual Studio? Já registrou o .net framework usando aspnet_regiis.exe? Compartilhar este post Link para o post Compartilhar em outros sites
Faccruz 0 Denunciar post Postado Março 18, 2009 IIS Local (Maquina Servidora) Sim, registrei o Framework sem erro nenhum Compartilhar este post Link para o post Compartilhar em outros sites
Faccruz 0 Denunciar post Postado Março 18, 2009 Rodando direto do servidor (http://localhost/Sorteio) me retornou esse erro Server Error in '/Sorteio' Application. -------------------------------------------------------------------------------- Failed to map the path '/Sorteio/App_GlobalResources/'. 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: Failed to map the path '/Sorteio/App_GlobalResources/'. 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: Failed to map the path '/Sorteio/App_GlobalResources/'.] System.Web.Hosting.HostingEnvironment.MapPathActual(VirtualPath virtualPath, Boolean permitNull) +3619780 System.Web.Compilation.BuildManager.CheckTopLevelFilesUpToDate2(StandardDiskBuildResultCache diskCache) +334 System.Web.Compilation.BuildManager.CheckTopLevelFilesUpToDate(StandardDiskBuildResultCache diskCache) +46 System.Web.Compilation.BuildManager.RegularAppRuntimeModeInitialize() +419 System.Web.Compilation.BuildManager.Initialize() +235 System.Web.Compilation.BuildManager.InitializeBuildManager() +228 System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags) +329 [HttpException (0x80004005): Failed to map the path '/Sorteio/App_GlobalResources/'.] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +3465427 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +69 System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +279 -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433 O que seria essa pasta App_GlobalResourses? Utilizo o Publish do VB.NET para enviar (via FTP) para o servidor WEB Compartilhar este post Link para o post Compartilhar em outros sites
Faccruz 0 Denunciar post Postado Março 18, 2009 Estou conseguindo ao poucos... Deletei o Usuário ASPNET e criei novamente (atraves do aspnet_regiis.exe) Dei permissão de LEITURA na pasta C:\Documents and Settings\All Users\Application Data\Microsoft\Crypto\RSA\MachineKeys para esse usuário ASPNET Agora está dando esse erro: SERVER UNAVAILABLE Compartilhar este post Link para o post Compartilhar em outros sites
quintelab 91 Denunciar post Postado Março 18, 2009 O que eu sei desse erro é problema no IIS, tente reiniciar o IIS. Abraços... Compartilhar este post Link para o post Compartilhar em outros sites
Faccruz 0 Denunciar post Postado Março 19, 2009 Boa tarde Como agrego uma página ASPX em uma já criada em HTML? Ela está sendo exibida com o IIS (Windows 2000) com endereço registrado. Criei um diretorio virtual no IIS, como sempre fiz, mas está dando o RUNTIME ERROR 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> verifiquei o WEB.CONFIG e tem essa "chave" customErrors mode="Off" criada. não sei mais onde tenho que mexer para funcionar Esse erro voltou a me perturbar... Olhei na net alguns tutoriais de como resolver... fiz todas, e mesmo assim não consegui resolver... Compartilhar este post Link para o post Compartilhar em outros sites
quintelab 91 Denunciar post Postado Março 19, 2009 Mas neste tela que você postou não é o erro em si. Este tela fala que esta ocorrendo um erro e pela configuração do web.config o erro não pode ser mostrado ao usuário. Mude o valor para on do web.config que esta la no servidor. Abraços... Compartilhar este post Link para o post Compartilhar em outros sites
Faccruz 0 Denunciar post Postado Março 19, 2009 Consegui resolver Mudei o grupo do usuário ASPNET para Administrador. Compartilhar este post Link para o post Compartilhar em outros sites