This project is read-only.

Publishing Site from Visual Studio 2008

Topics: Controls
Apr 23, 2010 at 2:33 AM

When I publish the web site project as a pre-compiled site and move it to the produciton area I encounter a few problems.  One of them is that the widget selector is empty because the selector is looking for widget.ascx in this code from WidgetZone.cs 

foreach (DirectoryInfo dir in di.GetDirectories())
	if (File.Exists(Path.Combine(dir.FullName, "widget.ascx")))
		writer.Write("<option value=\"" + dir.Name + "\">" + dir.Name + "</option>");

In the published version of the site the ascx files are missing, so I just copied up the uncompiled version of the widgets sub directory. Should I not be publishing the site from Visual Studio? Would it be better to just copy the project folders directly to the production machine?



Apr 23, 2010 at 5:47 AM

Yes, just copying the files 'as-is' is what most people do and how BE is developed and tested.

Some people have been able to precompile, but others have ran into problems.