web-site-project

How should I version an ASP.NET Web Site project?

我与影子孤独终老i 提交于 2019-12-24 04:24:10
问题 I've got an ASP.NET Web Site project and I'd like to display a version number and publish date, but I'm not sure how best to determine these. For example, the following code just outputs 0.0.0.0 LabelVersion.Text = Assembly.GetExecutingAssembly().GetName().Version.ToString(); Should I determine the assembly version somehow during build time and store this? I'm using CruiseControl.Net with MSBuild. 回答1: Well using the executing assembly is not neccessary a good choice as the executing assembly

How to compile a Website to use 32-bit Oracle Client on 64-bit Windows

我的未来我决定 提交于 2019-12-23 23:22:13
问题 I have received this error after updating to Windows 7 64-bit and then running an existing .NET Website. [InvalidOperationException: Attempt to load Oracle client libraries threw BadImageFormatException. This problem will occur when running in 64 bit mode with the 32 bit Oracle client components installed.] I have only installed the 32-bit Oracle Client installed and I understand that on my 64-bit development machine the application is expecting 64-bit libraries UNLESS explicitly stated. This

Azure Website/Visual Studio Online Continuous Deployment fails for Website

你说的曾经没有我的故事 提交于 2019-12-23 16:24:20
问题 I hooked up a Web Site project in Visual Studio 2013 to the continuous deployments within Azure Web Sites. Checking-in triggers a build, but I receive the following error: Exception Message: The deployment package file (*.zip) was not found. Ensure that PackageAsSingleFile msbuild property is not set to False. (type FileNotFoundException) Exception Stack Trace: at Microsoft.TeamFoundation.Deployment.Workflow.Activities.FindPackageAndParametersFile.Execute(CodeActivityContext context) at

Azure Website/Visual Studio Online Continuous Deployment fails for Website

丶灬走出姿态 提交于 2019-12-23 16:23:04
问题 I hooked up a Web Site project in Visual Studio 2013 to the continuous deployments within Azure Web Sites. Checking-in triggers a build, but I receive the following error: Exception Message: The deployment package file (*.zip) was not found. Ensure that PackageAsSingleFile msbuild property is not set to False. (type FileNotFoundException) Exception Stack Trace: at Microsoft.TeamFoundation.Deployment.Workflow.Activities.FindPackageAndParametersFile.Execute(CodeActivityContext context) at

When does an ASP.NET Website project recompile?

a 夏天 提交于 2019-12-22 07:59:53
问题 As Maurico and codeka first stated, don't use the default InProc sessions if you don't want your sessions to be affected by website recompiles and application recycles. A list of what causes whole website recompile: By default, when any change is made to a top-level file in a Web site, the whole site is recompiled. Top-level files include the global.asax file and all files in the bin/ and App_Code/ folders. modifying web.config a configuration include file change, if the SectionInformation

Can't use public class in my web service

核能气质少年 提交于 2019-12-19 10:44:06
问题 Why i can't use the following public class : namespace OrganizerUI.App_code { public class Employee { private string text; public string Text { get { return text; } set { text = value; } } } } in my web service : 回答1: Often (always?), code files that are added to the Visual Studio App_Code directory are not set by default to compile even if they are .Net code. They are set to "Content" which means they are included in the output only. If you right-click the file and choose "properties" you

Configuration of publishing an ASP.NET web site

牧云@^-^@ 提交于 2019-12-14 01:36:48
问题 Forgive my ignorance, though I am new to this. I've search a lot but can't seem to come to a definite conclusion, so any information is appreciated. So to the question: Is there a built-in configuration for web site publishing in MS Visual Studio called "Release"? The reason I'm asking is that some have told me it is, but I can only find the "Debug" configuration in Visual Studio. So, if there's supposed to be a "Release" as well, how can I get it or can I manually add a new equivalent? 回答1:

Is there a good way to send data from python context to C++ without too much copy involved

心不动则不痛 提交于 2019-12-12 03:12:01
问题 The title could be confusing. Here I will state my question more clearly. I want to create a website based on python (a lot of existing framework like Flask and cherryPy) and along with a C++ computation engine for the sake of processing speed. So I need to create an interface for python to call C++ functions. Fortunately the boost.python can do the job. However, every time I send a data from python, say a matrix, to C++, I have to use python list, which means I have to transform the matrix

Why are changes in code reflected in an ASP.NET website even if the code does not compile?

人盡茶涼 提交于 2019-12-12 02:44:39
问题 I am working on a rather large website project in Visual Studio 2010 and I'm wondering why changes in the code are reflected when I test a web page individually (by right-clicking the .aspx file and selecting View Changes in Browser ), even though there are errors in the code that prevent it from compiling. This confuses me. I am getting several errors when I run the code in Visual Studio. However, any change that I make, either in the client side code or the server side code, is reflected if

Website project: want to generate XML documentation on build

社会主义新天地 提交于 2019-12-11 11:14:06
问题 For legacy reasons, I'm maintaining a Web Site Project for which I want to provide up-to-date documentation from the XML documentation comments. I gather I can do that by tweaking the <compilers> section in web.config . I finally reached this point: <system.codedom> <compilers> <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider" compilerOptions="/optimize /doc:C:\temp\my-output-here.xml" warningLevel="1" /> </compilers> </system.codedom> Now when I