Asp.net - Running A Website In Vs2008 Opens In Other URL
Feb 24, 2011
In Visual studio 2008, if I run a website, then the website is running in other url. But it is running perfect in visual studio 2005.When I click the Asp.net configuration setting itself, the url is redirected into someother webserver.
I've got about 30 projects in VS 2008 and we are finally starting to upgrade to 2010. I get change requests pretty regularly so I'm likely to have to make changes to projects that are still in 2008 after VS 2010 is installed. Is it possible to intall VS 2010 without messing up the VS 2008 install? If so is there any particular trick to it so they live side by side or do they automatically do parallel install in different directories?
I upgraded my vs2005 web application to vs2008, after i run the upgrade wizard,It l pop up one error which says that .net framework 2.0 is not available. I can compile the upgraded project but can not run that. I am wondering where in IIS, I can point the project to framework 3.0?
I ran the project, it had the following error,
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. review the following URL and make sure that it is spelled correctly.
Requested URL: /XX/yy.asmx
Version Information: Microsoft .NET Framework Version:2.0.50727.4952; ASP.NET Version:2.0.50727.4955
the project was upgraged to vs2008, i am not sure why it still points to v2.0. Also i looked at the project file, I already upgraded the oracle data access dll(from oracle side) to higher version, it also points to the old version.
The other issue is when i open the Solution, It prompted me to create the virtual diectory: Http://localhost/XX, I clicked yes, will the vitually directory automatically generated? If i go to the view sites/add vitual directory, if i enter VeroValueXmllister, will it automatically generate the Virtually directory? Http://localhost/XX
I have developed the asp.net 3.5 ajax enabled web application and it is working well for me. i have included ajaxtoolkit dll and used the ajax tool kit controls in my application. And i copied the application source to another computer and open in visual studio 2008. i have installed the asp.net 3.5 in this computer. now the problem is, when i run the application getting error in web.config file. the error is in script. i guess the issue is because of ajax. what i need to do. should i install the ajax latest version in this machine. if so, where can i download the ajax latest version.
I've been working on my personal website as of late, and even thought it's not a big problem because I'm the only one that sees it, it's annoying nonetheless.
Whenever I go to my login page, it all works fine. If I enter a bad username/password, it will just print a simple text message error(intended). But, if I login correctly, then instead of redirecting to the root of my website as I intend, it will instead create a new tab in firefox and from there it will be in / (which is correct). The problem is why does it create a new tab? I didn't even think forms were capable of such a thing:
if(RouteID=="login"){ if(AuthenticationModule.Login(Form["username"],Form["password"],false)){ //logged in correctly Response.Redirect("/"); //just go to the root of my site }else{ Write("You fail at life"); } }
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.
We use windows authentication. User opens our website in tab1 and does some action but with out clicking on save he opens a new tab tab2 and opens the same website again. Now, if the user session in tab1 is active i need to warn users that the he is already logged on to application in some other browser and go to some log out page. But if the user session in tab1 is timed out then he must be able to continue with the website in tab2 as usual, but if he tries to do anything in tab1 he should go to session expired page. I tried implementing it in following way.
I have a hidden field in each page which will be set to unique Id using GUID.NewID(). when user requests for a page the following code is executed.
My client gave me this web solution, in it various projects, and the problematic project (for me) is the Web Site.
I've copied the code to test web server (2008) and installed VS 2008 so I could step through the code on the server due to some weirdness.
Anyhow, when I open the solution locally on my personal computer, it runs on Cassini [URL] because I'm not on a server OS. However, when I run the app on the web server, when I hit F5, it runs oh [URL].
When I'm running the code on the server, how do I point the web site to use Cassini?
WARNING - Absolute beginner here with VS. I'm expecting a steep learning curve, but I'm up to it! I'm trying to create a website with membership/login. Followed the above walkthrough MANY time, and been very careful with the username and password entered, but I keep getting the message that the loging failed. The asp application name is "Membership" This is the whole thing, automatically created following the walkthrough, apart from adding 2 members - yes, did go to the memberpages folder at the set rules page.
Solution Explorer: Solution 'membership' (1 project) - //localhost/membership/ - App_Data - ASPNETDB.MDF aspnetdb_lpg.LDF - MemberPages web.config - Default.aspx Default.aspx.vb - Login.aspx Login.aspx.vb webconfig aspnet_Membership: (2 members) PasswordFormat = 1 The ApplicationId for the 2 members is different - should it be?..........
I have a vs2008 Website project(it was converted from vs2005), when i right click the Website node in the solution and open the property page, i select the references link, then click add reference to Oracle.DataAccess.dll(11g, 64bits), Version=2.112.2.0 in the website BIN directory, it doesn't work, i don't see the Oracle.DataAccess.dll is added, Can you give me any advice why the website project can not add the Oracle.DataAccess.dll ? And I can add rOracle.DataAccess.dll to my other Web Application project, what difference between Website project and Web applicatoin project caused the issue? Since i can not add the Oracle.DataAccess.dll , when i compile, it gave the error:
Could not load file or assembly 'Oracle.DataAccess, Version=2.112.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. An attempt was made to load a program with an incorrect format.
I am ruuning VS 2008 on Windows XP Service Pack 3. The problem I am facing is that my windows crashes after a blue screen whenever I run a website in VS2008.Its only with websites projects in VS2008 but not with WinForms projects. WinForm applications running without any problem.This happens in this sequence that when I run the project, it starts, debugs and port is opened for my project (a popup that comes right near the system clock in taskbar) and suddenly after that a blue screen comes and Windows restarts. After restarting, a message comes that system has been recovered from a serious, send report to Microsoft blah blah blah...Can anybody figures it out what problem there can be?
I need to extract meta-data of different files, as uploaded by the user.
For this I found out dsofile.dll from MS. Now the problem is that the version I've downloaded from
[URL] is working fine with Windows XP but giving run-time error in Windows 7 64-bit system. Finding more on the error I was getting I came to know that the dll would not work for 64 bit OS. I also downloaded 64-bit from [URL] but still am getting below run-time error:
Retrieving the COM class factory for component with CLSID {58968145-CF05-4341-995F-2EE093F6ABA3} failed due to the following error: 80040154.
I've two questions:
How can I solve this run-time error and from where will I get dll working in VS2008 Website on Windows 7 64-bit?
Is there any other way I can extract meta-data (all the attributes/properties other than exposed by System.IO.FileAttributes) of any file (could be doc, docx, xls, xlsx, jpg, pdf, txt, etc.) uploaded by the user?
Ive created a web site using VS2008 ASP.net and connected to a Firebird Database.
I have a page that has a GridView(added at design time) and have connected to a table at runtime.
[Code]....
All good as the table contents are displayed at 10 rows per page. Ive set the Property AllowSorting to True. Has anyone got examples on how to code the sorting? Ive had a look round the net but all the examples Ive tried dont work.
I have a website that is hosted on IIS6 and set to use .NET 4.0, but I still have a WCF service on the site that is using 3.5. When i browse my svc file, i get the error:
unrecognized attribute 'targetFramework'
and it point to the websites root web.config. I have tried this MSDN article and still get the same error. My site is using a different app pool than my WCF service, and is configured to use 4.0 in the ASP.NET tab of properties. I have also checked and made sure that my WCF service is using 3.5(2.0) in its ASP.NET properties tab.
I have a Windows 2008 server and MVC 2.0 site is hosted under IIS 7.0 root directory. The site works fine. I want to use the BlogEngine.NET with my site. For example if my mite name is [URL] (which is the root of IIS) and the blog should be [URL]
Is this possible? Can I create a sub virtual directory within my root (where the MVC 2 app is hosted) and run the ASP.NET BlogEngine.Net in it?
I have an ASP.net Website. the project' content is in a folder called MyWebSite. When I run my application from Visual Web developer 2008, the browser displays the following address in the address bar: http: // localhost/ MyWebSite /Default.aspx
I want to be able to run my Website from the following address:
I all of a sudden strated getting the following error when running my website. Can anyone tell me how to fix? I am using VWD 2008 with .net 3.5.
Compilation Error
description:
[Code]....
Source File: vbc : Command line Line: 0
Show Detailed Compiler Output:
[Code]....
Version Information:
Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082 An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC2017: could not find library
This is a general ASP.NET question. I have an asp.net site that is hosted on domain A. The site works fine and uses a session when user login. I have a new empty site on domain B (different server). I tried to load the same site on domain B by calling it in an HTML IFrame site load and works but it seems that user con not login, after some experiments I think his is related to the session not working. Can I run the site on an IFrame? Sessions should work?
I have an an intranet website running under IIS6 (under a specific port, not the default one) with a integrated windows authentication enabled and uses an application pool configured with a service account. the issue is, if I access the website using the server name with a fully qualified domain in the URL, it throws a login prompt (doesn't work even if enter my windows login credentials), but if I use the IP address of the server then it works fine. I need to do to get the URL with server name working.[URL]
I read somewhere the website quits running after sometime if no one pings it. I wanted to know is there any way on IIS 6 that will keep the website up all the time(alive) even if no one accesses it
Bit of a long shot, but is there a way in ASP.NET to dynamically get the website's URL [URL] when there is no HttpContext.Current available.
There is no HttpContext because the code is running in a background thread* (but under the ASP.NET AppDomain). I have a background process that sends emails out every evening, and needs to include the Web address, but I don't want to hard code it because of deployments and testing (it changes from [URL] to[URL] and then to [URL] for the live site).
I have a client that currently has a comprehensive php website (with a huge amount of functionality built in).
We have been requested to link into our c#/SQL server application and pull information from the SQL database and display this on the existing website.
I would like to do this as aspx pages. However, I do not want to re-create the complete existing website. I would like to add the aspx functionality onto the current website.