Developer forum

Forum » CMS - Standard features » New index add instance error

New index add instance error

Peter Leleulya
Reply

Hi guys ...
I was trying to create an item repository in 8.8.1.15.

I added a repository,
I added an index,
Then I wanted to add an instance ...

But the OK button doesn't respond to anything ...

I upgraded to 8.9.0.0 but it still won't work ...
I even created the directory (path) it suggests and checked the write permissions ....

Am I doing something wrong here?

The console gave me that https://<mydomain>/Admin/Content/jsLib/Angular/angular.js didnt exist, so I copied the minified version and renamed it ...

In InternetExplorer the console states a null reference error in the saveInstanceDialog function ...

I kind of need a repository asap ...
 

InstanceError.PNG

Replies

 
Nicolai Pedersen
Reply

It is a problem with your global.asax or web.config file that does not include the right things from DW or IIS settings problem.

You can see from your dump that the MVC routes from DW does not return data - they return 404.

The problem is the routing that does not kick in - compare your solutions web.config with the one we distribute - especially the <handlers> section.

BR Nicolai

 
Peter Leleulya
Reply

Thanks for your response Nicolai, I'll investigate the issue

 
Peter Leleulya
Reply

Nicolai,

We discovered after a lot of research that the issue originated from our adding of "AttributeRouting" to the global.asax to enable our webApi.
It seems that Dynamicweb also adds AttributeRouting to the global.asax in its handler and the second time it gets added it throws an exception.
This resulted in missing routes for the repository I was creating.
Simple removing our Attribute routing solved the problem.
Maybe you can update the forum post about webApi with the correct way to use it ...
 

Kind regards,
Peter

 
Nicolai Pedersen
Reply

Hi Peter

Glad you figured it out.

Check out this guide which is much more new than the thread: http://doc.dynamicweb.com/documentation-8/how-tos/install-setup/setting-up-dynamicweb-with-asp-net-mvc

BR Nicolai

 

You must be logged in to post in the forum