I want to publish my web application as a single .dll file without all the source code and .aspx markup pages.
I am using VS 2010 with the "Web Deployment Project" add-in. In the compilation settings, I unchecked "make this site updatable" because I want the .aspx files to be compiled as well.
Publishing my web application using the publish feature in VS 2010 works fine, and a single .dll file is created in the "bin" directory.
But all the .aspx markup files are still copied to the web server! I've read that those files are merely marker files which can be deleted, but not in my case. They still contain the whole markup and when I delete them, my application won't run anymore.
It's like I had checked the "make this site updatable" option, but I haven't!
From time to time my application crashes and I start getting all sorts of weird errors like "object reference not set to an instance of an object", that then turns to "failed to enable constraints..", etc. Sometimes then the application starts to work again properly by itself, and sometimes not until I restart IIS, after which everything is ok again.
Complete newbie with asp.net using 2008 express edition.I made a master page and one simple page, and used the ftp copy web site tool to load the pages to my web site.When I try to open the one page, I get the message has not been pre-compiled, and cannot be requestedI havedone some searching on the error message, and most places talk about missing things from the Bin directory. I don't have a bin directory on my local machine.
We deployed a UserControl to our testing server. Then made a change to the UserControl and re-deployed. I cannot get the change to take. We have cycled the ASP.NET server, deleted the file completely and re-copied, and also tried a suggestion to change the web.config in order to force all files to be re-compiled.
I definitely know that we are changing the correct file. At one point, I removed the UserControl file altogether and received the "File not found error" when trying to load the user control. The file IS the correct version on the testing server.
[ASP.NET 4.0, Windows Server 2003 SP2, IIS (I think 6?)]
I am using TFS to build my MVC app. I cannot do it because I get lots of compile errors. I am using version 4 of .Net and MVC 2. On the build server I have the .Net framework 4.0 installed. It has been suggested that I should also download the MVC framework as well, but when I look on the net all I can find is this MVC framework; http://mvcframework.codeplex.com/ which does not seem to be relevant and does not work anyway.
One of the assemblies I am missing on the build server is System.Web.Mvc dll.Typical error messages include; "The type or namespace name 'Mvc' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)"What do I need to do to fix this?
I was commissioned to write a search asp.net page for a company. Page works great, they finally ask me to deploy to the web server. I RDP out to the web server, and instead of finding a normal deployment, I see all the aspx pages along with their code-behind files. They do not pre-compile their pages.
So in an environment like this, how do I deploy my asp.net page? I can get pages to run that don't have dependencies on other things, but this particular page uses Linq. So in my web project, I have a dbml file, and it's generated pages. I have put the dbml and related files on the webserver. The page fails when it encounters the using datacontext statement.
Anyway, I need to pick up on another person's project who has left and essentially what I have is his code base which compiles under Visual Studio2010 Ultimate. I need to dig into his code (VisualBasic) in order to fix some minor problem & make some enhancements. So anyway, I started it up and compiled everything. Then I press the little green arrow button, and the project starts up and launch the browser which then access and run this project. However I need to run this under IIS because I have to try access the webservice from a remote platform. Meaning this has to serve a remote connection and not just the browser from within VisualStudio. Could someone give me a little howto in order to set this up and running under IIS?
I am developing a web application that I want to ensure is properly licensed each time they log into it. This application can either be hosted by my company or hosted at my client's site. I wanted to do this verification via a web service hosted on my company's server, but the problem is if the client's outside internet connectivity is down I still want them to be able to run the application and have it verify when it's back up and running again.How would you propose I do this?
I have 2 versions of the same website, one compiled and the other one just plain code.The plain code website correctly inserts these records in the db, but the compiled one is not doing it.
I have a feeling the Global.asax file is being ignored by the compiled website. I can see the dll for it in the in folder: App_global.asax.compiled and App_global.asax.dll although I can't see a Global.asax file in the root folder (do I need one?)
I must say the website is compiled with MSBuild and then obfuscated using Dotfuscator.
We run our web app through a pre-compilaton command line before deploying it to a staging environment. The only problem is that some of the folders in the project do not get copied into the deployment folder that we target from the precompilation command line. I initially got around this problem by placing a none.txt empty file but this is only a hack. Is there a way to ensure that empty folders get copied too during precompilation?
Does code in an .aspx page (in between <% %> tags) get compiled in a web application or is it treated like markup where you can just change it without recompiling the solution? Does compiling only compile the code behind code in the .cs and designer.cs files ?
I have a web application and I'm using asp.net routing. When I publish it with the Only files needed to run this application selected it gives me an error when I'm loading any of the page "HTTP Error 404 - File or directory not found."
I built my ASP.NET website using vs2008 professional.
Now I have purchased vs2010 professional edition.
I do format my computer and then installed vs2010.
Now I want to deploy my website in vs2010, but it is giving configuration error in <add assemblies...
Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Could not load file or assembly 'System.Core, Version=188.8.131.52, Culture=neutral, PublicKeyToken=b77a5c561934e089'
We are going develop a web application using asp.net. This applicaton is going to server 50 users per day and 40 users concurrently. As the user count is less, we are planning to have two webservers clustered under a webfarm. We are planning to go for a Sticky Session. Netscaler is the load balancing and reverse proxy we are using at hardware level to route to the same webserver till the end of the client session.
1. Do I need to implement any handler at asp.net level to route the session or to provide browser cookie details of session to NetScaler? If so, what should be implemented in detail. Any sample code will also be helpful.
2. I need to maintain a big chunk of object information in session. Does a webserver can handle it?
3. At the hardware level how ReverseProxy works to navigate it to the same webserver? I want conceptual details of it from a web application end.
Apologies if this seems obvious, but after a week searching I can't find a clear answer to my problem.
I have developed an application in Visual Web Developer 2010 Express that uses the asp.net application services membership provider. It works well in development on my machine (data in the ASPNETDB.MDF database).
I packaged my application and deployed the relevant files with FTP to my shared hosting provider.
I took a copy of the ASPNETDB.MDF and restored it to the SQL Server 2008 on my shared hosting. I can connect to this through the Database Explorer in Visual Web Developer, but it doesn't contain any schema or data.
I know once I have the database in production I will have to make sure the connection string in web.config is poiting to it, but I don't know how to get the DB to production in the first place.
We have lot of application parameters for each module in a C# .NET 4 ASP website. parameter examples: timeouts, formulae constants, thread limits per module, $ charges per usage etc. What is best out of following approaches we know: Use DB config table Use an xml. load that xml into local cache on start (and on xml change) simple constants.cs file with public const int XYZ = 123; type of key-value pairs. web.config (though i think its mostly for deployment type of config)
I have a web.config file defined in my asp.net web application. I have many different settings configured there. I have another project, this time a console application. I'd like to read several configurations from my web.config file. How can this be done?