Tagged Questions
0
votes
0answers
33 views
c# asp.net mvc static functions or instantiate
I built a web site and besides the repositories functions which are part of the instance,
I basically declared all other functions in the site as static. I guess this what I knew from the other place ...
0
votes
1answer
26 views
ASP.NET MVC Determine mime type by file/file path
I am using ASP.NET MVC 3.
The application is targeting .net 4.0.
I was trying to pass a virtual path as argument to my controller's action and return the file without reviewing the actual physical ...
0
votes
1answer
14 views
HTTP Error 403.14 - Forbidden The Web server is configured to not list the contents
I have downloaded the MVC Music Store at location C:\Users\DEVESH\Desktop\Projects\MvcMusicStore-v3.0\MvcMusicStore-Completed\MvcMusicStore
and added the website on IIS at same location.I have also ...
1
vote
1answer
54 views
Two ASP.NET web applications - Cross origin request always succeeds without discretion
I created a new solution with two ASP.NET web applications, one MVC application and one Web API.
I wanted to access the api using a subdomain like api.hybridwebapp.com/values so I implemented an ...
0
votes
1answer
45 views
MVC3 Redirect Loop
I have been searching for a solution to this issue for over 10 hours with no answer. In my application I am using the [requirehttps] attribute. When clicking an action method decorated with this ...
0
votes
3answers
20 views
Regular exception.Any character except
I want
Input :www.example.com/videos/video1%2Cvideo2%2Cvideo3%2Cvideo4%2C Output:www.example.com/videos/video1,video2,video3,vide4
So i need regular expression. I tried this:^videos/[%2C](in iss url ...
-1
votes
0answers
31 views
Web site with 'Computer Name' URL does not load js/css. 'localhost' works fine
I have a ASP.NET MVC 4 site running find on iis express. So now I need to move it to a public accessible server. So in the project settings I changed it to use IIS and created the virtual directory ...
1
vote
1answer
35 views
How do i host classic asp files within MVC application
Is it possible to render classic asp files from within my MVC application?
I have an application which lives at
http://localhost/myMVCapp/
and i put the asp files within a subfolder off the ...
0
votes
0answers
15 views
Setting subStatusCode when throwing HttpException for use with httpErrors
I am using httpErrors in my web.config and have the following:
<error statusCode="404" subStatusCode="1" responseMode="Redirect" path="http://www.somewhere-else.com" />
Doing the following in ...
0
votes
1answer
46 views
SessionState server not working in WebForm inside MVC app
I have a MVC4 app that is using a ReportViewer control on a aspx page inside a iframe in my razor view. I followed this answer here: http://stackoverflow.com/a/11055132/876511.
Well this worked ok on ...
0
votes
0answers
68 views
Deploying ASP.NET MVC application on Microsoft IIS server fail
Hi im trying to deploy a ASP.NET MVC application to the IIS server and i get the following error:
Error 1 Web deployment task failed. (The account 'ASPNET' does not appear to be valid. The ...
2
votes
3answers
86 views
Server.MapPath does not return the right physical path mapped to a virtual directory in Web-App subfolder
I create a web site and mapped it to the D:\MyWebApp and in Plugins sub directory I create a virtual directory and mapped it to D:\Project\Presentation\Web\Accounting.
the problem is when I want to ...
0
votes
1answer
58 views
Hybrid of Windows Authentication and Forms Authentication in ASP.NET MVC 4
We have an ASP.NET MVC 4 intranet application. We’re using Windows Authentication and that aspect works fine. The user’s credentials are used and we can access those credentials from the web app.
...
2
votes
1answer
60 views
Is it correct to say that an ASP .NET MVC application is an HTTPModule?
I just wanted to clarify my understanding of ASP .NET MVC (current version is 4).
I was reading this article on How does ASP.NET MVC work?
So, how does ASP.NET know how to route requests to MVC? ...
2
votes
2answers
55 views
wildcard subdomain routing ASP MVC
I've been searching for info about this for a few days with no luck.
I'm looking for a way to route wildcard subdomains to controllers in ASP MVC 4.
So something like this:
CompanyName.mydomain.com
...