Visual Studio 2008 ASMX files -


It is not technically a programming question, but it is related to the heavily used programming equipment, It seems that this is the right place for it.

In Visual Studio 2008, if I have an asmx web service and I double click on the asmx file then it opens the asmx.cs file, it looks purely sensible because there is only one single Line instruction in the actual asmx file However, if I click directly on the asmx.cs file, it tries to open it in "Design" mode, that is the mode for ASPX files, where it gives you a visual drive instead of a markup Shows Inner. The result is that you are either getting a gray screen that this file type can not be seen in design mode or you only get a quaint visual studio exception handling page. All I am doing is to double click on the asmx.cs page. If there is any interest then I can post screen shots. I have also seen this behavior on the machines of my colleagues, so it sounds like some strange sound when my special set up. Has anyone seen this behavior? Can anyone reproduce it? Is this a bug? Is there a service pack that fixes it? Is this some strange setting that I am unable to find is not a show stop because double click on the ASMX file opens the release code file but I would probably like to fix it.

The .asmx file is essentially a markup file that indicates code-backed file since Markup will never change, (formerly VS 2008) VS Developers thought it was a good idea to display a warning screen instead.

To avoid this warning screen, you can right-click the .asmx file, select Open with ... and select source code (text) Set editor editor to default in VS2008 and VS2010, code-will be displayed when you double-click the .asmx file in the future.

If you want to view and / or edit the markup of the .asmx file, just click the correct .asmx file and select 'View markup' is not sure that it works in VS-2008 (It's not here), but it works in VS-2010.


Comments