Link to home
Start Free TrialLog in
Avatar of Erwin Pombett
Erwin PombettFlag for Switzerland

asked on

IIs configuring more than one website wont work, i need help for configuring.

hello experts,

i'm migrating websites that were produced with c# vs2005 for .net 2.0.
locally i can run several websites, no prob.
but now when i'm deploying on the server, i succeed to connect to only one website.
others are showing me the following error -> ***errors***:

in order to add serveral websites on the same machine, i've take after the following page:

http://support.microsoft.com/kb/324287


*** errors ***
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>

--------------------------


infos:
i've controled the security for the folders that contains my websites, i can confirm that every folder containing the website has permission for "ASPNET" and "IUSR_mymachine".

under website properties  on "Home Directory tab" under "execute permissions" i set "Script only" for all my three websites. which one is a webservice website.


questions:
what do i need to control in order to have my websites working as expected.

thank you in advance for all info, i can give more infos if necessary.
 
Avatar of Springy555
Springy555
Flag of United Kingdom of Great Britain and Northern Ireland image

This error is an application error.  Although it could be related to permissions, a permissions related error is typically a http 403.  You'll probably find this came up as an http 500 error.

The error message you are seeing is telling you that because you are connecting remotely, you cannot see the true error.

So firstly, you need to be able to see what the actual error message is.  Are you able to login locally to the server open the website from there?  You should see the true error message if you can do this.

Also, check the application event log as soon as you generate the website error.  You should find a related event log in there.

If you can post these details here, I can help further.
Avatar of Erwin Pombett

ASKER

thank you for your answer Strpingy555,

indeed, it was a good idea to connect to the server and query page from there.
i receive the following error:

Failed to start monitoring changes to 'C:\wwwroot\Ecowaste\wasteplan\bin' because access is denied.
after giving access ( i'm astonished that permission didnot propagate in content).

Failed to start monitoring changes to 'C:\wwwroot\Ecowaste\wasteplan\App_Code' because access is denied.


now i have a new problem,
arser Error Message: Could not load file or assembly 'System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified.

Line 51:                         <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

question:
i'm exporting a website which was build on vs 2008, i 'm not using 3.5 but 2.0 on server.
where do i have to add the 3.5 in the server ?

Erwin
Springy555
i've eliminated all of the security errors, which concerned app_data, app_code,..
 
now i come accross the following error that i don't know what to do with ?

 Compiler executable file csc.exe cannot be found.                              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: Compiler executable file csc.exe cannot be found.

              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: Compiler executable file csc.exe cannot be found.]


thank you in advance for the help.

Heres the link to download .net framework 3.5 SP1:

http://www.microsoft.com/downloads/details.aspx?FamilyID=ab99342f-5d1a-413d-8319-81da479ab0d7&displaylang=en

This should fix that error if you install this on your server.
mmhhh,

go for meal, but the thing is not working yet....
i you can help me further....i would appreciate.

talk to you later.
thank you for the link,

i've installed 3.5  on server, and have added back the inclusions for .3.5 in web.config, this is ok.
no error concerning 3.5 anymore.


i still have something that i dont understand :

after adding permissions for ASP.NET ans iUSR_machine, to app_code and web.config, i'm very astonished to see an error with web.config.  Indeed the error is refering to a file that doesnt exist.
here's the error:

--------------  error received when query the second web site ------
Configuration ErrorConfiguration 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: An  error occurred loading a configuration file: Failed to start monitoring changes  to 'C:\wwwroot\Ecowaste\wasteplan\login\web.config' because access is  denied.
---------------------------------------------------------------------------------------

now, if ii look at "Internet Information services manager" and that i look at properties for my second website, i can see under ASP.NET tab :
File location :
C:\wwwroot\Ecowaste\wasteplan\web.config

but you can see that in the error there 's a \login\ between wasteplan and web.config.
what can be wrong  as i still can not receive normal answer out of my second web site.

thank you for help.

ASKER CERTIFIED SOLUTION
Avatar of Springy555
Springy555
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
well,
actually i've created a "login" folder in which i've created the login.aspx  in it. but there's no web.config inside that folder ?

if it can be of some help, here 's my web.config:

thank you in advance for further help, actually i don't know how to tell him that there's no web.config file inside Login folder.


 <configuration>
    <configSections>
        <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
            <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
                <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
                <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
                    <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/>
                    <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
                    <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
                    <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/></sectionGroup>
            </sectionGroup>
        </sectionGroup>
    </configSections>
    <appSettings>
        <add key="Telerik.Skin" value="Windows7"/>
        <add key="Telerik.ScriptManager.TelerikCdn" value="Disabled"/>
        <add key="Telerik.StyleSheetManager.TelerikCdn" value="Disabled"/>
        <!--  ### ROUTE SOLVER ### -->
        <!-- Path where is the datapack -->
        <add key="DataPackPath" value=""/>
        <!-- default params -->
        <add key="RS_VERSION" value="0.1.0"/>
        <add key="MENU_RS" value="~/Menu/MenuRS.xml"/>
        <add key="LOGIN_PAGE" value="~/Login/LoginRS.aspx"/>
        <add key="ENTRY_PAGE" value="~/Default.aspx"/>
        <!-- chemin de base des elements primaires.  -->
        <add key="googlemaps.subgurim.net" value="ABQIAAAAhmF5WnCBnTnhTE0l3NcK-RSVInQQ8jz2T1Gi5WeSrNa6WuINHRRtf9CTFBzkNEHVdPnZryHiK16sY"/>
        <!--  ### ROUTE SOLVER ### -->
        <!--  ### GENERAL  ### -->
        <add key="WEB_IMG" value="~/SiteCSS/base/img/"/>
        <!--  ### GENERAL  ### -->
    </appSettings>
    <system.web>
        <pages>
            <controls>
                <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/>
                <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></controls>
        </pages>
        <!--
            Set compilation debug="true" to insert debugging
            symbols into the compiled page. Because this
            affects performance, set this value to true only
            during development.
        -->
        <compilation debug="true">
            <assemblies>
                <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
            </assemblies>
        </compilation>
        <httpHandlers>
            <remove verb="*" path="*.asmx"/>
            <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
            <add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false"/>
            <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false"/>
            <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false"/>
            <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false"/>
            <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/>
        </httpHandlers>
        <httpModules>
            <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule"/>
            <add name="RadCompression" type="Telerik.Web.UI.RadCompression"/>
        </httpModules>
    </system.web>
 <system.webServer>
        <validation validateIntegratedModeConfiguration="false"/>
        <modules>
            <remove name="ScriptModule"/><add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" preCondition="integratedMode,runtimeVersionv2.0"/>
            <add name="RadCompression" type="Telerik.Web.UI.RadCompression" preCondition="integratedMode,runtimeVersionv2.0"/>
        </modules>
        <handlers>
            <remove name="ScriptHandlerFactory"/>
            <remove name="ScriptHandlerFactoryAppServices"/>
            <remove name="ScriptResource"/><remove name="WebServiceHandlerFactory-Integrated"/>
            <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0"/>
            <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0"/>
            <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0"/>
            <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0"/>
            <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode,runtimeVersionv2.0"/>
        </handlers>
    </system.webServer>
    <!-- authentication -->
    <system.web>
        <authorization>
            <deny users="?"/>
        </authorization>
        <!-- protection: will encrypt and authenticate cookie  -->
        <!-- name : http cookie used for authentication -->
        <!-- timeout: http cookie used for authentication -->
        <!-- loginUrl : page to redirect if no cookie  -->
        <!-- protection: encryption for cookie  -->
        <authentication mode="Forms">
   <forms name="wasteplan_auth" loginUrl="~/Login/LoginRS.aspx">
    <credentials passwordFormat="Clear" />
   </forms>
  </authentication>
    </system.web>
    <system.codedom>
            <compilers>
                <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider,System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">
                    <providerOption name="CompilerVersion" value="v3.5"/>
                    <providerOption name="WarnAsError" value="false"/></compiler></compilers></system.codedom>
    <runtime>
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
            <dependentAssembly>
                <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
                <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/></dependentAssembly>
            <dependentAssembly>
                <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
                <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/></dependentAssembly></assemblyBinding></runtime></configuration>

my post wasn't clear enough after reading it.
the problem :
i have the "Login" folder in wasteplan but no "login", in it i have no web.config.

......
I SUCCEEEEEEDD !!!!!!!!

thank you for the tips.