Configuration :: Include Empty Folders With A Pre-compiled Site?
May 3, 2010
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?
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 want code in VB.NET to create javascript arrays of the folder contents that can then be used on the client end. I only need arrays for all folders contained in folders starting with ad_ and an array for all the base folders . like so:
var folders=["ad_folder","ad_code","ad_prep","ad_bin"]; var ad_folder=["folderA","folderB","folderC","anotherFolder","etcfolder"]; var ad_code=["folderA","folderB"]; var ad_prep=["folderA","etcfolder"]; var ad_bin=["etcfolder"];
note that I do not know the number of or the names of the folders, they can be different in different cases, I only have the root path.
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?
In an MVC view, I'm looking for a way to determine if a parent entity's collection of child entities is empty, so I can decide if I need to call a RenderPartial() or not.
For a one-to-one I've been using the following:
<% if (Model.Book.GenreReference.EntityKey != null) %> {.....}
but I'm unsure how to do it in a one-to-many scenario, or if it can even be done without the use of Include() or Load().
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.
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!
In reconfiguring my site, I have deleted a few class files that are no longer needed. Upon deletion, intellisense is showing an error:
Error 8 Type 'Class1' is not defined. C:WindowsMicrosoft.NETFrameworkv2.0.50727Temporary ASP.NET Filesandersonwoodcrafts.com7a5f45392b25e40Sources_App_Codeprofile.cdcab7d2.vb 42 56 C:...andersonwoodcrafts.com
I have attempted to delete these manually from the file system, but it didn't correct this error.
"My application (ASP.NET) writes certain files in folders on my servers. In IIS 6.0 I used to give write access to IUSR account so that IIS can write to the folder. Now what I see is my application pool runs under App Pool Identity account. That is good but users are able to create files in the folders without App Pool Identity user being given specific permission to do so.
I want to include Microsoft AntiXss V1.5 library on my live site running in a medium trust setting.However, I got an error something like:Required permissions cannot be acquired.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Security.Policy.PolicyException: Required permissions cannot be acquired.I tried this in full trust setting on my development machine and everything works good.Looks like this will run only in full trust configuration.
I am working at a site not orginally devleoped by me. The problem is that all the pages are working fine and have no problem at my local site. but the site is not showing any content at live site from database. Niether it shows an error for it. How can I find the problem?
I am neither a server administrator nor very knowledgable about how to configure IIS, so I have the following problem:
My client hosts their public website from their own internal server running Server 2003 with IIS 6. The current website is a .NET 1.1 application configured as a website in IIS. Within this site a separate virtual directory configured as an application runs a separate .NET 1.1 app that serves as their online webstore.
I've been tasked with upgrading the website (not the webstore) to .NET 4 and getting it installed and working on their server. My initial plan was to simply change the existing websites home directory to the new home directory from the IIS admin console and be done, but then I read that this would break the application directory that hosts their online store because .NET 1.1 applications cannot be nested within .NET 4 applications. Can anyone confirm this?
I want to include installation and registration of Widnows Service in Web Setup. (During Web Site Setup Windows Service also Install and Register on a client machine)
Im trying to build a deployment package out of VS2010 against a web project and want to include all IIS settings as configured in IIS Manager. However when i enable this i get the following error message
Object of type 'manifest' and path
[code]...
Now this error makes very little sense as the specified application does exist in Default Web Site. I've checked the spelling. I've tried having ISV as a virtual directory and as an Application and tried with and without the ISV folder.
On the Web page i hae the Project URL set to [URL] On the Package/Publish tab IIS web site name is set to "Default Web Site/ISV/Web.Crm.Framework/"
Bing/Google search turn up very little on this and the documentation is not really detailed enough.
I have 2 sites, one the main product site the other a secure site featuring the basket and checkout processes.
When a user clicks "add item to basket" I am creating a basket in a database and then adding the items to the basket. The theory was then to store the id from the database for the basket (the basketid) in a cookie, redirect the user to secure site, use the basket id from the cookie and display the contents in the basket.
However I am having trouble getting the secure site to use the same cookie. When I redirect the users to the secure site, the basket appears empty. I need to go back to the main site and then back to secure before the cookie appears.
Here is the code for the cookie
[Code]....
And then on the secure site this is how it gets the basket ID from the cookie
[Code]....
But like I say it's having problems. I've tried replacing the cookies with session variables as well but it didn't work.
I am having serious issue running a MVC web site from IIS 6 especially with Windows authentication mode. I know its very simple but missing some ting between. Succeeded configuring MVC on IIS 6. Now Trying to enable Windows Authentication mode on MVC Web Site, Steps included in my configuration
- enabled windows authentication mode in web.config - Enabled Integrated Windows Authentication on IIS web site under Directory Security. - Given permissions to a Domain group (eg: asiaDomainGrp) [Read, Write] Do i need to add ASP.NET Machine accountIUSR_<machines name> under this?
During the intial loading, I am trying to query Active Directory to get authenticated user's full name to display on default page, this is not success full due to some issue, later I changed to "HttpContext.User.Identity.Name". Now I could able to access Default page from the web server, but real heck is here. For some reason IIS is using NT AUTHORITYANONYMOUS LOGON. [Code].... I have separated two servers as Web server/Database server.