iis aplication problem

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
cerami2
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 103
Joined: Thu Nov 08, 2007 5:29 am
Location: Plymouth MN
Contact:

iis aplication problem

Post by cerami2 » Sun Jul 27, 2008 4:36 pm

I have installed Absolute Newsletter it has it own web.config


why am i having such a hard time getting other applications to work with able commerce

http://www.insulincase.com/absolutenl/default.aspx

is there something else i need to ablecommerce web.config to get other aplications to work besides set all the permissions to the child app to work




Server Error in '/absolutenl' Application.
--------------------------------------------------------------------------------

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: Could not load file or assembly 'CommerceBuilder.Services' or one of its dependencies. The system cannot find the file specified. (D:\Domains\insulincase.com\wwwroot\web.config line 112)

Source Error:


Line 110: <httpModules>
Line 111: <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
Line 112: <add name="AbleCommerceHttpModule" type="CommerceBuilder.Services.AbleCommerceHttpModule, CommerceBuilder.Services"/>
Line 113: </httpModules>
Line 114: <authentication mode="Forms">


Source File: D:\Domains\insulincase.com\wwwroot\web.config

I fuond this solution but i do not understand it


There is a quick solution, provided the applications are .NET 2.0 or greater. In the parent application's web.config, wrap the system.web section in a location tag, setting the inheritInChildApplications attribute to false, as follows:



<location path="." inheritInChildApplications="false">
<system.web>


thanks joe

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: iis aplication problem

Post by mazhar » Mon Jul 28, 2008 5:43 am

Code: Select all

I fuond this solution but i do not understand it


There is a quick solution, provided the applications are .NET 2.0 or greater. In the parent application's web.config, wrap the system.web section in a location tag, setting the inheritInChildApplications attribute to false, as follows:



<location path="." inheritInChildApplications="false">
<system.web>

This solution seems for the situation in which you have some parent child applications.
If this is not the case then take a look and check that did you installed the Ajax 1.0 or not.

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: iis aplication problem

Post by jmestep » Mon Jul 28, 2008 7:48 am

I had this problem in Able 5.5 when I installed two other .net programs for the site, but the error then said it was the Able rewrite. So I copied the [rewrite].dll to the bin folder in the new programs and things were OK. You might try copying CommerceBuilder.Services to their bin folder. I think there was another solution posted later here on the forum, but I don't remember what it was.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

User avatar
cerami2
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 103
Joined: Thu Nov 08, 2007 5:29 am
Location: Plymouth MN
Contact:

Re: iis aplication problem

Post by cerami2 » Mon Jul 28, 2008 8:05 am

ajax is installed

i installed the CommerceBuilder.Services.dll



Server Error in '/absolutenl' Application.
--------------------------------------------------------------------------------

Could not load file or assembly 'CommerceBuilder, Version=7.0.9730.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
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.IO.FileNotFoundException: Could not load file or assembly 'CommerceBuilder, Version=7.0.9730.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

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.

Assembly Load Trace: The following information can be helpful to determine why the assembly 'CommerceBuilder, Version=7.0.9730.0, Culture=neutral, PublicKeyToken=null' could not be loaded.


WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].



Stack Trace:


[FileNotFoundException: Could not load file or assembly 'CommerceBuilder, Version=7.0.9730.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.]
CommerceBuilder.Services.AbleCommerceHttpModule.Init(HttpApplication context) +0
System.Web.HttpApplication.InitModulesCommon() +66
System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers) +1006
System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context) +259
System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +114
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +350



thaqnks

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: iis aplication problem

Post by mazhar » Tue Jul 29, 2008 9:07 am

First register the sub directory as new application. The steps for that are below
* Launch IIS
* Right-click your sub Web directory and click 'Properties'.
* On the 'Virtual Directory' tab, check weather 'Create' button beside 'Application name'.
is available or not. If it is available then click it
* Click 'OK'

Now
Edit the AbleCommerce web.config file and locate the following tags in the file

Code: Select all

<system.web>
..................
..................
</system.web>
and enclose these tags as below

Code: Select all

<location path="." inheritInChildApplications="false">
<system.web>
..................
..................
</system.web>
</location>
where the doted lines shows the contents within the <system.web> and </system.web> tags. You just need to write <location path="." inheritInChildApplications="false"> before <system.web> and </location> after </system.web>
Last edited by mazhar on Mon Oct 20, 2008 10:50 am, edited 1 time in total.

User avatar
cerami2
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 103
Joined: Thu Nov 08, 2007 5:29 am
Location: Plymouth MN
Contact:

Re: iis aplication problem

Post by cerami2 » Tue Jul 29, 2008 9:25 am

thank you I will give it a try

jpopowski1
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 40
Joined: Wed Oct 01, 2008 10:10 am

Re: iis aplication problem

Post by jpopowski1 » Thu Nov 06, 2008 10:02 pm

I have a similar issue in IIS where the Google checkout returns a notification, and a 500 error occurs referencing not being able to load CommerceBuilder.Services or one of its dependencies.

I have two questions:
why will putting the location tag in and not allowing inheritance fix this issue? If I read this correctly, it means that the subdirectory will actually be a separate application, so then wouldn't I have to make every possible subdirectory a separate application? I'm new to ASP, so please forgive me if this sounds silly.

Thanks in advance,
Judy Popowski
Going In Style.

jpopowski1
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 40
Joined: Wed Oct 01, 2008 10:10 am

Re: iis aplication problem

Post by jpopowski1 » Thu Nov 06, 2008 11:30 pm

I entered the <location> tag as suggested. The application name for the subdirectory is 'Google'. I set up the return url for google to point to http://www.goinginstyle.com/Google/Noti ... tener.ashx and now have a different error.
(Progress I suppose! )
Now it claims not to be able to find CommerceBuilder.GoogleCheckout or one of its dependencies.
Commercebuilder.GoogleCheckout is named in the web.config of the subdirectory.

Any assistance would be greatly appreciated.

Judy


Event log entry.
Event code: 3008
Event message: A configuration error has occurred.
Event time: 11/6/2008 8:25:28 PM
Event time (UTC): 11/7/2008 4:25:28 AM
Event ID: be6f44c19afe48748f67ef890e09583d
Event sequence: 2
Event occurrence: 1
Event detail code: 0

Application information:
Application domain: /LM/W3SVC/1/Root/gis/Checkout/Google-2-128705055282311453
Trust level: Full
Application Virtual Path: /gis/Checkout/Google
Application Path: D:\AC\Checkout\Google\
Machine name: GIS03

Process information:
Process ID: 324
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE

Exception information:
Exception type: ConfigurationErrorsException
Exception message: Could not load file or assembly 'CommerceBuilder.GoogleCheckout' or one of its dependencies. The system cannot find the file specified. (D:\AC\checkout\google\web.config line 8) (D:\AC\checkout\google\web.config line 8)

Request information:
Request URL: https://www.goinginstyle.com:443/gis/Ch ... tCalc.ashx
Request path: /gis/Checkout/Google/MerchantCalc.ashx
User host address: 74.125.64.136
User:
Is authenticated: False
Authentication Type:
Thread account name: NT AUTHORITY\NETWORK SERVICE

Thread information:
Thread ID: 1
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: False
Stack trace: at System.Web.Configuration.HttpModuleAction.get_Entry()
at System.Web.Configuration.HttpModulesSection.CreateModules()
at System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers)
at System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context)
at System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context)
at System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: iis aplication problem

Post by mazhar » Fri Nov 07, 2008 7:45 am

It seems that its trying to load the CommercerBuilder.GoogleCheckout from the sub directory's bin folder.

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: iis aplication problem

Post by AbleMods » Fri Nov 07, 2008 9:10 am

jpopowski1 wrote:I have two questions:
why will putting the location tag in and not allowing inheritance fix this issue? If I read this correctly, it means that the subdirectory will actually be a separate application, so then wouldn't I have to make every possible subdirectory a separate application? I'm new to ASP, so please forgive me if this sounds silly.
Very valid questions, not silly at all.

The Web.config file is comprised of several sections. Certain sections are automatically inherited down to any child application web.configs. Some of these sections are repeatable, other sections are not allowed to be repeated - they can only be specified in the root app web.config file.

By using the location tag, you are not making it a separate application. That is accomplished via the IIS console. What you are doing is telling IIS to NOT allow that particular section of the parent web.config file to be inherited into any child web.config files. That way, it doesn't conflict when the child app web.config contains the same section.

AC7 is a complex and fully developed IIS application. When the need arises for integration with another IIS application, some decisions have to be made. Sometimes you can get by with just merging both apps into a single app and combine the child web.config entries with the parent web.config file.
Other times, you have to use the IIS console to configure the sub-app as a completely separate IIS app with its own application pool.

It all depends on the configuration you are wanting and the complexity of the web.config files for each app involved.

Keep in mind that you will see other web.config files throughout the AC7 sub-folders, these are simply permissions controls put into place so IIS can manage the various security levels using the AC7 security provider. The sections you see in those sub-folder web.config files are allowed to be repeated throughout the site folder structure.

But a completely separate IIS application will have far more in the web.config file, thus the potential for a conflict grows.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

jpopowski1
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 40
Joined: Wed Oct 01, 2008 10:10 am

Re: iis aplication problem

Post by jpopowski1 » Sun Nov 09, 2008 7:24 pm

I have now managed to get around the error of not being able to find a file.
However, now, the message is that my license key is missing. (As though when we're in the 'child' application, it can't see the key for the 'parent'. ) Have you run into this?
I suspect some part of the parent config has to be duplicated, but couldn't see what .

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: iis aplication problem

Post by AbleMods » Mon Nov 10, 2008 12:33 am

Without seeing both installations and their config files, it's very difficult to offer any sound technical advice. I would suggest getting someone familar with IIS .Net application installs involved in a hands-on situation.

Originally, it looked like you were trying to install Xigla.com Absolute Newsletter software. Is that still the case?
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

Post Reply