Hello i just deployed my web site to the remote server. I noticed that the menu (navigation) bar is doesn't display as on my local server. I am using visual studio 2010.
The stylesheet was also deployed to my remote server. I am using the new asp.net 4 already designed navigation. It works find on my local machine but not on the remote machine. Can someone help me?
Use firebug (a firefox) extension to make sure that you are using the correct CSS classes for the menu, as it is in the development version. Check the CSS files exist on the server. I guess it may be a path problem (wrong path to the CSS file). Use the "Net" tab in firebug to see whether the files are present on the server or not.
Are you getting the same problem in some particular browser ?
Make sure correct version of all files are uploaded.
Next, check the .NET version set for the application on the server.
Related
So I am new to ASP.NET and have run through some tutorials. The next step for me was to find a really cool bootstrap template to employ. I downloaded this solution http://bootstraptaste.com/bocor-bootstrap-template-nice-animation/ and tried to change the .css file as I did originally following the Visual Studio tutorial http://www.asp.net/visual-studio/overview/2013/creating-web-projects-in-visual-studio#bootstrap .
Nothing happened. Also, a ton of files came with the template I downloaded, including an index.html file which actually loads the project into Internet Explorer.
I'd like to load this solution in Visual Studio so I can play around with it and modify it. Is this possible? I am definitely not advanced enough yet to get the same results on my own. Any advice and help is appreciated!
I'm not sure if Visual Studio is the best tool for creating your websites. To get your template running, execute the file index.html in a web browser. It is however, a better practice to run your templates from a server like xampp, wamp or IIS (in case of Windows OS).
In case of xampp, copy the folder to xampp/htdocs/. Then start the xampp server and based upon the port your xampp server is running on, run it on a web browser by typing localhost:port/folder_name in the address bar.
The procedure is similar for wamp with the only difference being in the path. The path for wamp will be wamp/sites/
I have made some changes to a view in my ASP.NET MVC3 application, but the changes I have made are not showing up when I test/debug the site within the browser. The changes I am making are simple text amendments to the markup.
I am using the Visual Studio development server for testing the application.
The odd thing is, I have tried publishing these changes to IIS and the changes I have made to the view are working when I test the application using the IIS server.
It is only when testing in the Visual Studio environment that this seems to happen.
Thanks,
A common problem i've run into is when you are not using IE and you close the debug session, but not your browser.
This means that the "IIS/development server" is still running in your system tray, but it is running on the old compiled code, if you hit ctrl + shift + b, you build your entire solution and re-publish your code to your development server. this allows you to hit refresh (F5) in your browser and the changes you've made to the razor view should now be reflected in your browser.
Are you using IE? Maybe deleting the cache or using another browser should work? I've had a lot of problems with that :D
Solution is to use IIS Express. For some reason, the VS development server doesn't recognise changes to code behind - nothing to do with caching on the browser.
However the location of the source code as suggested in other answers is important - it works for me using the c:\windows folder or c:\users\DefaultAppPool - apparently it has something to do with security to ensure.
Only applications running under the 'DefaultAppPool' identity are permitted under IIS. So, for anyone using a VM and mapping the host OS code folder you won't be able to rectify this unless you copy to a local folder in the c:\users\DefaultAppPool folder.
You may also now have difficulties accessing the SQL server database established for the Membership Provider under ASP.NET. For more details on how to fix that, I've posted on my blog.
We've got a web developer working on content changes to an existing site. He's doing this in a VM on his Mac, and changes to the _Layout.cshtml file are not reflected when refreshing the browser. Changes to other files (such as CSS or images) are reflected immediately, so it doesn't appear to be a browser caching issue. Doesn't seem to matter whether changes are made in VS.NET or an external editor.
The setup is Windows 7 32-bit VM, IIS Express serving via applicationhost.config file for several different projects that combine into a single site.
It works on several other dev machines (they're not VMs)
Bouncing IIS Express makes the change show up. We've tried deleting Temporary ASP.NET Files, etc., no difference.
What do?
Ran into the exact same problem. It's an issue with vmware and mapping. If windows and vmware are sharing the same folders, the only way to get IIS express to recognize your changes is to stop and restart the server. If you move your project into the windows installation drive, C: as an example, you will see that the problem disappears. Crazy stuff and trying to look for a better solution.
Thanks
Tyrone
Had the same issue. Was editing files from Mac and running IIS in VM. Usually I keep Visual Studio opened. Closing VS fixed the issue. IIS is picking up changes to the views straight away.
Basically we have this aspx script generated by another company, which we need to run, we normally just use coldfusion, for our company.
However this app is an aspx.
We have both a development and production server, it works flawlessly on our dev server, but it fails to work at all in the production server.
It uses a javascript function called _doPostBack.
I have compared the aspx files on dev/prod line by line, and they are 100% identical.
So I need some ideas what iis7 setting to change to allow this to work. Since we didn't do anything special to make it work on our development server.
Our Prodution server is sql2008, iis7, win 2008 i believe.
Our Development server is sql 2005 express, iis7, vista business edition.
Any suggestions or tips we can do?
And in firebug it generates no javascript errors of any code, but the navigation links do nothing.
The page itself displays, on the left is a list of links, which if clicked on, should change the content on the right/main content area.
This works fine on dev, it doesn't work at all on production. It does display the page, show's no javascript errors, but the navigation links do not work.
There is no external javascript file, so it must be something in iis.
Thanks
I would consider reinstalling asp.net on the box that isn't working. Can be done from command line using aspnet_regiis -i
http://msdn.microsoft.com/en-us/library/k6h9cz8h.aspx
Other than that I have no idea. Sounds like a config issue to me though..
In the IIS settings, make sure the ASP.NET System Services is running and verify that ASP.NET exists in the Role Services. Also check the Application Pools and in the Advanced Settings, you can check the .Net framework version.
What happens if you try to acccess a page you create called test.aspx with plain text?
You can try running the page locally on the production server, sometimes things will work locally but not remotely if it's an IIS issue.
Have you verified that the appropriate .Net framework is installed on the machine and that the page resides in an application in IIS?
Using IE8, press F12 to bring up the developer tools. Inside the tools you can examine the various scripts that are (or will be) running, and start debugging. Start the debugger and set a breakpoint where the _doPostBack function is being called (or inside the function itself) and see what is actually happening.
Also, you may want to fire up Fiddler2 and compare the HTTP requests between your development and production servers. It is entirely possible that something else isn't returning as expected (like a call to WebResource.axd) in production that works fine in dev.
I haven't used Visual Studio since VB 3 and am trying to give it a shot with ASP.NET. It seems that it should be able to connect to a website (via some sort of ftp like protocol I figure) and allow to edit without having to manually upload/download the files. Is this the way it is supposed to work or am I mis-understanding? I have tried using 'create new website' and 'open website' using my testing domain (hosted by godaddy, wondering if that may be the issue as well), each time it gives me errors. I'm not sure if I'm doing something wrong or trying to do something it wasn't meant to.
You really don't want to be working directly on a live web site, do you? That's just crazy. One little mistake and you've hosed the site.
Visual Studio now has it's own built in web server. You use that for testing. If you really don't want to use that you can put IIS on your local machine or set up a Dev/QA server somewhere. In that case, you'd edit it via a file share.
You should be using some kind of source control. Even for a single developer it's very important. When finished with a programming session, you check your updates back into source control.
Finally, only after the site's gone through a suitable QA process, the production server is updated from source control, not from within visual studio.
I would develop your website locally and ftp it to your godaddy website after or use the publish website feature in VS