I have a web application that uses Infragistics 8.1 NetAdvantage controls.
On my local machine, it automatically created an ig_res folder under our project folder structure. We never added it to the web application project.
When I publish it to my local IIS machine. I get 2 404 errors in my IIS log file that say
12:46:29 127.0.0.1 GET /testapp/ig_res/default/ig_shared.css 404
12:46:29 127.0.0.1 GET /testapp/ig_res/default/ig_splitter.css 404
Can anyone explain why our application is looking for these 2 files under the web_apps default path instead of looking for it in the ig_common like all the other files that were automatically created in the /testapp/ig_res folder.
Any help would be greatly appreciated.
Not sure I quite understand. Your saying that all of the other files that are included in the ig_res folder are being found in ig_common? That does not sound right. Here is some info on the Splitter and why its trying to find ig_res.
All of the Aikido-based controls (like the Splitter which it looks like you are using), by default use Application Styling. As a result, they attempt to look in the local project for a folder called ig_res which contains the Application Styling resources. This is also why the folder was copied into your project, which the Aikido-based controls do when you initially drop them on the form.
We decided to make the Application Styling framework look at the local project rather than a common virtual directory becase since the release of VS2005 we can no longer depend on IIS to be on the local system, which means we cannot depend on the ig_common virtual directory to be there. Its much more reliable to, out of the box, just add what we need to the local project and look there.
You can of course configure the controls to look whereever you want for these resources if you do not want to include them in your local project by using the controls StyleSetPath property, or you can change the path for your entire appliction by changing these attributes in the web.config:
<infragistics.web styleSetName="Default" styleSetPath="~/ig_res"/>
Does that help?
Devin
Devin,
What we didn't understand was if we needed to add all the files in the /testapp/ig_res folder to the web application project so when we publish/precompile it, the IIS folder would also have an ig_res folder. Since we didn't create the folder, we didn't add it to the web application prject and non of the files are published to the IIS site, yet we only got 2 404 errors. That is why I was thinking Infragistics must install them all to a folder under inetpub\wwwroot\aspnet_client.
Since we don't control (or know) when infragistics adds new files to the ig_res folder it makes it hard to add the files to the web app project. I think with all you said, then that your suggesting I either add all files from the ig_res to the project, or we manually copy that folder to the published website and make sure the path is correct in the webconfig? Is that what you recommend?
Thanks...