We are Running Windows 7 or Windows 2008 using integrated pipeline (not classic) and we are Getting 404 Errors when mixing MVC with Website and / or WebApplication ProjectsHowever, this problem doesn't exist when I run off the web server locally in visual studio, only when I use IIS 7.5. Is there anything special you need to configure in IIS 7.5 in order for website and webapplication projects to use MVC? I wouldn't think so, but when I run mvcapplication on IIS 7.5
I had a powerbuilder application which i converted to web application in the format of ASP.Net (aspx) files.after deploying and publishing the converted web application (copy it and add ASP.Net and network Service AND IUser permissions to enable users to access it) in IIS V6.0 over Windows server 2003 and The ASP.Net version is 2.0
why a website might throw 310 redirect loop errors for some accounts but not for others? I am using forum software for a website and some of my user accounts are getting 310 Redirect Loop errors. Yet other accounts have no problems at all. In addition if a "good" account logs in and accesses the forum, a "bad" account can then access the forums as long as the browser session is maintained. It somehow seems related the account is getting or generating a bad session cookie from the application but nobody anywhere seems to have any idea what causes these things.
Visual Studio 2008 shows a lot of erroneous errors when building a website (not a web project) in the errors list. These errors are usually corrected (removed) when I rebuild the site a couple times but they cost me wasted time.Is there anyway to hide the erroneous errors?
Update: I've decided to look into this to see if I could reproduce it. This is the exact behavior I am seeing, using the website model, I type some invalid syntax on a page. The errors list fills up with errors. I correct the error and the errors list does not update. I build the project and the errors list still shows the errors but the build shows as build completed. I build the project a second time and the errors list is cleared.
My question is there anyway to make the errors list clear on the first build? I thought it might have something to do with page build vs website build but it seems to make no difference. I am not using any third party dlls on this website.
We are a team developing a web site. I am the only one who has problems building the WebSite. Build fails without any errors... And I know that there are no build errors because on other computers this web site builds :)
------ Build started: Project: C:...WebSite2, Configuration: Debug .NET ------ Validating Web Site Building directory '/WebSite2/controls/'. Building directory '/WebSite2/script/jquery/'. ... Building directory '/WebSite2/'. Validation Complete ========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========
Usually this happened in the morning after "Get latest version". Or after "Get specific version" any time of day when I take files from TFS. I had found a workaround for this - Add a new WebSite, copy all files from original web site to the new one, build the new one. After that the original web site built well. Now even this workaround doesn't help (don't know what has changed, I can't blame the new network adapter :D )... Build configuration: Debug / Any CPU for all projects.
I've read different posts on both of these issues and maybe I'm just not understanding what needs to be done. Here is my dilimma. I am running Windows Vista with IIS 6 and coding in VS 2010 using .NET 4 for the ASP.NET site. I installed the AjaxControlToolkit.NET4 in VS 2010 with no issues. I even used the TabContainer and had no problems on my machine, at least when debugging. When I publish it out and install on my remote Webserver 2008 with IIS6, I get the following errors:
Webpage error details
Message: ASP.NET Ajax client-side framework failed to load.
I can't see the tab container...Likewise My reports (using reportviewer) on local machine are displaying perfectly but on my webserver they are not showing...
I recently upgraded one of my hosting accounts on Godaddy to unlimited in order to eliminate several redundant hosting accounts. I ftp'd a website and published the databases into the unlimited account ok but I'm getting server errors which seem to be caused by the fact that the primary website is somehow interfering with the website which was transfered into the hosting account. The latest error is
After following the instructions in Scott Guthrie's blog for converting a web site to a web application project, I am getting many, many errors. Most are either 'Name <control> is not declared.' or 'Type <type> is not defined.' And most, but not all of these errors are in the same .vb page.
I have a C# web forms ASP.NET 4.0 web application that uses Routing for URLs for some reason custom errors defined in the system.web section of my web.config is entirely ignored and it will fall back the IIS errors.
This gets entirely ignored
This would be a minor inconvenience except that by the fact it falls back to IIS native instead of my application it completely circumvents Elmah logging my 404 exceptions correctly.
I wasn't sure which subforum to post this in as it appears to be a complex widespread issue. I have a WebApplication that was mostly coded in VB but had two C# classes and everything was working fine and it was created in VisualStudio 2005 as a Website. I finally finished converting the existing WebApplication as it was to C# and everything compiled fine. Trying to organize and such I created new Classes, DAL and BLL and migrated the existing classes into the appropriate location. Still compiled fine. Here's where the problems started.
Wanting to move from a Website to a Project, I created a new project WebApplication and migrated all the files from the Website into the Project. I re-added the references to the classes and .Net components and updated all the project settings to mirror what was in place before. Now when I try to compile. BAM. 171 Errors, mostly "The name '' does not exist in the current context." It appears most of them are in regard to Profile or accessing page components (Labels, Textboxes, etc) I can provide more detail about specific errors if needed but I was hoping maybe I just didn't do something incorrectly when moving to a Project from a website.
I'm getting two of these errors when trying to build the full solution for our website. Here's the full text of the errors:
Error 91 Cannot copy assembly 'Emcom.DataAccess.dll' to file 'C:workevan-moor.com-trunk2007.evan-moor.comBinEmcom.DataAccess.dll'. Unable to add 'C:workevan-moor.com-developmentEmcom.DataAccessinDebugEmcom.DataAccess.dll' to the Web site. Unable to add file 'BinEmcom.DataAccess.dll'. The process cannot access the file because it is being used by another process. C:...2007.evan-moor.com
Error 92 Cannot copy assembly 'Emcom.DataAccess.Generated.dll' to file 'C:workevan-moor.com-trunk2007.evan-moor.comBinEmcom.DataAccess.Generated.dll'. Unable to add 'C:workevan-moor.com-developmentEmcom.DataAccessinDebugEmcom.DataAccess.Generated.dll' to the Web site. Unable to add file 'BinEmcom.DataAccess.Generated.dll'. The process cannot access the file because it is being used by another process. C:...2007.evan-moor.com
I've done everything I can think of short of reinstalling Visual Studio to try and fix this and nothing works. One of my co-workers also gets these errors, but another one does not. I suspect one of us might have done a merge incorrectly to cause this given that it's referring to the development folder in here while I'm trying to build the solution of the trunk.
I've checked and double checked all the dlls, and the two projects referenced here and neither of them are using the development folder, which I suspected might have caused this. I also did a clean brand new checkout of our trunk, and still got these errors. Then I tried deleting all the .NET temporary files to solve it, and still no luck. I did a google search for this issue and found a Microsoft hotfix for the problem which involved replacing a dll - but that was for Visual Studio 2003, and I'm using 2008. The dll in question on my computer is two full versions newer than the replacement version they list in the hotfix, so I'm not sure it'd be a good idea to replace what I've got with what's mentioned there.
Short of reinstalling Visual Studio and reformatting my computer, I'm out of ideas. Reinstalling might do it, but reformatting would be too much work just to fix this bug.
I've got an external site that's built in SharePoint 2007. the user of the site need to have an option to view the full site when accessed from a mobile device. I am thinking of just creating a button control to do this. The question is, what would be the best solution to do this?
I am trying to publish an MVC 2 site in Visual Studio 2010 on Windows Server 2008 R2.
As I read to do, I expand References and select: - System.Web.MVC - System.Web.Routing - System.Web.Abstractions and set Copy Local to True.
Then I right click the MVC Web Project and select Publish. I select Publish Method of File System. This publishes to the local file directory I specified in a compiled down version. My first question is this: The MVC specific references whose Copy Local I set to true do not show up in the published bin file like I thought they were supposed to do. Now when I copy the files over to production it does not work.
For the top level [URL] I get: 403 - Forbidden: Access is denied. You do not have permission to view this directory or page using the credentials that you supplied.
For [URL] I get: 404 - File or directory not found. The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.
For [URL] I get: 500 - Internal server error. There is a problem with the resource you are looking for, and it cannot be displayed. Can someone point me to the right way to do this?
I once solved this problem before but I subsequently changed companies and lost access to the code.
Unterminated string constant Expected '}' 'Sys' is undefined 'Sys' is undefined
I am developing a web application which will be used by number of users,but when I tried to publish it in system 2(its published successfully) Now I tried to test the application using system 1 which is connected via a cable ,after 5 minutes,2 minutes,its variable is giving me runtime error I am enable to find the cause and hence rectify it. I will be posting the error. Server Error in '/' Application. Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. Details: To enable the details of this specific error message to be viewable on remote machines, please create a tag within a "web.config" configuration file located in the root directory of the current web application. This tag should then have its "mode" attribute set to "Off". Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's configuration tag to point to a custom error page URL.
Last night i have ran my application which was workin 100%, but in the morning when i run it, it shows the error message in IE Status Bar Done but with some errors on Page due to this, my Menu and TreeView is not appearing well.
I have another weird scenario for you all. I have an edit action that is exhibiting odd behavior. First, the model being bound has this one int property that get's it's value from a text box. I then test it's range and so forth. But here's the oddity, if text is entered, the internal validator knows there's an error, yet 0 is bound to the actions incoming model. When passed back into the view for re-display, the box is correctly highlighted, but no error message is in the summary for it, and the old value (the text entered) not the value passed in by the bound model (0).
Is that possible to implement in the serverside code e.g. in the page events?
I've developed a fairly simple web service which receives an xml string, validates it and passes it on to our internal database. This has been written to enable one of our clients to send us idocs from their SAP system. The trouble is that, although the web service works fine from a .net program, over the internet, the client's SAP system can't access it. They either get just an http 200 back (rather than the status code that the web service should supply) or they get http 500 'Internal Server Error'. I was wondering if anyone else has had issue's with ASP.NET web services from non 1qs`asp.net applications, or whether anyone can give me any advice on debugging http 500 errors.
I want to perform some simple form validation in my controller.
Here's an excerpt from the controller action:
It appears that must use a string as the error's key. Is there a way i can generate the corect key from the model, or should I just check for what input name Html.PasswordFor(x => x.NewPassword) returns?
i have a website, i want to place the compile code on the production server, now i took the code on the local machine and trying to compile source code on local machine, but whenever i compile the code, in one of my control(ascx.cs) file i am getting error that the control does not exists in current context, i checked everything, Inherits, CodeFile, even in the code behind(.cs) file, everything is perfect, even i get the control id in the intellisense, when i remove the control and again add the same using intellisense, the errors gets removed but after i publish site, the same error comes again
I've been trying to create a code behind model of the CreateUserWizard.MailDefinition class, or somthing like that, so that an email automatically is sent after a user registers. have everything declared in the .aspx page, however, the following code when placed in a seperate register.cs file generates these two errors:
1) 'MailDefinition': member names cannot be the same as their enclosing type 2) 'MailDefinition': cannot derive from sealed type 'System.Web.UI.WebControls.MailDefinition'
How do I fix both of these errors so that the script works in the code behind model? The script works fine in the inline model, but it's easier if it would be code behind for my purposes. I have the following code in register.cs
I am currently using Server.CreateObject("MSXML2.ServerXMLHTTP.3.0") to get information via XML. The App was built connecting from Point A to Point B, with A & B being 2 servers in different locations. Through a cloud, we setup both locations on the same server with different hostheaders... Since this happened, we are getting an "invalid cert." error when we try and make the XML connection. I changed to code to invoke SXH_OPTION_IGNORE_SERVER_SSL_CERT_ERROR_FLAGS, but it was recently brought to my attention that this could in fact be invalidating the SSL, and the connection is no longer secure. Does anyone know if thats the case?
If so, is there typically a problem with 1 server establishing an SSL connection between itself? The certificate has remained the same (a wildcard cert. enabling *.mysite.com) just the physical location of the servers is what moved (And technically the version of IIS was upped to 7).
I'm using ELMAH to handle the exceptions in my ASP.Net MVC project. I would like to use it to log errors like database connection timeout, query connection timeout and others. Is this possible with ELMAH?
I get all the web errors from my website emailed to me. My job is to google the client ip address and check if it is a real error with the website, or if it is an error caused by mcafee secure (just from crawling the site). There is another type of error that I only have to worry about sometimes. That error, when I google the ip address, will come up as botsvsbrowsers. If it's a bot then I don't think it's of concern, but a browser is. My question is how am I to tell the difference. I also completely don't understand the whole concept of botsvsbrowsers ip in the first place. If it's a bot, then who or what caused the error?
I've just starting looking at a site in place at work. They're using Elmah to log errors.It seems to be logging fine, but in the web interface, when I tell Elmah to show me 100 errors per page, it only shows the most recent 15.Then when I click on "Download Log" I only get shown 15 errors in the CSV.Anyone know how I can configure it to keep all the errors?Or can someone point me to some docs on how to do this?