Questions tagged [web-site-project]

Web Site "projects" are created by using the File->New Web Site command in Visual Studio. They are very strange and should not be used unless you really need to. In most cases, you should use File->New Project.

Web site projects are projects that encompass a web site that will be available through a device using a browser.

498 questions
4
votes
4 answers

asp.net website vs web application

I've read a lot of discussions about web site vs web applications in asp.net The way we work in my team (10 programmers), we use the project type "web site", and for our dev environment, we just copy the source code (aspx + .cs) to the server. This…
3
votes
1 answer

Provide an Explicit Assembly Name for a Dynamically Compiled ASP.NET Website's App_Code Folder?

In a dynamically compiled ASP.NET Website project, can the assembly for the App_Code folder be explicitly named? For example, under regular circumstances when I run an ASP.NET website the assembly name generated into the Temporary ASP.NET Files\…
John K
  • 28,441
  • 31
  • 139
  • 229
3
votes
1 answer

Can old App_Web.xxxx.dlls affect site behavior?

I have ASP.NET Web Site project that deploys as precompiled to server. After deploy bin folder contains multiple App_Web.xxx.dll files. I know that I can delete old files before deploying new version but if I don't, can these old files somehow…
msergey
  • 592
  • 1
  • 4
  • 12
3
votes
1 answer

Error: The page at 'index.html' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint

I deployed a website that contained an API that was not working. In console, it shows some errors. but the site was working properly on my localhost. Error: Mixed Content: The page at 'index.html' was loaded over HTTPS, but requested an insecure…
Harshil Sharma
  • 101
  • 1
  • 2
  • 8
3
votes
1 answer

How do I use Azure DevOps pipeline to build an ASP.NET web site?

I am working with an older code and attempting to build an ASP.NET website (no .csproj files). I've created an pipeline for ASP.NET added some tasks to my .yml: # ASP.NET # Build and test ASP.NET projects. # Add steps that publish symbols, save…
3
votes
1 answer

Error during template rendering / Could not parse some characters

Im trying to get a bio info for each profile, when running server and going to accounts/profile y find this error: Could not parse some characters: |% with website=profile.website| | default:"" % {% extends 'base.html' %} {% block title %}Profile{%…
ihincapie
  • 65
  • 1
  • 6
3
votes
1 answer

How can I to link my post creator page to the other pages in Python?

I am messing around it but could not find the solution. I am getting an error: raise NoReverseMatch(msg) django.urls.exceptions.NoReverseMatch: Reverse for 'index' not found. 'index' is not a valid view function or pattern name. one of my html…
Agabyok
  • 77
  • 1
  • 8
3
votes
2 answers

Using web.debug.config/web.release.config in a Website project?

I have been reading about web.config transformation feature of VS2010 (web.debug.config/web.release.config), and all of them talk about WebApplication projects. What about WebSite projects? Can I use these transformations in a WebSite, or only in a…
Miguel Angelo
  • 23,796
  • 16
  • 59
  • 82
3
votes
1 answer

How do you define the TRACE compile flag in a ASP.NET Web Site project?

How do you define the TRACE compile flag in a ASP.NET Web Site project? There is no .proj-file and there are no options in any Build-dialogs in Visual Studio that I can find. I'm using Visual Studio 2008 and ASP.NET 2.0.
Cros
  • 4,367
  • 9
  • 41
  • 47
3
votes
1 answer

Using 64-bit references in ASP.NET Web Site Project - design time issues

Background: We have old-style ASP.NET WSP - web site project. This is the one that does not produces single DLL and uses dll.refresh files for reference mappings. Problem: Using VS2017, we're able to work with it with no issues but only as long as…
T.S.
  • 18,195
  • 11
  • 58
  • 78
3
votes
3 answers

Is it possible for a website project to reference a signed assembly in visual studio?

I'm aware of the following two different types of web projects in Visual Studio 2008: Website project Web application project A web application project can reference a signed assembly as long as the web application's assembly is also signed with…
3
votes
1 answer

Manually created global.asax.cs file doesn't work

I have Web Site Project and I have started developing api (atleast trying). Problem is with creating Global.asax file. Since this is Web Site Project, when I create Global Application Class it creates only Global.asax without Global.asax.cs After…
Aleksa Ristic
  • 35
  • 1
  • 7
3
votes
3 answers

ASP.NET Website's BIN directory and references

Imagine the following solution: Website ABC.com (not Web Application) BLL (business logic layer in a seperate assembly) DTO (dto objects in their own assembly) DAL (data access layer in it's own assembly as well). The BLL has a reference to the…
3
votes
2 answers

ASP.NET: What deployment options do I have?

I'll soon be managing a fleet of ASP.NET webservers... What are the technical limitations with deploying an ASP.NET webserver? Can I just copy the file(s) over, restart the website, and I'm good to go? Is this any different than what VS2010's…
3
votes
1 answer

Public Classes only with public shared functions in a .NET website

I've run into a legacy project set up as a .NET Web Site Project (yes, I know...) and I see lots of classes like these: Public Class ControlStuff Public Shared Sub DoStuff(ByVal key as String) ... End Sub Public Shared Function…
jonayreyes
  • 538
  • 1
  • 10
  • 27