Architecture :: Host ASPX Pages In Application?

Dec 15, 2010

i want my application to provide a web ui for remote access, but i do not host that web page in IIS, because i do not want everyone install IIS on their home PC.

i spend some reading the asp.net pipeline, but still not figure how to load the .aspx file in my code.

View 5 Replies


Similar Messages:

Architecture :: Overriding Aspx Pages - Best Design?

Jan 25, 2011

I would like to provide my client with a aspx pages, with code behind provided, etc. But in some cases they will want to write their own markup - I'm thinking of having 2 directories [siblings of each other], one for the pages I provide, and the other for their custom markup. At page serve time, check to see if the client wrote their own markup and if so use it. Otherwise use the default provided.

In a nutshell I would like for my clients to be able to modify the pages I provide, but if they blow it up have a very easy way to back it out. Or to put it in a more positive light, allow them to override my pages easily.

View 5 Replies

Architecture :: Passing Objects Between Aspx Pages?

Jan 21, 2010

I have an application that uses DataContracts/DataMembers and Serialization to store information entered in a tab control. There are 8 tabs in the control (therefore 8 aspx pages). The final tab is used to write the information to disk.I am trying to understand: When should serialization be used in a web app? The objects are stored in memory not on disk. Is this another means of passing objects between aspx pages? If so when should serialization be used vs. session objects? How long is the serialized object retained in memory?Can I get a simple example of how to serialize in one page and deserialize the object in another page?I've read many blogs regarding serialization but have yet to find a simple example and none of them explain when serialization should be used vs. session objects?

View 3 Replies

Configuration :: Publish Web Pages To Host?

Jun 8, 2010

can u plz tell me how can i publish my web pages to host it on registered website?

View 2 Replies

List All Classes In Application (Including Class In App_Code And Partial Class(aspx Pages And Asmx User Controls)?

Nov 15, 2010

Is there any way to list all the class in my ASP.Net application(Including class in App_Code and Partial Class(aspx pages and asmx user controls)

View 3 Replies

Master Pages Host A Dynamically Generated Menu

Nov 18, 2010

There's a master page that is used by all the pages in the app. This master page hosts a dynamically generated menu. Opening of pages etc. is almost always handled through Response.Redirect(). Here's the catch:

I login to the app and it shows me a default page, with the master page at the top. So the Page_Load() fires for the master page. So far good. Now I go through the menu and select an item. Clicking the menu triggers a postback where the Page_Load() of the master page is called again. After that the Page_Load() of the desired content page is fired, and then the Page_Load() of the Master page is fired yet again! So each time I click a menu item, the master page is loaded twice!

View 7 Replies

IIS 6/7 Threading - Long Running Aspx Page Keeps Other Aspx Pages From Loading

Oct 11, 2010

I wrote a test page that does a bunch of busy work in a method called at page load. This process as I have it now takes around 12 seconds.

If I try to load another page while the first long running page is loading, this second page doing nothing except writing out a world, it doesn't load until the first long running page is finished.

Why is this the case? I would think IIS would be able to handle multiple concurrent connections, it seems crazy that one long running page would stop every other page in the application from loading. I must be missing something or not understand how IIS works.

I would think multiple independent requests would be spawned on different threads. Is this only the case if the requests are from different sessions entirely? Are all requests from a single session bound to a single thread?

View 1 Replies

Dynamically Passing Parameters From ASPX Host

Aug 5, 2010

I am looking for someone to provide guidance as to whether the following solution is the prescribed way of going about this. Yesterday I started working on a problem that, at first blush, seemed pretty simple and straightforward. I need to pass a few parameters from an ASPX code-behind, which hosts a Silverlight object tag, to the code-behind of one, or more, of the Silverlight user controls within the hosted Silverlight application. So, after doing some research, this is the basic solution I developed.

I found out that an attribute can be added to the object tag called initParams, a comma delimited list of parameter names and values can be added to this attribute. Like so.

<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">
<param name="source" value="ClientBin/SampleApplication.xap"/>
<param name="onError" value="onSilverlightError" />
<param name="background" value="white" />
<param name="minRuntimeVersion" value="3.0.40624.0" />
<param name="autoUpgrade" value="true" />
<param name="initParams" value='DealerId=17' />
</object>

This is fine, except that the DealerId parameter is basically hard-coded in the object tag, not real useful. The next thing that I did was replace this object tag with a literal control, and set the text of the literal control within the page's code-behind to the value of a StringBuilder (where I built up the full object tag along with dynamically adding the correct DealerId value). In the following example, the DealerId is hard-coded, but you get the idea.

var sb = new StringBuilder();
sb.Append(@"<object data=""data:application/x-silverlight-2,"" type=""application/x-silverlight-2"" width=""90%"" height=""80%"">");
sb.Append(@"<param name=""source"" value=""ClientBin/Ascend.SilverlightViewer.xap""/>");
sb.Append(@"<param name=""onError"" value=""onSilverlightError"" />");
sb.Append(@"<param name=""background"" value=""white"" />");
sb.Append(@"<param name=""minRuntimeVersion"" value=""3.0.40624.0"" />");
sb.Append(@"<param name=""autoUpgrade"" value=""true"" />");
sb.Append(@"<param name=""initParams"" value='");
sb.Append(@"ServiceUrl=");
sb.AppendFormat("http://{0}{1}", Request.Url.Authority, ResolveUrl("~/ReportService.svc"));
sb.Append(@",DebugMode=Full");
sb.AppendFormat(@",DealerId={0}' />", 40);
sb.Append(@"</object>");
litObjectTag.Text = sb.ToString();

My goal, if this initial design is sane, is to then pull this object tag creation into a server control, which will have a DealerId property, which in turn will be set within the hosts code-behind. At this point, I have the host dynamically adding parameter values to the object tag's initParams attribute, the next step is to get these values and leverage them within the hosted Silverlight application. I found a few articles to help out with this; I'm creating a public dictionary within the App.xaml.cs, and setting it within the Application_Startup event.

public IDictionary<string, string> InitConfigDictionary;
private void Application_Startup(object sender, StartupEventArgs e)
{
InitConfigDictionary = e.InitParams;
this.RootVisual = new MainPage();
}

Now, I can access this public dictionary from the code-behind of any .xaml user control, like this.

App app = (App)Application.Current;
var dealerId = app.InitConfigDictionary["DealerId"];

This design works just fine, I'm just looking for some guidance, since I'm new to Silverlight. Once again, the implementation works, but it seems like a whole lot of work to go through just to pass a dynamic value from the host to the .xaml files. Because I'm new to Silverlight, I'm hoping that someone with more experience can say that either:

a) Patrick, you're insane, why are you going through all this work when clearly in Silverlight you would accomplish this through the use of "xxxxxx".
b) Yeah, Patrick, it's a drag, but this design is basically what you have to do in Silverlight.

View 1 Replies

Installation :: Cannot Connect To Local Host Error When Creating Web Pages In Web Developer 2010

Jun 4, 2010

I'm new to ASP and was hoping to get some hands-on experience of web development, but have been having trouble getting started.

I followed the instructions in the [URL] setup video, and downloaded and ran the plaform installer. I noticed that the "Web Platform" section of the installer was didn't have the "Web Server" section at the top, as shown on the instruction video [URL] but it otherwise seemed to install ok.

When I tried to follow the tutorial videos on [URL] using MS Visual Web Developer 2010, I am unable to debug the application. The web page it loads just says: "The webpage "localhost:xxxxx" cannot be found" (where xxxxx is the five digit random port number).

I've tried uninstalling Visual Web Developer, and the various Microsoft .NET and SQL Server using the Vista uninstall functionality of the control panel (as bet as I could -I'm not sure if there was something I missed), and then re-installing, but I still get the same problem.

I've tried to find a solution on some developer forums, and I noticed there are posts relating to webdev.webserver.exe relating to the error message I've been getting. However I haven't been able to find any info on this for VS 2010.

I've checked, and I don't have webdev.webserver.exe in C:Program FilesCommon Filesmicrosoft sharedDevServer or in C:WindowsMicrosoft.NETFrameworkV2.0.50727, although I do have WebDev.WebServer20 and WebDev.WebServer40. inC:Program FilesCommon Filesmicrosoft sharedDevServer 10 (I'm not sure if one of these is the equivalent files for VS2010.)

I've also made Internet Explorer my default web browser, since some of the forum posts mention this. My firewall is on, but I don't get any error messages relating to the firewall when I run the app. However, I wasn't sure whether there was a particular program I should add to my "allowed" list before running.

I ran the diagnostic tool: [URL] and I get the following output:

THE FOLLOWING SCRIPT will check to make sure that .NET Framework 3.5 is installed properly and will tell you what is not configured appropriately WINDOWS VERSION: 6.0.6002 POTENTIAL ERROR: REGISTRYDUMP: reg query "HKLMSOFTWAREMicrosoftNET Framework SetupNDPv2.0.50727" /v "SP"

HKEY_LOCAL_MACHINESOFTWAREMicrosoftNET Framework SetupNDPv2.0.50727 SP REG_DWORD 0x2

ERROR: NetFx2.0 SP1 is not installed POTENTIAL ERROR: REGISTRYDUMP: reg query "HKLMSOFTWAREMicrosoftNET Framework SetupNDPv3.0" /v "SP"

HKEY_LOCAL_MACHINESOFTWAREMicrosoftNET Framework SetupNDPv3.0 SP REG_DWORD 0x2

ERROR: Netfx3.0 SP1 is not installed

I presume there's been some problem with installation and setup. However, I'm not sure what exactly I need to re-install (if anything) to fix it.

View 11 Replies

C# - How To Get Full Host Name & Port Number In Application_Start Of Global.aspx

Nov 22, 2010

Uri uri = HttpContext.Current.Request.Url;
String host = uri.Scheme + Uri.SchemeDelimiter + uri.Host + ":" + uri.Port;

and it worked well on my local machine, but when being published to IIS7, there is an exception saying

System.Web.HttpException: Request is not available in this context

View 2 Replies

How To Host A Web Application

Jan 22, 2011

I am looking for a nice article that explains how to host a web application.

View 2 Replies

MVC :: Host Mix Silverlight & .net Web Application?

Mar 4, 2010

I am new to asp.net mvc and don't feel too comfortable to diving 100% into silverlight web application. I done some research and found that asp.net mvc can host silverlight application. That is great new since I want to leverage new technologies.

However, silverlight currently does not support printing and SSRS reporting. My question, can asp.net mvc hosts multiple applications like both silverlight and regular asp.net applications. I can design the asp.net application to handle the reporting and printing.

View 2 Replies

Configuration :: Way To Host Wep Application

Mar 26, 2010

I had developed the 3 tire Web application, so i need to deploy the application to the customer public server.The public server has the Windows Server 20003 R2, how can i deploy my application

View 1 Replies

Configuration :: Host Mvc 2 Application In IIS 7.5

Aug 30, 2010

I have searched high and low on the internet for clear instructions on how to host an mvc 2 application in IIS but without luck. It seems to be from my research that it is anything but straightforward to do.

Imagine i create a new mvc 2 project in visual studio 2010. I want to host this locally on my own IIS server.

View 6 Replies

How To Publish .NET MVC Application To A Free Host

Feb 18, 2011

I'm building an ASP.NET MVC application and I'm trying to deploy it on a free host (0000free) which does support ASP.NET. I tried a couple of things, but none of them worked (i.e. I only see the directory structure when I browse to my web site):

Publishing to a local folder and then copying the published files via ftp over to my host (in the public_html directory).
Publishing via ftp to the root folder: ftp.mywebsite.com
Publishing via ftp to the public_html folder: ftp.mywebsite.com/public_html

Usually I would just drop the html files in the public_html folder, but I'm getting the feeling that the deployment process for an MVC application is slightly different. Do I have to modify the Web.config or some other filer? How does one usually deploy an MVC application (on a free host)?

Update:I have learned that the host uses Mono and supports .NET 4.0, but I'm still not able to deploy.

I have Visual Studio 2010 and I used its Publish Feature (i.e. right click on the project name and click publish) and I tried several things:

Publish method: FTP to the root folder.
Publish method: FTP to the publich_html folder.
Publish method: File System to the root folder.
Publish method: File System to the publich_html folder.
Publish method: File System to a local directory on my computer and then FTP to root and also tried the public_html folder.

I went into the cPanel (control panel) to try and see if ASP.NET has to be added/enabled for my web site, but I didn't see anything there.I can't browse to Index.aspx nor can I redirect to it from index.html (as suggested from other posts on the host forum), right now I have a link from index.html to Index.aspx but it's not working either (see http://www.mydevarmy.com)I've also tried renaming Index.aspx to Default.aspx, but that doesn't work either.

The search utility of the forum of the host is somewhat weak, so I use google to search their forum: http://www.google.com/search?q=publish+asp.net+site%3A0000free.com%2Fforum%2F&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a

I've been reading Pro ASP.NET MVC Framework and they have a chapter about publishing, but it doesn't provide any specific information with respect to the location of publishing, this is all they say (and it's not very helpful in my case):

Where Should I Put My Application?You can deploy your application to any folder on the server. When IIS first installs, it automatically creates a folder for a web site called Default Web Site at c:Inetpubwwwroot, but you shouldn't feel any obligation to put your application files there. It's very common to host applications on a different physical drive from the operating system (e.g., in e:websites example.com). It's entirely up to you, and may be influenced by concerns such as how you plan to back up the server.


Here is the error I get when I try to view my Index.aspx page:Unrecognized attribute 'targetFramework'. (/home/devarmy/public_html/Web.config line 1)

Description: HTTP 500. Error processing request.

Stack Trace:System.Configuration.ConfigurationErrorsException: Unrecognized attribute 'targetFramework'. (/home/devarmy/public_html/Web.config line 1)
at System.Configuration.ConfigurationElement.DeserializeElement (System.Xml.XmlReader reader, Boolean serializeCollectionKey) [0x00000] in <filename unknown>:0

View 2 Replies

Build An Absolute URL For The Host Currently In Use In An Application?

Mar 27, 2011

I am currently in a dev only phase of development, and am using the VS built-in web server, configured for a fixed port number. I am using the following code, in my MembershipService class, to build an email body with a confirmation link, but obviously this must change when I deploy to our prod host.[URL]How can I build this URL to always reflect the host that the code is running on, e.g. when deployed to prod the URL should be http://our-live-domain.com/Account/..etc.MORE INFO: This URL will is included in an email to a new user busy registering an account, so I cannot use a relative URL.

View 3 Replies

C# - Host A Wcf Service Library In A Web Application?

Aug 11, 2010

I would like to host a Wcf Service, create in a Wcf service Library, in a Web Application.

I've already done the same thing with Web Service asmx :

using System.Reflection;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;

namespace WebServiceLibrary
{
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class WebService1 : WebService, IHttpHandlerFactory
{
private static WebServiceHandlerFactory wshf = new WebServiceHandlerFactory();
private static MethodInfo coreGetHandlerMethod = typeof(WebServiceHandlerFactory).GetMethod("CoreGetHandler", BindingFlags.Instance | BindingFlags.NonPublic);

[Code]....

View 2 Replies

IIS Configuration :: How To Host Windows Application

May 7, 2015

I running MS-Access desktop application, i would like to host it to web through ASP.Net (Only report purpose). regular data we keying in through desktop. is it possible for host through crystal report?

View 1 Replies

Architecture :: Auto Update Application Like In Wordpress, Application Must Check If New Updates Are Available?

May 3, 2010

I need to auto update application like in wordpress, Application must check if new updates are available, download this updates and install.But I don't know how to install application. Because if some files in bin directory are updated application is restarted.Is it possible to create ASP.NET web application which will be auto updatable?now we have a new technologies, could u please suggest me any kind of soultion for the above problem. here i am enclosing my email idsunnyb4uu@hotmail.com

View 2 Replies

Architecture :: Design An Application To Fetch Data From Different Application Databases

Nov 10, 2010

I need to develop an application, which will get records (orders) from one application and process them. The updates to this records (order updates) will be sent back to the source application for end customer reference. I'm planning to achieve this data synchronization at the database level using triggers and stored procedures to insert database between the 2 databases.

But, the issue is I have to deploy this application in 3 different customer sites and I have to change the database names (cannot use the same database name) in each deployment manually. Because of this deployment issue, I was thinking of handling this within the asp.net application where I can store the db name in the database and then build the query within the application, but I dont want to do it as building queries like that doesnt look very professional.

View 2 Replies

Architecture :: Unable To Use Two Master Pages At A Same Time?

Jul 29, 2010

Cant we use two master pages at a same time? for example one for background and another one for menu.. if u know. send me the sample code r link..

View 3 Replies

Architecture :: Add Event/function To All Pages In Existing App?

Jan 26, 2011

c#/vb webapp. I'm working on a very old app with a ton of pages. I want to add a function to every page's PreRender. If this application was designed properly from the start, it would use a MasterPage, or would at least inherit all pages from a BasePage other than System.Web.UI.Page.The goal is that every aspx page's PreRender should trigger a call to FooFunction(). I'd like to have this done all in one page, to avoid opening every single .aspx file and changing it's inheritence / pasting FooFunction() / some other time waster.Is there a way to do this in .net? Can you point me in the direction of any design/discussion articles?

View 5 Replies

How To Host The Web Application On IIS 7.0 So That 100 People Can Be Accessed Locally

Feb 11, 2010

How to Host the Web Application on IIS 7.0 so that 100 people can be accessed locally.

Request you to provide steps on how to go ahead with it.

View 6 Replies

Ajax - How To Host IGoogle Widgets In Application

Jul 15, 2010

I am designing a dashboard for my own application to serve as a control panel for the end user. I am thinking about using the Dropthings framework or DynamicDashboards which cover all of my internal widgets requirements.

But besides including widgets developed internally by me, I would like for the user to be able to include iGoogle widgets as well.

Is this possible?

What needs to be done in order to host an iGoogle widget?

View 1 Replies

Configuration :: Host Application From Local Machine?

Feb 1, 2011

I have to host an asp.net that user can access that website something like http://111.11.11.11/myapp/homepage.aspx. ( my ip address will be 111.11.11.11). All I have local IIS installed. I want that if any user clicks on the link. He should be able to access that web application.

View 9 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved