Auto Compile Sub Project Of A Website Solution?
Feb 25, 2010
Is to possible to make a configuration entry (web.config). That automatically compiles a referenced project(for example a class library) when the site runs? This would be easier for me to maintain on my hosting server. Otherwise i have to always recompile the files and upload them again for every small change.
View 1 Replies
Similar Messages:
Apr 24, 2010
How to make new project and website into only one solution?
View 2 Replies
Feb 24, 2010
this seems to be a problem only on my new PC, not my prior PC or my coworkers PCs. But, as far as I know, I have installed VS2005 the same way, including the VS80-KB915364-X86-ENU.exe and WebApplicationProjectSetup.msi additions.
I have a VS2005 Solution called 'Intranet' made up of several web projects. One of those web projects is also called 'Intranet'. All of the projects should load as Web Application Projects, which they did on my prior PC.
Now, the 'Intranet' project seems to be opening as a Web Site project. The name of the project in the solution now shows as "C:...Intranet" instead of just "Intranet" and is not recognized as being part of the SourceSafe project(no lock icon shows). If I right-click this project, "Build Web Site" is one option.
View 3 Replies
Nov 18, 2010
How to access proxy class of a web service which has been referenced in the website project of a solution within a class library project in the same solution?
I mean no web-service reference/setting is added to the class library and instead it needs to be picked from the web project.
View 1 Replies
Feb 12, 2010
onething is not clear to me that in asp.net 1.1 there was asp.net project type but from 2.0 there is no asp.net project type option rather
there is option called website. in website type project no solution is created and no link is created with IIS.
why microsoft design in this way from 2.0. i think there must be soldin reason & advantage behind it.
View 4 Replies
Oct 31, 2011
I have a VS 2008 solution. I need to copy an existing .aspx page and re-name it to something else (need to make modifications to that newly copied page). But I keep getting compilation errors saying that duplicate text boxes exist. Can't I have control on different .aspx pages with the same name? How can I do this elegantly?
View 4 Replies
Aug 4, 2010
Let's say I have a Visual Studio solution with a Web project, a BLL project, and a DAL project. I'm trying to follow the repository pattern keeping my SQL code in the DAL with an interface that is referenced by the BLL.
I have a handful of common solutions for things such as error handling, usage logging, and other things that can be considered utility functions (i.e. not in the business spec). I'm keeping these in a Common project.
Here are a few ideas I've had with regards to structuring the Common project...
Bundle SQL with logic in a given class
Create a layered solution within the Common project
Discard the Common project and put utility functions in with BLL/DAL
Is one of these ideas better/worse than the other? Does anyone have a better solution?
It's worth noting that these utility functions will be reused in a variety of other applications.
View 1 Replies
Oct 7, 2010
Working with Visual Studio (I'm using 2008) I have started to notice that when you save a file in the /App_Code folder, the program will hang for a bit before returning control. After a bit of research, I have learned that there's an auto-compile feature at work, which I assume is what is slowing down my system.
So the question is this: Is it possible to turn off the automatic compiling of files in the /App_Code folder? Or, even better, is there a way to reduce the time that it takes, or make it work a little more smoothly in the background?
View 2 Replies
Jul 19, 2010
I fired up my first asp.net 4 app put together with visual studio 2010 and IIS doesn't seem to compile my code behinds on the fly for some reason, I have to build the site manually.
How do I configure my app to compile code behinds on the fly? I looked around but I must be missing something. Never had this issue before.
View 1 Replies
Mar 4, 2010
i have the project files which consist of some folders and some aspx and aspx.vb files.
I do not have any solution file or .sproj file in it.
so I need open a single file at a time and I can not debug the whole project or any single file also.
Do I have to generate a project file or solution file,
I just wanted to open the whole project file by opening a single file in VS 2008.
so that all the folder structure and the files I can view in solution explorer.
View 1 Replies
Jan 6, 2011
Microsoft JScript runtime error: 'undefined' is null or not an object:
And it worked fine with the ajaxcontroltoolkit 3.01
Now on 3.5 i gives problems.
Ok this is a reported bug so the solution(supposedly) is this:
[URL]
how do i compile the project.try to run the AjaxControlToolkit.VS2008.sln and errors pop out form everywhere.Is the dll available with the fix somewhere?
View 11 Replies
Feb 3, 2010
How do I compile an ASP.Net MVC project using MSBuild? We use a Continuous Integration server to compile and deploy our applications. To keep things simple I created an MVC 1.0 project in VS2008. I immediately created an MSBuild script file to compile it. I did not change any code in the project. The MSBuild script contained the following target.
<AspNetCompiler
VirtualPath="/"
PhysicalPath="C:Developmentmvc1"
TargetPath="c:publishxxx"
Force="true"
Debug="false"
Updateable="true"
The MVC project sln file is contained in the c:developmentmvc1 directory.I am running XP/Pro.I am receiving an error ASPCONFIG: it is an error to use a section registered as allowDefintion='MachineToApplication' beyond application level.
I removed the authenication mode, membership provider, etc. from the web config file until I finally saw a different error message.I am now receiving an error message saying that the file '/views/shared/site.master' does not exist.
View 3 Replies
Jan 3, 2010
I've noticed that my project builds successfully when I hit F6.But when I run it with F5 the compilation errors in my C# surface.Why is this?Is it because the JIT compilation happens when I debug with F5 but not when I build with F6?
View 6 Replies
May 10, 2010
Is it possible to compile a web application project .ascx (user control) into a dll?I want to do the following:Use the same control in multiple websitesEmbed css and .js as resources into the controlBe able to update super easy. If the user control updates, I just want to update 1 .dllI have successfully followed this article, [URL]However, that uses web site projects, and I cannot embed js css as resources into web site projects.
View 3 Replies
Feb 16, 2011
I have decided to go back to an old project that I had placed on hold, to get familiar with MVC 3 Razor. It is a Jokes website (some of you already know). I have been watching these video tutorials on Code First Entity Framework 4, and I have managed to build my model in a project of its own. Then I went and created another project (this time MVC 3 Razor Blank Project) and linked the two togther. I am trying to simply list the joke, but I get the error saying:
CS0012: The type 'System.Data.Objects.DataClasses.EntityObject' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
public class _Page_Views_Home_Index_cshtml : System.Web.Mvc.WebViewPage<IEnumerable<LNModel.Joke>> {
Here is the code in my HomeController:
[Code]....
I know what the error means, I am missing a { using System.Data.Entity; } statement somewhere. But I can't understand why ! according to the video, if I have referenced my projects to that statement, I shouldn't be having this problem !
View 15 Replies
Dec 16, 2010
Scenario:
1) Create completely empty VS 2010 solution.
2) Add one project. Now there's one project but no solution root.
3) Choose "Add new project" from the file menu.
4) Add MVC 3 empty project
5) It fails because the current "something" is neither the solution nor a solution folder.
Workaround: create two other projects first.
View 2 Replies
Oct 6, 2010
I have two projects in the same solution:
My.Solution.name.with.dots
BLL
Web
in the BLL project, I create a class that need to get a global resx value from RESX file that is placed in the Web project. Is it possible ?
BLL can't have a reference to Web project because of the project dependency
View 1 Replies
Apr 24, 2010
There is a solution that whithin it I have a web project.
Now, I wish to add a new web project which has it's own App_Data,App_Themes.App_Code.
I don't wont to mess things and combine them both in the same project. I just won't to compile the new project and upload it sepretly to the web server in a different directory.
How do I do that with VS2008?
View 1 Replies
Jan 7, 2011
I want to put my website project and admin website under same project as I want to use session and authentication of the main site. Also I want to show the admin, the page, where he has made changes. But the problem is whenever I will change anything in admin pages, I've to build the entire website. I don't want to do that. Can I build that separately?
I don't want to choose the option of building all pages separately as well.
Is there any alternatives of doing that. Separate projects for admin and website will come up with many other challenges. So I would like to avoid that.
View 2 Replies
Feb 4, 2010
I have 2 projects in my solution.
MVC Web application
Class library
The MVC Web application references the class library.
The class library contains a class that extends the default ASP.Net Controller.
I'm putting a variable in session in the application's Global.asax.
protected void Session_Start(object sender, EventArgs args)
{
HttpContext.Current.Session["DomainName"] = Request.Url.Host;
}
In the class library I'm trying to get the value from the HttpContext.Session, but HttpContext.Session keeps coming up null.
[code]...
HttpContext.Current.Session doesn't seem to be an option in controllers.
View 3 Replies
May 26, 2010
How many web.config file does a solution/project can contain?
View 6 Replies
May 7, 2010
For the first time in my career, I'm working on an ASP.Net (v3.5) project that has been set up as a Visual Studio 2008/10 Web Site Project.
I'm not keen on this way of working this way for various reasons but for the moment and until such time as the company sees the virtue in working in an environment with namespaces, designer and project files etc., I have to continue with the existing codebase.
I've run into some odd issues since I began this but perhaps the oddest one of all is that althought VS lets me build the code, it doesn't reliably pick up compilation errors so these are not noticed until runtime.
I know the website model allows dynamic/hot compilation when a request is made for a specific but I can't see why it wouldn't do this when I manually (F5) build/rebuild the project. Its immensely annoying as you can imagine and I can't find a workaround.
View 3 Replies
Feb 1, 2010
I have the following list of projects WebUI (WebSite) , DataAccess (ClassLibrary) , LogicLayer(ClassLibrary). Those of the project are purposively crated separately.But my scenario is, need to create only one solution file, then add all of the above projects under this solution file. So that i can be easiy interacted and changes can be made by opening solution file only instead of opening each project individually.
Simply all of the layer projects are under one roof means one solution. I tried it by adding solution first, then i added already existed project into this. But once after added already existing project the solution icon vanished by showing the icon of recently added project. By this way I could not add another project into this section too.Hope this is the way the basic real-time projects are created; to achieve the centralized control over architecture based projects.
View 4 Replies
Aug 12, 2010
I have to modify a exist web application in Asp .Net, the problem is that I have the application just on the server.
I copy the application on my pc but now I have to create the appropriate solution and project to modify it.
I've all the file .cs and the dll already deployed.
How can I create the web application with .net ?
View 1 Replies
Nov 29, 2010
I am trying to find a way to have my Entity Framework model in a seperate project within my ASP.NET solution.
Currently I have my DataManager project (which contains my EF model and some classes) and a second project which contains all my web project files.
The problem that I have come across is that I have a database connection string in a App.Config file in my DataManager project and the same connection string in my Web.Config from my web project. I basically have a duplicate connection string.
Is there a way to only use only one connection string in my project (preferably from my web.config)?
My only concern is that when it comes to compiling my project I will not be able to change the connection string in the App.Config contained in my DataManager project.
View 1 Replies