I am using SharePoint Server 2007 Enterprise with Windows Server 2008 Enterprise. And I am developing using VSTS 2008 + C# + .Net 3.5 + ASP.Net + javascript (jQuery).
I met with the following security warning in browser (at the top of the page in IE) when browse a page -- "An add-on for this web site failed to run. Check the security settings in Internet Options for potential conflicts." The function I developed works fine besides the security warnings. I am using IE 8. Any ideas why there is security warnings and how to resolve?
Here is the code I added to BlueBand.master to refer the js/css files in head section. I am developing a webpart which such script files will impact (i.e. my webpart will generate a div called "tabs" which such below scripts will impact). Any security issues?
<link type="text/css" href="_layouts/test/themes/base/ui.all.css" rel="stylesheet" />
<script type="text/javascript" src="_layouts/test/jquery-1.3.2.js"></script>
<script type="text/javascript" src="_layouts/test/ui/ui.core.js"></script>
<script type="text/javascript" src="_layouts/test/ui/ui.tabs.js"></script>
<link type="text/css" href="_layouts/test/demos.css" rel="stylesheet" />
<script type="text/javascript">
$(function() {
$("#tabs").tabs();
});
</script>
thanks in advance,
George
This most likely has nothing to do with your code.
SharePoint 2007 includes active-X controls. Depending on your browsers security settings and the sites internet zone, you may not be able to load those components and hence the security warning.
Here is a MS KB article that explains
http://support.microsoft.com/kb/931509
Related
We are trying to get up and running with SharePoint App Model development. However, we are running into a problem.
Firstly, let me state that we have a DNS entry that routes all sundomains in the form of:
*.ourdevserver.ourappdomain.net to the IP of our devserver.
When our app loads, it runs out and attempts to load three js files from SharePoint. Those requests look like this:
MS Ajax:
http:// apps-13c02829da8acd.ourdevserver.ourappdomain.net/_layouts/15/MicrosoftAjax.js
sp.runtime.js:
http:// apps-13c02829da8acd.ourdevserver.ourappdomain.net/_layouts/15/sp.runtime.js
and finally sp.js:
http:// apps-13c02829da8acd.ourdevserver.ourappdomain.net/_layouts/15/sp.js
The GET for each of these files fails with a 500 server error (not a DNS error). This, in turn, prevents the app from working correctly. The code that loads these files is the default code that is created when you start a new SP app project in Visual Studio:
<script type="text/javascript" src="/_layouts/15/MicrosoftAjax.js"></script>
<script type="text/javascript" src="/_layouts/15/sp.runtime.js"></script>
<script type="text/javascript" src="/_layouts/15/sp.js"></script>
Now, I can change the script reference to dispense with the app-xxxxx subdomain and it will work just fine pulling the three files from ourdevserver.ourappdomain.net/_layouts/15/MicrosoftAjax.js. So, it feels like this is an issue with IIS being able to handle the request.
Any ideas?
You can try like this
<script type="text/javascript" src="_layouts/15/MicrosoftAjax.js"></script>
<script type="text/javascript" src="_layouts/15/sp.runtime.js"></script>
<script type="text/javascript" src="_layouts/15/sp.js"></script>
It work for me, becasue your app want get parent side's js files which not allowed.
I have asp.net app that I am trying to upload to azure host.
first I have try to link in the traditional way with Css folder and link to it
<link href="http://mysite.azurewebsites.net/css/style.css"
rel="stylesheet" type="text/css" />
NOT WORKING
then i create blob and reference to it :
<link href="http://mysite.blob.core.windows.net/scripts/style.css"
rel="stylesheet" type="text/css" />
NOT WORKING
now I dont get error but nothing happend to the styling (after empty my cache and restart the site)
I am not using master pages in my site just normal asp.net page.
i saw in some place that they are doing it with master page but there is other way to do it without master page.
Thanks.
I have a simnple example signalR app that works fine using the VS Development Studio server, however it fails to work when I switch to using IIS.
I have tried all versions of the declaration of the script for it,
<script src="/signalr/hubs" type="text/javascript"></script>
<script src="../signalr/hubs" type="text/javascript"></script>
<script src="http://localhost/TestApp/signalr/hubs" type="text/javascript"></script>
<script type="text/javascript" src='<%= ResolveClientUrl("~/signalr/hubs") type="text/javascript"></script>
All to no avail. It still sees /signalr/hubs as a 404 error when using the developer tools in chrome or IE. Any ideas would be greatly appreciated.
I already have the line
GlobalHost.DependencyResolver.Register(typeof(IConnectionIdGenerator), () => new MyConnectionFactory());
In the Application_Start of the global.ascx . but it seems a tho some initialisation is not happening server side.
p.s. this is asp.net NOT asp MVC.
how do i reference my script properly so when deployed application won't have a problem finding it?
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js "></script>
<script type="text/javascript" src="/Public/Scripts/jqModal.js"></script>
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=true"></script>
I'm using VS2008 Web Forms
I keep getting warnings saying:
Warning 3 Error updating JScript IntelliSense: C:\Documents and Settings\myusername\Local Settings\Temporary Internet Files\Content.IE5\2N4L8DWB\jquery.min-fds90[1]..js: Object doesn't support this property or method # 1:17179 C:\Applications\xxx\xxx\index.aspx 1 1
You could use the ResolveUrl method for scripts that are local to your application:
<script type="text/javascript" src="<%= ResolveUrl("~/Public/Scripts/jqModal.js") %>"></script>
The other 2 scripts are absolute urls referenced from external CDNs so they should be fine and you should leave them as is.
As far as the warning is concerned, simply ignore it. Visual Studio Intellisense in web pages is far from perfect. FWIW in VS2010 it's no better. Hopefully they will fix it in vNext.
Developing locally in Visual Studio 2010 my page looks great. When I deploy to the development server there is extra spacing and font size differences that mess things up.
Maybe it is because locally the Visual Studio rendering engine is iis7 vs on the development sever it is iis6.
How do I resolve this?
Thanks!!
Mark
You mean pages look different when viewed from the same browser? The only thing I can imagine is that you're missing some files (like CSS) when deploying.
That's probably got something to do with the IE Compatibility settings.
When you browse an intranet site; IE, by default, displays it in Compatibility View. So you may want to browse your application from different locations (local, internet, intranet) and check IE -> Tools -> Compatibility View Settings for the option "Display Intranet sites in Compatibility View". Turn it off and refresh to see if it works.
IIS got nothing to do with the page look and visual design.
You're probably viewing the page via the internal Visual Studio browser - don't do that.
Instead, right click the page and choose "View in browser" to open it with "real" browser like IE, FF or Chrome.
Try placing the link tag that references your css file out of your master page's contentPlaceHolder with id head as shown below,
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Title1</title>
<link href="~/css/layout.css" type="text/css" rel="stylesheet" media="all" runat="server" />
<asp:ContentPlaceHolder ID="head" runat="server">
</asp:ContentPlaceHolder>
</head>
<body>
</body>
</html>
This fixed my issues while running through iis..