Monday, March 19, 2012

cannot open a jscript file

SQL Server CTP Sept 2005.

In Microsoft Visual Studio 8 after starting an Integration Services Project I tried to create a jscript file. A file was created but the browser was completely messed up.

First I was never able to open it (right after it was created but not yet saved). The file name "jscript1.js" would appear as a separate tab on top of the window next to the "start page" but when you click on it the the file does not appear in the editor window as I assume it should. Instead the same object browset or start page would stay under the tab name "jscript.js file." Sometimes strange vertical stipes appear next to the tool box or instead of it. Quite weird, obviously a bug in the designer. A MS error report was automatically generated at one point and sent to MS but it took almost 20 min to do despite a broadband connection.

After I tried to save the file the browser seemed to freeze but I could eventually shut it down. I found the file in the proper directory but there is no way to open it in the VS Browser now (I opened it in the notebook). The Windows dialog box simply freezes when the file is clicked on.

I am still experimenting. Finally I was able to open it when I changed the sequence of operations. First, I opened the file, then ADDed the project to it. It is very weird. Am I going crazy and doing something nobody has ever seen or it is a known bug?

Thanks.Well, I've been able to open it only two or three times out of many attempts. The browser is messed up. There are problems with many windows. I reinstalled the .NET Studio (repaired)--to no avail. I scanned my entire system for viruses. It is clean.

I need an answer why I see those weird things.

Thanks.|||Since JScript File is not an option that's available when you add a new item to a project, which item type did you choose? Maybe that has confused the IDE.

I created a text file in the file system, renamed it with the .js extension, added it to an SSIS project (where it appears in the Miscellaneous folder), and opened its editor window without any problems.

-Doug
|||Many many thanks,

I repeated what you suggested (created a text file, renamed it .js and, most importantly, MOVED it into the project). Yesterday I did not pay attention to the "move file **** into" tab and it never appeared in miscellaneous which made me wonder. Now it works perfectly fine. No weird behavior anymore for sure.

Actually you are wrong about jscript not bein an option, sorry about saying that. There are two options: "general" and "scripts" under "new file"; "general" then branches into "text, xml," etc... and "scripts" into Jscript, VBScripts and Windows Script host.

Still there is a problem with the arrangement. I just tried to create a jscript file as I did yesterday, save it as a jscript file and move it into the project. I observed that if I first saved it and then moved it then I could open it and see the content in the editor. If I MOVED it first and then saved it the things are messed up although not as badly as I saw yesterday.

In any event, you advanced my understanding of the GUI greatly and I am very appreciative of it.

Thanks.

No comments:

Post a Comment