I have an ASPX page that is part of a much larger web application. I am trying to get Aspose.Cells GridWeb working on this ASPX page, but keep encountering the "acwmain is undefined" error.
I have created a virtual directory "/acw_client" that points to the physical location where the acw_client folder is located within the larger web application. I can successfully access one of the htm files located there so I know the virtual directory is setup correctly.
I added the 3 appsettings to the web.config file in this larger web application. I verified they are set by reading them from the C# backend code and displaying them on my ASPX page. They are set as:
Yes, I agree that the sample project/solution works great. I can also see that in the demo solution I downloaded and used during my evaluation.
I have updated to the latest version.
Now I want to move the artifacts that are generated from this little project/solution into my larger web application which contains artifacts from hundreds of projects. I have done the following:
* copied Aspose.Cells.GridWeb.dll to the web application’s bin folder
* copied my Page.dll to the web application’s bin folder
* copied my Page.aspx to the web application’s main folder where all the other aspx files are.
* Edited the web application’s web.config file and added the appSettings
* copied the acw_client folder to the web application
* created an IIS virtual directory /acw_client pointing to the actual location of the acw_client folder within the web application.
Did that. See the next to last line in my previous post : " * created an IIS virtual directory /acw_client pointing to the actual location of the acw_client folder within the web application."
I proved the virtual directory is correct by adding a script tag in the aspx file with “src=’/acw_client/acwmain.js’” and seeing that the file was successfully loaded.
From what you said, we found that, you do not need to add js link to aspx file, what you should do is only put acw_client folder to the root directory of the website, put Aspose.Cells.GridWeb.dll to “bin” directory, edit web.config file
Please note: clear browser cache before retest the website.
We don’t think you have configured “acw_client” directory well, you should check the directory, if the directory shown to browser as the follow format:
I have done some more investigation on this and I believe my acw_client setting is correct. I base this on the following evidence:
My settings are currently:
Using a browser I can access http://localhost:90/CPM/workstation/client/acw_client/acwmain.js and the download window appears. This tells me I have browser access to the file.
When I encounter the error, the “footer” of the GridWeb contains all the images that come from this same folder (left arrow, right arrow, save, etc). And looking at the page source, I can see the src attribute for those image tags include the acw_client_path defined above.
My question: How is the acwmain.js file loaded?
I have attached a zip file containing a screen shot showing the GridWeb footer images and the actual page source as captured from the browser through View Source.
From the source “DeatilLinesSource.txt”, we did not find any shadow of “acwmain.js” and we think maybe you use a master template process filtered some js file or the client process something by using some HttpHandler or HttpModule
Please supply us a way how can we reproduce the bug.
In case it helps your developers, I have attached a zip file containing 3 screen shots showing all the handlers we have defined for this web application
We have checked the “Handlers.zip” and did not find any custom handlers.
And also we set the website to .net framework 4.0 (the same as your settings), port was set to 90, for the webpage http://localhost:90/TestGridWeb.aspx, it works well and have no javascript error.