asp.net-4.0

Crystal Reports for Visual Studio 2010 Error

青春壹個敷衍的年華 提交于 2019-11-27 20:37:53
I am trying to run a crystal report from my web application which was built using ASP.NET 4.0 and Visual Studio 2010. I have installed the following from the SAP site ( http://www.businessobjects.com/jump/xi/crvs2010/us2_default.asp ) 1) SAP Crystal Reports, version for Visual Studio 2010 - Standard EXE installation package which installs the software into the Visual Studio IDE. 2) SAP Crystal Reports runtime engine for .NET Framework 4 (64-bit) I have a page called Reports.aspx in which I have a crystal report viewer control <CR:CrystalReportViewer ID="rptViewer" runat="server" AutoDataBind=

ASP.NET 4 URL limitations: why URL cannot contain any %3f characters

╄→尐↘猪︶ㄣ 提交于 2019-11-27 20:18:18
http://site.com/page%3fcharacter This URL will return the following error: Illegal characters in path. I'm already put this in web.config: <system.web> <httpRuntime requestValidationMode="2.0" requestPathInvalidCharacters="" /> <pages validateRequest="false"> ... How can I fix this error? If you want to allow the request through, you need to add requestPathInvalidCharacters and set it to an empty string: <system.web> <httpRuntime requestPathInvalidCharacters="" /> </system.web> Edit You should leave your original question in place, because now my answer does not make sense. But in answer to

Could not load file or assembly 'System.Web.WebPages.Razor, Version=2.0.0.0

為{幸葍}努か 提交于 2019-11-27 18:56:18
I just upgraded packages in an MVC 3 project (ASP.net 4), and now I am getting the following error message when accessing a page in that project: Server Error in '/MyApplication' Application. Could not load file or assembly 'System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more

AjaxToolkit IIS7 Asp.Net 4.0: Sys is not defined; handler mapping issue?

≯℡__Kan透↙ 提交于 2019-11-27 18:35:28
问题 I have moved my asp.net 3.5 app to asp.net 4.0 and moved from windows 2003 (iis6) to windows 2008 r2 (iis7.5) and now i have this sys is undefined error. i have the app running in an integrated application pool. everything works except my ajaxtoolkit 3.0.20820.0 dll now I have read several blog posts, most of them cover asp.net 2.0 web.config files and not the minimized asp.net 4.0 config files. here are some parts from my current config file: <system.webServer> <modules

Populate Dataset With Table Names From Stored Procedure

梦想与她 提交于 2019-11-27 16:13:01
I have a stored procedure that returns multiple tables. It populates my dataset correctly but it names my tables [ Table , Table1 , Table2 ,...]. Is there something I can add in the database layer (to my stored procedure) that will name the tables properly? Your SP is not actually returning multiple tables, its returning a selection of columns and rows from your tables, therefore there is no 'table name', and hence why they are named table1, table2 etc. If its important, you could return an extra column for each selection, and in that column fill it with the desired name and then use it from

asmx web service returning xml instead of json in .net 4.0

吃可爱长大的小学妹 提交于 2019-11-27 15:34:54
i have just upgraded a test copy of my site to asp.net 4.0 and have noticed a strange issue that only arises when i upload the site to my server. the site has an asmx web service that returns json, yet when i run the site on my server it returns xml. it as been working fine in asp.net 3.5 for over a year. the webMethod is decorated with the correct attributes... [WebMethod][ScriptMethod(ResponseFormat = ResponseFormat.Json)] public List<LocationRecentChange> RecentChanges() and on my local machine it returns json. yet on the server (Windows 2008 64bit) it returns xml. using firebug console you

ASP.net 4.0 default.aspx problem on IIS6

可紊 提交于 2019-11-27 15:09:34
问题 I installed .net framework 4 on my windows 2003 enterprise x64, wrote simple asp.net 4.0 application (default.aspx page only). The application works great if request is to default.aspx, not to the root site: contoso.com/ - doesn't work (Get 404 error) contoso.com/default.aspx - works. Default.aspx is in list of default documents in IIS. Please help. 回答1: Found a fix in a seemingly unrelated location - try setting the "EnableExtensionlessUrls" registry key to 0: ASP.NET 4 Breaking Changes ->

asp.net 4.0 web forms routing - default/wildcard route

南笙酒味 提交于 2019-11-27 14:06:25
I there a simple way when using ASP.NET 4.0 routing with Web Forms to produce a route that will act as some kind of wildcard? It seems to me that within WebForms, you have to specify a route for every page - I am looking for some kind of generic route that can be used where nothing specific is required, perhaps mapping directly from path to path so... http://somedomain.com/folder1/folder2/page would possibly map to folder1/folder2/page.aspx Any suggestions? Thanks You can match all remaining routes like this: routes.MapPageRoute("defaultRoute", "{*value}", "~/Missing.aspx"); In this case, we

How to fix 'Microsoft Excel cannot open or save any more documents'

牧云@^-^@ 提交于 2019-11-27 12:55:57
问题 I am running C# ASP.NET 4.5 web application on Windows 7 64-bit using IIS 7.5. The application pool it uses has the name 'ASP.NET v4.0' and its identity is ApplicationPoolIdentity. The application uses MS Office Interop (Microsoft Excel 14.0 Object Library). At line wBook = wBooks.Add(Missing.Value); , it throws the following error: Microsoft Excel cannot open or save any more documents because there is not enough available memory or disk space. u2022 To make more memory available, close

Download Multiple Files Without Using Zip File

旧城冷巷雨未停 提交于 2019-11-27 12:13:55
I have a generic handler Document.ashx that creates Word documents on the fly by reading information from the querystring like this Document.ashx?clientid=123&documentid=10 and it works perfectly. I need to create an interface with a list of checkboxes and a Download All button. The best idea I've had so far is to use something like this to make the calls to the handler. $("body").append("<iframe src='Document.ashx?clientid=123&documentid=10'></iframe> <iframe src='Document.ashx?clientid=123&documentid=11'></iframe>") Chrome and Firefox handle this as expected, though IE9 prompts the user to