This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
When I try to save a .less or .js file, I get a SaveAs dialog box followed by an 'Operation is not valid due to the current state of the object' error message box. Note, this is in an ASP.NET Web Site (not a Web Project). The problem doesn't happen in MVC projects. I have no Visual Studio source control active for the project (although the folder actually is a SVN working copy). This didn't start happening until after I upgraded to Pro. I saw a couple other similar sounding threads, but the suggested fixed versions in them didn't work for me, nor did the latest nightly build. Let me know what additional information you need from me to debug this. As a side note, when I choose Web Workbench Settings from the Mindscape menu, I get an error 'URI formats are not supported'. I don't know if this is an indication that my install is somehow broken. I did try uninstalling and reinstalling but that didn't affect either problem. |
|
|
Hmm, is your Web Site located on HTTP or FTP rather than on the file system? The URI error sounds like we're not able to resolve a file system path to save the compiled and/or minified output. |
|
|
No, it's not remote. It's just a web site in a folder. In other words, in Visual Studio 2010, File -> Open -> Web site, browse to local folder containing some *.html, *.js, *.less files). |
|
|
P.S. The URI error is when I try to open the settings, not when I try to save a file. |
|
|
Sorry for the many replies, but your question made me think of something to try. My project was using IIS Express (right click the Project in the Solution Explorer and choose 'Use IIS Express..."). When I switched it back to the old Visual Studio Development Web Server, the problem went away. Hopefully that helps you reproduce it. IIS Express is much better than the old dev web server, so I hope you can fix this. |
|
|
Thanks for the extra info -- I'm not sure why IIS Express versus Cassini would make a difference to us but that should definitely help track it down -- we'll get onto it! |
|
|
Could you try the following:
In my test environment, I was now able to display the Web Workbench Settings window, and the 'Save As...' message went away. NOTE: Since you have converted your Web Site to Cassini and edited .less files in that mode, you may find the WebWorkbench.mswwsettings file already exists, in which case you do not need to edit it or create a new one. Does that work for you? If so, I think we'll close this issue, as the fix for creating a settings file under IIS Express is a bit tricky, and doing a one-off 'convert to Cassini, force the settings file to be created, then convert back to IIS Express' or 'add a XML file by hand' workaround isn't too painful! If you're still seeing the error after creating the settings file, do let us know and we will investigate further. |
|
|
That worked. |
|