Remove Website Name From Built In Web Server URLs?

Apr 29, 2010

I'm debugging a site that is deployed to the site root on the production server, but in my local copy, under the built-in, debugging web server, the URL's include the 'site name'. E.g. my local site is 'PVLive', so all URL's are 'localhost:nnnnn/PVLive/mmmm.aspx'. Certain URL's are hard coded in the site's pages to use paths relative to the root, e.g. I get errors when code tries to redirect to 'localhost:nnnnn/Index.aspx'.

Can I do something to keep the 'PVLive' site name out of the URL's?

View 3 Replies


Similar Messages:

Mvc 2 Website Much Slower On IIS 7.5 Vs Built-in Server?

Jul 13, 2010

I am taking some time to learn how to develop asp.net mvc2 websites, but I'm used to working directly off IIS instead of the built-in web server that uses the random ports when you hit F5.

but I've noticed that using the built-in webserver, requests fly and are immediate. I am using only the default project with the Home and About pages as it comes out of the New ASP.NET MVC 2 Project settings, no database connections, nothing beyond the base install...

but when I setup the IIS website and pointed it to the same directory, each request takes at least 3-5 seconds to complete, sometimes more. this isn't just the "load" on the first request. EVERY request takes this long on IIS. but if I F5 and test the project once again, everything zips and the responses are immediate.

View 1 Replies

Web Forms :: Remove .aspx From The End Of URLs?

Sep 29, 2010

I have a gread problem. i want eliminate aspx extension from the end of my application pages url but i dont know how i can do it that it works for all of the pages and the pages that maybe will add in future. i think i should write a rewrite rule in web.config or do it in IIS but i dont know how it is possible.

View 2 Replies

How To MSDeploy A Built Website Package To A Virgin IIS Website

Sep 3, 2010

I am trying to automate our build/deployment process.

So far I am using:

a Visual Studio 2010 solution with a main Web Application project (and dependent projects)
MSBuild
MSDeploy
CruiseControl.Net

So after much wrangling and gnashing of teeth, I now have CCNet kicking off an MSBuild script to build, package and deploy the website. The MSBuild script is below:

[code]....

This all works fine as long as on the target machine there is already a website configured in IIS. This doesn't need to be an existing "real" site (it could just be a shell).

View 2 Replies

Dynamically Get The All Pages Urls From Website?

Mar 17, 2010

In my VS2005 Standalone application, it is a tool kit to retrieve all the url from a particular website.

Ex:

http://www.mywebsite.com

and i want the all the url including querystring url's

like

1. http://www.mywebsite.com/search.aspx?id=10

2. http://www.mywebsite.com/itemsearch.aspx?id=10

so i know only the main url only and i would like to know all the url's name.

using c# code.

View 2 Replies

Website Domain Not Appearing On Front Of URLs?

Sep 22, 2010

I create a menu structure from a compiled class that returns an unordered list with ~/ menu options. On my localhost, they show up as [URL]

I actually have to pass the Application Path to the function to prefix the URLs. The problem, however, is that we moved the application to our development server, and now the URLS show up as:

[URL]

[URL]

The website domain doesn't seem to be displaying.

View 1 Replies

Finding Built In Website Templates

Jun 17, 2010

find the links containing the built in Asp.net Website Templates, as i want to create my personal web site using these templates.

View 4 Replies

Automatic Website Login, Long URLs, Encryption?

Jan 25, 2011

We currently have two applications that will be using this. One is a web application, the other a desktop app. Both of these require users to login/authenticate, the same credentials can be used for either application.I want to build an automatic login mechanism that will fill in all the various login/order details and be able to call this from either app mentioned above. I've been thinking that the best way to do this is to pass this information encrypted through the URL. ie https://mysite.com/TakePayment.aspx?id=GT2jkjh3....

Since we don't want to integrate the payment processing too tightly into the desktop app to reduce our PCI scope, we decided to have it open the browser to a central, secured payment page through a simple shell execute with the full URL causing the default browser to open that page.Originally we were using AES for the encryption, but this is currently being re-examined as we would prefer not having to give out the key to the end user (AES is symmetric, symmetric encryption = both parties need the private key, why bother even encrypting then since we're going to be distributing the app?) So I'm looking at switching it over to use Public Key Encryption with the built in RSA routines within .NET

After coding up the RSA portion I noticed most examples on the net used 1024bits for the key-length, I went with this and now have our portal working with public key encryption, however the URLs generated are much much longer than when I was using AES so it made me start researching what the max limits for URLs are. http://www.boutell.com/newfaq/misc/urllength.html Says that IE is the limiting browser at about 2048 characters in the path portion. My initial tests with the RSA encryption show my urls will be around 1400 chars long.My questions boil down to this:1) Is there a better way for passing information from a desktop app to a website that I'm not thinking of? I'd prefer it be just as easy to use from another web page as it is from the desktop, hence my current solution.2) Is 1024 bit RSA keys necessary? Or overkill for something like this? A shorter key would mean shorter encrypted text right?3) Are there any other unforeseen problems with URLs in the 1200-1400 character range? Proxies? Firewalls? Web-Accelerators?

View 1 Replies

Showing Which Tab Is Selected On A Website Built From A Template?

Jun 3, 2010

When you click Questions, Tags, Users etc. at the top of stackoverflow, the one you're looking at becomes highlighted orange. This is (usually) done by changing the css of one of them to be 'selected'.

If you have a single template that all your pages are built with, and that template includes these buttons across the top, how do you highlight one of them depending on which page you are viewing?The problem is that you'd have one template, not one for each page.(If it matters, I am using ASP.NET MVC 2 and setting up a Master page)

View 3 Replies

AJAX :: Getting Error While Incorporating 3.5 Web App With 2.0 Framework Built Website?

Jul 15, 2010

I have web site where web application exist in asp.net2.0 ie Framework 2.0. Now I would like Add another web application of ASP.NET3.5 FRAMEWORK. After adding assemblies of 3.5. I am getting error in ajax 1.0 code where this code is called

ScriptManager.RegisterClientScriptBlock(p, cstype, csname1, cstext1,true );

Error stated as CS0433: The type 'System.Web.UI.ScriptManager' exists in both 'c:WINDOWSassemblyGAC_MSILSystem.Web.Extensions1.0.61025.0__31bf3856ad364e35System.Web.Extensions.dll' and 'c:WINDOWSassemblyGAC_MSILSystem.Web.Extensions3.5.0.0__31bf3856ad364e35System.Web.Extensions.dll'

Is there any possibility that these error can be rectified from web.config or only we have to delete the assembly file from server of 1.0

[code]....

View 1 Replies

Changing Case Of All URLs In The Website Source Code From Sentence To Lower

Sep 3, 2010

I only want to change case (Mixed to small) of URL in HREF attribute, nowhere else. This is just for convention purpose.eg changing

Its <a href="http://www.abc.com/S pecial-E dition.aspx">Special Ediation</a>.
View <a href="http://www.abc.com/O ther-N ews.aspx">Other News</a>.
to
Its <a href="http://www.abc.com/s pecial-e dition.aspx">Special Ediation</a>.
View <a href="http://www.abc.com/o ther-n ews.aspx">Other News</a>.

View 5 Replies

Web Forms :: How To Built Multilingual Website With Urdu And English Languages

Jul 23, 2013

i want my website multilingual e.g English,urdu,Hindi. I know About Two Approach

localization globaliztion and Google translatore, but i want to design the database  multilingual for my website . how can i design the database for multilingual. and use it 

View 1 Replies

Logic For Fixing Relative Urls To Full Urls

Nov 16, 2010

i have a function that pulls URLs from various web resources. needless to say some are full valid URLS and some are relative as per the HTML of the page. below is my asp.net/ c# logic i derived for examining the URL and then generate a full usable URL from whats pulled from the site...

NOTE:
origianlurl is the full url of the first searched page, and relativeUrl is a url found within the searched page (it can be a full www.site.com or a /contactus.html)
private string ResolveRelativePaths(string relativeUrl, string originatingUrl)
{
if (relativeUrl.StartsWith("http") || relativeUrl.StartsWith("www"))
return relativeUrl;
if (relativeUrl.StartsWith("/"))
{
//get main url something.com
[code]...

View 1 Replies

VS 2008 Web Deployment MSI Built On XP Works Fine, But MSI Built On Windows 7 Does Not Work?

Mar 24, 2010

I'm running into a weird issue that I can't find an answer for anywhere I've looked (and I've looked a ton).I built a web deployment project with Visual Studio 2008 Team System on my old Win XP machine. This has always worked flawlessly and installed everywhere. I can also copy this MSI to my new Windows 7 Ultimate machine and it again installs just fine.

HOWEVER, when I rebuild that exact same web deployment project on my new Win7 machine, also using VS2008, the MSI will build OK, but when I then run it to install my software I get a dialog box telling me "the installer was interrupted." Interestingly, when I built this MSI in my new environment one additional warning popped up during the build process, which was "Unable to copy the schema file '(null)'"After many searches and reading different web pages, I know this has to do with these two registry keys:

[HKEY_LOCAL_MACHINESOFTWAREMicrosoftVisualStudio9.0DeploymentSchema]
"DefaultMSISchemaFile"="c:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\Deployment\Vspkgs\..\VsdSchema\Schema.msi"
"DefaultMSMSchemaFile"="c:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\Deployment\Vspkgs\..\VsdSchema\Schema.msm"

Yet, everything checks out. All permissions are correctly configured, etc., etc.Then, when I enable the built-in administrator account and log in as that, and then rebuild this same web deployment MSI the "Unable to copy the schema file '(null)'" warning no longer appears. Then when I log back out, log back in as myself and then run this newly built MSI it installs fine, just like the original one that was built on XP.I also tried uninstalling VS2008 and re-installing it as the super user, but that also didn't change anything. And yes, I did also configure devenv.exe to run as administrator.

Has anybody seen this? Or is it a requirement that you can only compile deployment projects as the super user? That cannot be right.I've been thrashing for more than five days and for the life of me cannot figure this out. Of course, I can run as the super user when developing, but I thought the new security model in Win7 was designed exactly so you don't have to.

View 1 Replies

Web Forms :: Website Built In Visual Web Developer 2008 Express - Menus Not Working In IE 8 Or Google Chrome

Jul 9, 2010

I am a complete novice at this stuff, but i have been asked to investigate why the menus on our web site might not be working properly when vied in IE8 or Google Chrome. The site was built in Visual Web Developer 2008 Express edition, could this be the problem? If so is there a way around it without having to upgrade to VWD 2010?

View 2 Replies

Web Forms :: Dev Web Server Problem Distinguishing URLs

Jul 22, 2010

I think there is a bug with the asp.net developement web server. If I store a url in a field for example ../attachments/650/403.pdf and try to poplulate a link with this data the correct url should be: http://localhost:60242/myweb/attachments/650/403.pdf. However the dev server omits the myweb part so the url fails. If I compile and move the code to an IIS website the correct url is produced. This makes developing more difficult. I tried using ../attachments/650/403.pdf but the dev web server failed to distinguish this also.

View 2 Replies

Configuration :: Web Application Under Proxy Server - Relative URLs?

Jun 23, 2010

our web application should be hosted under proxy server, for that we had to change our URL to be relative.

we changed all the url's but then we saw that web resources that are embeded in the .net dll's are being written to the page with absolute path, start with "/" for example:

[Code]....

how can we change it? how can we set the web resource to be relative like this "../webresource.axd"

View 3 Replies

Debugging On A Built-in Web Server Suddenly Stops?

May 17, 2010

I have Windows Server 2008 (64-bit), VS 2008 with its built-in webserver and an ASP.NET MVC 1.0 webapp.All I'm trying to do is to debug said app. I have a bunch of breakpoints, but they behave in a very strange way. When I fist start a debugging session with F5 and hit a breakpoint, the debugger stops just fine. However, after serveral F10s/F11s debugging suddenly "stops" (no exceptions at that time), but neither VS detaches from browsers' process, nor webapp execution stops: Visual Studio stays attached, and web request continues executing as usual.I tried various browsers (Chrome, Firefox, IE), but to no avail.

View 2 Replies

Visual Studio :: Built-in Web Server Not Seeing ASPX Changes?

Jun 29, 2010

When I right click an ASPX page and click "View in Browser" the VS built-in web server starts up fine. However, if I go back to VS and make changes to the ASPX page and then refresh the browser, the changes are not reflected.

In order to see the changes, I have to stop the running web server and click "View in Browser" again to restart it -- then I can see the changes.

What's going on here? What would cause the built-in server (Cassini) to not reflect updates made from within Visual Studio? I also tried using UltiDev Cassini and am getting the same problem -- the web server does not load changes made in VS until the web server is restarted...

View 4 Replies

WCF / ASMX :: Built A Web Service And Pushed It To Production Server?

Jan 18, 2011

built a web service and pushed it to my production server. When I view the .asmx file I can see the methods listed and I can also test them fine using the generated forms.I am having an issue, however, when I attempt to test my web service by...(1) creating a new web app project (VB -- VS 2010).(2) creating a web reference (works fine).(3) calling the method by running it on my local machine.#1 and #2 are fine but it seems as if the web method never gets called (returns an empty string).

View 1 Replies

State Management :: ISS/VS Built-In Web Server Session_Start Event?

Mar 9, 2011

I've exhausted my resources and still have been unable to determine why I'm experiencing this issue:

- I have an ASP/VB Website

- I've added a Global.asax file

- In the Global.asax file, I'm initializing some settings in the Session_Start method

If I use the Built-In VS web server, the Session_Start method is hit and the settings are initialized

If I use an IIS Virtual Directory for the website, the Session_Start method is NOT hit

View 1 Replies

Configuration :: Import DLL (built On VC) In Production Box (IIS 7 And Windows 2008 Server)

Sep 23, 2010

I want to import a DLL (built on VC) in asp.net, and I have a major problem in PRODUCTION Box (IIS 7 and Windows 2008 server). First: I want to say that this DLL works fine in my DEV Box with web application written in C#, and my development server (Win XP SP 3, .NET Framework 3.5 and IIS6). But when I upload my code (web application code + DLL) in PRODUCTION Box (IIS 7 and Windows 2008 server). Web application doesn't work with DLL any more. I am sure that Asp.net knows this DLL well, and if it did'nt recognize it would give me an error, but my problem is that my DLL does'nt works proprely when I run it in IIS 7 under Windows 2008 server. Do you know any solution ? Can it be something with the IIS 7 permissions?

View 2 Replies

C# - Error Page After YSOD With Visual Studio Built-in Debugging Server?

Jan 7, 2011

Now that I am playing with NHibernate I am getting a lot more YSODs as I am learning it however I seem to get this error sometimesafter a YSOD:This webpage is not available
The webpage at http://localhost:49497/ might be temporarily down or it may have moved permanently to a new web address.Error 139 (net::ERR_TEMPORARILY_THROTTLED):

Unknown error.Is there any way to disable this because I have to wait a few minutes every time and that is a pretty big killer is productivity?

View 1 Replies

Relative Urls For Images And Js Files In MVC Application - Diff Behaviour On Local And Production Server?

Mar 13, 2011

I have an MVC web application, the urls like following in my views folder:

<img src="../../Images/Delete.png"/>

are working on my localhost, but when I deployed the application on production server, they stopped working and when I use single ".." instead of double "../.." , they start working on production server.

View 2 Replies

C# - Remove Project Folder From Website URL?

Mar 21, 2011

I have a c# website project in visual studio 2010, and all of my .aspx pages are currently being stored in a ~/Forms directory. The problem is that when I want to go to any web pages, they are all prefixed with "http://localhost:000/Forms/", when what I really want is "http://localhost:000/". So, "http://localhost:000/AboutUs.aspx" instead of "http://localhost:000/Forms/AboutUs.aspx". What is the preferred way to deal with a situation like this? I don't want to rig anything up.

View 1 Replies







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