Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Nov 29, 2012 04:43 AM by Kensino
Nov 28, 2012 02:46 AM|LINK
I'm using 2012 Professional and I've been trying to create a release configuration for my website, and also use the new web.config transforms. However, I'm not able to create a release configuration. Even when I go into configuration manager and create a
new configuration, the only option I'm given is Debug.
Also, when I right-click the web.config file, as MSDN says, I don't have the option to add a new transform.
I've been looking around, but I can't find anyone else with a similar problem. How can I fix this?
It's getting very annoying as I have to keep changing my connection string, and other settings every time I want to try a debug build on the beta server, and then I have to change them again when I'm publishing to the live server. Sometimes I forget to make
the change, and everything goes down.
Nov 29, 2012 02:24 AM|LINK
Generally You can switch between Release and Debug by using the Standard toolbar or the Configuration Manager.
You could follow the article to do it
If you still encounter same problem, please let me know.
hope it helps you.
Nov 29, 2012 03:10 AM|LINK
Yes, it works that way when I have a Windows Application. When I create a Website, I do not have that option.
Here is a screen shot:
Nov 29, 2012 04:33 AM|LINK
Website is different from Windows Application, so there isn't release option when create a website.
You could learn relevant information in internet, such as Web Application Projects versus Web Site Projects in Visual Studio-
Nov 29, 2012 04:43 AM|LINK
According to Microsoft, there is a release and debug option for websites, otherwise, someone hacked their website and put up false information... Which wouldn't suprise me.
I don't see any reason for a web.config file to be included in a Windows application, so this is a website document.
To specify the changes that you want to be make in Web.config files, you use
transform files. A transform file is associated with a
build configuration. By default, Visual Studio creates
Debug and Release build configurations. You can also create custom build configurations