Website IIS settings, need help !!!

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
13 years ago
I have a nopCommerce Based website which is running on the server (hosted in house)

now i am working on another website and want to test it on server (this website is NOT based on nopCommerce)

Well  my website that is already running has a domain name, so logically it is running on an I.P address

on the same I.P address i want to test this current website that iam working on.

This is how my root directory looks like:

wwwroo/website

|----MyCommerce which is already running

Now i created a folder to test my new website like this:

wwwroot/website

|----MyCommerce -> which is already running

|----test-website (For testing my new website)

I placed all the files and folders of my new website inside "NewFolder". Now the problem is when i try to access my website like this: 192.168.1.2/myapp/test-website/Default.aspx, i get error message and in that error message i see web config file of my current website that is running live, why ?

on the above link "myapp" is the virtual directory on my IIS service and yes i tried creating "test-website' as Application.
13 years ago
To give a clear picture/idea of my problem here's a screen shot: http://a.imageshack.us/img267/7946/iiserror.jpg

ok on my IIS setting, when i right click on "test-website" (that i am trying to test) > Browse > I get an error message and in the error message webconfig of my current live website is getting dispplayed why ?
13 years ago
anyone ?
13 years ago
nopCommerce is completely new to me and I believe I'm having similar problems. I have no answer for you, but might be able to point you in the right direction.

If you are running IIS6 and have applications that run under different versions of the .NET Framework then they cannot coincide in the same application pool, e.g. DefaultAppPool. You need one or more application pools for each of the .NET versions you are running.

Try creating another application pool, e.g. NET4AppPool and assign your nopCommerce site to it.

Also you will need to run aspnet_iisreg -s blah blah against the application and for the version of .NET the application should run against. There are a number of articles on how to go about doing this on the web.

If all this makes sense then great, if not or if I'm barking up the wrong tree then may be you can help me? I'm running IIS6 in house and have a number of applications built on .NET version 2. Of course the latest version of nopCommerce is .NET version 4. So my problem is I can't get nopCommerce to run. Any ideas?
13 years ago
acessl wrote:
nopCommerce is completely new to me and I believe I'm having similar problems. I have no answer for you, but might be able to point you in the right direction.

If you are running IIS6 and have applications that run under different versions of the .NET Framework then they cannot coincide in the same application pool, e.g. DefaultAppPool. You need one or more application pools for each of the .NET versions you are running.

Try creating another application pool, e.g. NET4AppPool and assign your nopCommerce site to it.

Also you will need to run aspnet_iisreg -s blah blah against the application and for the version of .NET the application should run against. There are a number of articles on how to go about doing this on the web.

If all this makes sense then great, if not or if I'm barking up the wrong tree then may be you can help me? I'm running IIS6 in house and have a number of applications built on .NET version 2. Of course the latest version of nopCommerce is .NET version 4. So my problem is I can't get nopCommerce to run. Any ideas?


Thanks for your reply...
well i am not trying to run different framework websites. my current nopCommerce based website that is live is based on 3.5 and my other websites (not nopCommerce) that i want to test are also 3.5 framework.

Is it possible to run number of websites in same virtual directory ?
Is it possible to run number of websites (with same .NET Framework) in same application pool ?
what is difference between "application pool" and 'virtual directory" ?
By looking at the screenshot i posted above do you see any application pool in my IIS configuration ? if no where i can see it ?
13 years ago
i even created new virtual directory and placed my test website in it and made new test website as application still when i browse my test website like this: (192.168.1.1/myvirtualdir/mytestwebsite/default.aspx) i get same error and webconfig os my LIVE nopCommerce based website is being displayed...
13 years ago
Hi,

Your questions:

1. Is it possible to run number of websites in same virtual directory ?
2. Is it possible to run number of websites (with same .NET Framework) in same application pool ?
3. what is difference between "application pool" and 'virtual directory" ?
4. By looking at the screenshot i posted above do you see any application pool in my IIS configuration ? if no where i can see it ?

Answers:

1. No it is not possible. Each of your sites need their own virtual directory created under the "Default Web Site" root. I notice from your screenshot that your test-website is a sub virtual directory of your myapp... virtual directory. You need to move it up one level. You will probably need to create a new virtual directory under the root and copy the contents of your test-website into it and then delete the sub virtual directory.
2. Yes, you can run as many sites as you like in the same app pool if they are all running under the same version of the .NET Framework. Though if you require application isolation you will need to create a new app pool for each.
3. The virtual directory is where you store your source, html, images, etc. The application pool defines the process under which your application runs.
4. Yes, it is the first sub folder under MYSERVER. Expand the sub folder "Application Pools" and you will see the DefaultAppPool folder, under which you will see all the applications assigned to it.

Hope this helps and resolves your problems.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.