Developer forum

Forum » Dynamicweb 10 » Different DW version on IIS/localhost

Different DW version on IIS/localhost

Joakim
Reply

Hi,

 

Im running a 10.1.4+ application hosted on IIS, but when visiting /admin via the IIS-site it shows an older version(10.0.36+), but when hosted on localhost(dotnet run), it properly shows the correct version(10.1.4+).

 

Is this a setting in IIS? Or how would I solve this issue?


Thanks


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Hi Joakim

Where is the site hosted? Wiht DW or do you host it your self?

If the /admin shows 10.0.36 it is not a 10.1

BR Nicolai

 
Jeppe Eriksson Agger Dynamicweb Employee
Jeppe Eriksson Agger
Reply

Hi Joakim,

Are you sure your web.config is pointing to the correct (new) solution?

Perhaps the issue is similar to this one? https://doc.dynamicweb.com/forum/dynamicweb-10/dynamicweb-10/update-to-10-1-with-iis-hosting

- Jeppe

 
Joakim Sjöbäck
Reply

We host it ourself, however when i test it locally its the same issue:
localhost:5001/admin -> DW 10.1.4+
IIS(headless-back.localtest.me/)/admin -> DW 10.0.36+

The application is identical for both sites.

 
Jeppe Eriksson Agger Dynamicweb Employee
Jeppe Eriksson Agger
Reply
This post has been marked as an answer

Hi Joakim,

The application is identical for both sites

That is not possible. Most likely, the IIS configuration is pointing to the wrong application. Please verify that the physical path for the site in IIS is pointing to the correct solution folder with a web.config inside. Also make sure that the web.config is pointing to the correct application assembly. Try making the path absolute if it isn't -- just to be sure that you're getting the expected application.

- Jeppe

Votes for this answer: 1
 
Joakim Sjöbäck
Reply

In the picture you can see the physical path, the bash terminal from which I run dotnet run and the actual folder where the application is located.

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

And what do you have in your web.config in that folder?

When you use dotnet run you do not use web.config for anything.

When you use IIS, the application folder is read from web.config and can be in a completely different location.

BR Nicolai

 
Joakim Sjöbäck
Reply

Thanks for the quick and detailed replies.

I downloaded the zip and changed to the absolute path to dll file and now its working properly.

 

Thanks again!

 

You must be logged in to post in the forum