MVC :: How To Set The Start-up Page
Aug 18, 2010
When I run my project and I'm looking at a View, the project runs that start-up page specified in my HomeController class, which is great. But if I'm looking at a class or a model, and I run the app, then it tries to make that class the start-up page and gives me the error "A project with and Output Type of Class cannot be started directly". So I have to close the error box, open up a random view, and then run the app. Is there a way around this? It shouldn't matter that I'm working on a class file when I run my app.
View 3 Replies
Similar Messages:
Oct 28, 2010
What is the right approach when users (authenticated domain admins) should be able to start batch jobs (usually exe files) from an IIS (7.x) aspx (c#) page? This is an intranet site. The batch jobs have to run on the web server as Domain Admins. The website pool is executed by network service or some similar restricted account in AD.
Approaches I can think of (and their disadvantages):
1. Start exe file with System.Diagnostics.Process.Start with another account. This feature is disabled in IIS 7.x, how do I allow it?
2. Create a sheduled task and call scheduled task-api. This unmanaged dll is giving VS compiler warnings because it's unsafe to call from managed code.
3. I suppose there's a better approach, because the previous suggestions doesn't appear safe or robust.
View 2 Replies
Jan 26, 2011
I am trying to register the route collection in .net based on each session. The code I have works fine, you goto website/username and it loads the correct sub pages, but you have to restart the application to goto website/username2 to load those sub pages. But when the application is restarted the second one works, but then not the first one. Is there some way to create a different route collection per session not per application using system.web.routing.
View 3 Replies
Mar 17, 2010
I have a project which uses VS 2005 and .NET framework 2.0. I saved my project and did not change any codes. Before this Monday, my project worked as normal, after I enter user name and password on log on page, it would go to start page. (The log on page is called from another project that is located on my local machine.) Cause firewall issues happend on the Monday, I reinstalled .NET framework 2.0 to get debugging worked.
Now, my project can run like usual, but after I log on, the web page will direct to start page and redirect to log on page dymatically. I am sure the codes behind start page will never redirect browser to log on page and I didn't not change any codes. The redirect code in Global.aspx is : Response.Redirect [URL]
View 11 Replies
Nov 22, 2010
I need to initialize an object from the start up of an page and use the objects through out the particular page how can i do it. //Block to be initialized
XTContext.UserContext UContext = new XTContext.UserContext();
XTContext.Context ctxt = new XTContext.Context();
XTErrorCollection.ErrorCollection eContext = new XTErrorCollection.ErrorCollection();
ctxt = (XTContext.Context)Cache["sessionfContext"];
ctxt.eContext = eContext;
ctxt.uContext = UContext;
now i want to use the ctxt inside the page and control events. I tried to initialize it in page load but i cant access ctxt.
View 2 Replies
Mar 12, 2011
I get the message asking me to set strat page before debug. I have set the start page but still get the error.
View 6 Replies
Sep 3, 2010
When you create a new website/web application with webforms, I've noticed that the start page is always Default.aspx, but can't find where this is specified (e.g. in the config files, etc), or if it is part of the web forms specification.
Is it possible to change the startup page so that it isn't Default.aspx? If so, how do you do it?
View 5 Replies
Nov 5, 2010
I try to run a Plain Vanilla ASP.NET MVC web site on my system under Azure, but the page does not start
I have been able to publish the same web page on Windows Vista Ultimate using IIS7.
View 1 Replies
Jun 8, 2010
I would like to start a System.Threading.Timer in my application when it launches (maybe deploy is the correct word). I have seen that you can use Application_Start() but this is only fired once the first request comes to the application. I need the timer to start as soon as the application is running so that it can check for work to process even if a user is not interacting with the site. How can I get the application to start the timer once it is up and running?
View 4 Replies
Jun 17, 2010
I have an application that initially display 4 grid views at page load. This process takes 50-60 seconds and I would like to change the process to display the web page, show message like "Data being loaded, please wait..." and then spin off a thread that fills the various grid view. When this is done I would programatically like to do a post back to show the result. Not sure if this is possible? I tried something like this:
[Code]....
View 1 Replies
Jun 5, 2010
i have uploaded my site on hosting server with name www.selectionfurnishing.combut when i try to open any page i got an error that the site does not exits when i try www.selectionfurnishing.com/default.aspx then it gives error that the page does not exits (404)
View 2 Replies
Mar 1, 2010
I created a page for display my own windows services installed in the system. That page displays the service display name and status in the grid view and also showed one button to start ot stop the service according to the statusAll working nicely. But when i click start button i got the error as follows{"Cannot open Service1 service on computer '.'."}and the inner exception is "{"Access is denied"} .
View 1 Replies
May 12, 2010
I have an web application that I'm working on, it was working fine until my curiosity got the better of me and I right-clicked on a view and chose Set As Start Page option. Now, whenever I run my application it takes me to the Resource Not Found error page. I have the default register route set in my Global config route which was working fine before.
View 2 Replies
Jan 31, 2010
Something happened on my work computer where the Start Page for a website is not saved. I now need to save the start page every time I open a web site project (which is quite annoying).
I have confirmed that this is happening by also seeing that the Property Pages do not retain the setting either. This happens for every web site project as well.
Where and how does .NET 2008 store the start page setting for a web project? I have looked in the solution file, but could not find it there.
View 6 Replies
Feb 20, 2013
I have problem with default.aspx setting in global.asax file.When i am running dot net application from solution explorer i can set the default page as start page or when i am running the application the on IIS server i can set that default page as start page through the setting.This thing i want to do in programmatic way using the global.asax file
View 1 Replies
Feb 5, 2011
My web site seems to be running quick. I have not deployed my web site yet, so I am the only one using it right now. The problem I have is if I am testing out the site and then I stop using it for a short period of time, when I come back the web site takes about 8-10 seconds to startup again. I did not rebuild the site I just simply stopped using it for a short period of time. It seems like after a short period of time I have to 'wake it up' again. Is this normal? How can I prevent this?
View 2 Replies
Nov 21, 2010
How do I remove the 'New' WebForm Page (Start Page), and go directly to the 'Insert' & 'Cancel' Web Form Page without selecting the 'New' hyper link at [URL] Here is the front page code:
[Code]....
View 6 Replies
Jul 2, 2012
How to set the startup page in asp.net, asp.net taking default.aspx as first page but I want to set the index.aspx instead of default.aspx in server ...
View 1 Replies
Jan 11, 2011
I am running Visual Studio 2010 (as Admin), IIS 7 on Windows 7 x64. I am able to run the ASP.NET web site in IIS 7 without debugging just fine, but when I press F5 to debug it, I get: Unable to start debugging on the web server. Could not start ASP.NET debugging. More information may be available by starting the project without debugging. Unfortunately the help link is not helping me much and leads down a heck of a large tree of things. I checked the following:
Security requirements — I don't recall having to do anything special before. The worker process in IIS7 is w3wp.exe. It says that if it's running as ASPNET or NETWORK SERVICE I must have Administrator privileges to debug it. How do I find out if I need to change something here? Web site Property Pages > Start Options > Debuggers > ASP.NET is checked. Use custom server is set to the URL of the site (which works fine without debugging). Debugging is enabled in web.config. Application is using ASP.NET 3.5 (I want to move to 4.0 eventually but I have some migration to deal with). Application pool: Classing .NET AppPool (also tried DefaultAppPool). Surely it shouldn't be that hard to install IIS, VS, create a web site, and start testing it?
View 2 Replies
Feb 25, 2011
In our ASP.NET application we perform some initializations upon the Application Start event.When the application is started in visual Studio 2010 with 'Debug->Start new instance' the ASP.NET Development server does not start new, and my Application's Start event is not fired.My workaround is to manually stop the development server - is there a setting to force this automatically?
View 1 Replies
Jan 10, 2011
I need to call a function everytime a visitor visits one of my website's page. But I do not want the execution of the function to interfere with the interface between the user and the website i.e. different thread. What is the best way to do that on ASP.Net?
View 3 Replies
Apr 22, 2010
I have followed an online Microsoft tutorial that walks through building a Northwind.xsd that includes ProductsTableAdapter and a few other such table adapters (http://msdn.microsoft.com/en-us/library/aa581776.aspx).
Question: I now see a update column at the start of each row of the datagrid for AllProducts page. When I click update on a row and change the value of one of the non-primary fields (ex. Productname) and press Update, I get the following error:
The GridView 'GridView1' fired event RowUpdating which wasn't handled. How do I implement this event handler in VB? I know that when I implement using SQLConnection and use templatefields to bind each column I don't need to implement each event handler.
View 4 Replies
Jan 4, 2010
Why is there no default 'create/open' access to 'WebSites' from the VS2010 start page?
Background:I've succesfully been developing ASP.NET web applications (via WebSite method ((((Not WebProjects)))), using VisualWebDeveloper) for roughly 3 years. Personally, I prefer the WebSite method or strategy due to the decrease in both size and complexity (the web applications I build are generally for around 50-100 simultaneous users logging in and out and constantly manipulating data). I will continue bulding my sites via the 'Website' method provided VS2010 doesn't begin it's deprecation.The root of this question (which boiled into this post) came from perusing this article and this video tutorial. It's a shame to see functionality that brings with it an overall ease of use and increase in production capacity by decreasing both size and complexity of web application development... downplayed.
If the Visual Studio 2010 Development Team left this functionality out for a reason, I would very much like to know. So that I know what is going to be "sponsored by Microsoft" in a couple of years and I don't waste another second considering using the 'WebSite method' as a viable solution (as I know that I can't stick with vs2008 while rest the development community gets to evolve with the innovations implemented within vs2010)... WebSite method or the WebProjects method.
View 4 Replies
Jan 31, 2011
I just moved to a new PC and installed VS 2010. I copied all of my websites over from the old machine and now when I open the old websites on the new machine, they do not show up in my recent projects list on the start page. New websites that I make do show up there but the old ones do not. This is very inconvenient. Is there a way to make old projects that I open show up in the list?
This brings up another question. Is there a way to make a shortcut that will open VS2010 up with a website already loaded so that I don't have to go through the file open dialog every time?
View 3 Replies
Apr 23, 2010
I have a data import page where I start the Import by clicking a button.Second by second I want to print in Web Page informations about record is being importing.
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="CurrentTimePanel" runat="server">
<ContentTemplate>
<asp:Label ID="CurrentTime" runat="server" Text="Now: " />
[code]...
View 5 Replies