asp.net-3.5

The Just-In-Time debugger was launched without necessary security permission

假如想象 提交于 2019-11-30 06:27:00
We are working on vs 2010 windows 7, 32 bit and the project is running under target framework 3.5. Now we are implementing credit card process in the website project in signup page. It's running fine when running from VS IDE, but after publishing to the local IIS when clicked on signup button, it's showing this error: An unhandled win32 exception occured in w3wp.exe The Just-In-Time debugger was launched without necessary security permissions. To debug this proces, the JIT debugger must be run as an administrator. Would you like to debug the proces? In Application error log im seeing this

The SELECT permission was denied on the object 'Address', database 'CNET_85731', schema 'dbo'

若如初见. 提交于 2019-11-30 06:02:48
I have been working away for the last 7 months on a C# ASP.NET using Visual Studio 2008 and SQL Server 2008. Today, I was running part of my application which was previously running and I got the following error: The SELECT permission was denied on the object 'Address', database 'CNET_85731', schema 'dbo'. I walked through my code and discovered that this error was being caused in the following User Control: protected void sdsAddressesList_Selected(object sender, SqlDataSourceStatusEventArgs e) { if (e.AffectedRows == 0) { ddlAddresses.Items.Insert((0), new ListItem("No Billing Addresses", "0"

Is it possible to speed this method up?

别等时光非礼了梦想. 提交于 2019-11-30 05:17:47
I have a method that uses loops through 7,753+ objects and Gets the value of each property for each object. Each object has 14 properties. private void InitializeData(IList objects, PropertyInfo[] props, List<DPV> dataPs, List<Dictionary<string, object>> tod) { foreach (var item in objects) { var kvp = new Dictionary<string, object>(); foreach (var p in props) { var dataPs = dataPs.FirstOrDefault(x => x.Name == p.Name); object returnData; if (dataPoint != null) { int maxLength = (dataP.MaxLength == null) ? 0 : (int) dataP.MaxLength; returnData = p.GetValue(item, null); if (!string

Edit config custom section in IIS

帅比萌擦擦* 提交于 2019-11-30 05:17:43
I am working on big ASP.NET project(we using ASP.NET 3.5) which comprised of 5 different WebSites and some shared assemblies. Recently I added custom section into web.config files for each site. When I deploy all these applications, each site is deployed separately under same app pool. Is there any way to make this section editable in IIS on site level, just like you can edit ConnectionString section for each site? Sections I added all look like this: <sectionGroup name="RegistriesCustomSettings"> <section name="RegistriesSettings" type="Registries.Business.Utilities.RegistriesConfigurations"/

Adding PostBackTriggers and AsyncPostBackTriggers to UpdatePanel for dynamically-generated grandchild controls

给你一囗甜甜゛ 提交于 2019-11-29 21:37:13
问题 I have a page with a ScriptManager, a generic HTML drop-down list ( <select> ), and an UpdatePanel. The UpdatePanel contains a PlaceHolder (for now). During Page_Load, a number of user controls are added to the PlaceHolder (really, it's several instances of the same user control). The number to add is not known until the page loads, so they do need to be loaded dynamically. The drop-down list is populated with the same number of menu items, and there is javascript on the page also (using

LINQ to SQL — Can't modify return type of stored procedure

让人想犯罪 __ 提交于 2019-11-29 21:01:34
When I drag a particular stored procedure into the VS 2008 dbml designer, it shows up with Return Type set to "none", and it's read only so I can't change it. The designer code shows it as returning an int, and if I change that manually, it just gets undone on the next build. But with another (nearly identical) stored procedure, I can change the return type just fine (from "Auto Generated Type" to what I want.) I've run into this problem on two separate machines. Any idea what's going on? Here's the stored procedure that works: USE [studio] GO /****** Object: StoredProcedure [dbo].

Publishing ASP.NET 3.5 Site Leaves Web.config Empty Due to providerOptions Element

懵懂的女人 提交于 2019-11-29 18:06:07
I am trying to publish a ASP.Net 3.5 site to an IIS 7.5 server using WebDAV and each time I do the config file winds up empty. The culprit is the providerOption elemet seen in the code below. <system.codedom> <compilers> <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <providerOption name="CompilerVersion" value="v3.5"/> <providerOption name="WarnAsError" value="false"/> </compiler> <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb"

Access to the path Denied when uploading excel file

耗尽温柔 提交于 2019-11-29 15:47:52
When uploading an excel file I am receiving this error, can anyone help me? Access to the path 'C:\Data\IronElements\Upload\AUMData\20101202 031815.xlsx' is denied. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.UnauthorizedAccessException: Access to the path 'C:\Data\IronElements\Upload\AUMData\20101202 031815.xlsx' is denied. ASP.NET is not authorized to access the requested resource. Consider granting access rights

How do i specify wcf behaviorExtension class type without the assembly version number?

老子叫甜甜 提交于 2019-11-29 15:39:39
I have a web app that uses a WCF service that utilizes a behaviorExtension like so: <behaviorExtensions> <add name="clientCredentialsExtension" type="Simon.Web.Giftcard.WCFSecurity.ClientCredentialsExtensionElement, Simon.Web.Giftcard, Version=1.0.3736.20411, Culture=neutral, PublicKeyToken=null"/> </behaviorExtensions> The problem is this web app's version changes with every compile (i think) and thus invalidating this entry. How can I avoid having to change the version number every time I compile this? Can I specify the extension in code somewhere? Try this: <behaviorExtensions> <add name=

WCF WebServiceHostFactory MaxReceivedMessageSize configuration

旧时模样 提交于 2019-11-29 12:50:40
I have a RESTful WCF web service called "Palladium" as a project in my VS2008 solution. It is hosted in an ASP.Net 3.5 Web Application using the WebServiceHostFactory implementation via a page called "Palladium.svc". My service works in a manner similar to the one explained here , whereby POSTs can be received by the service along with other parameters as defined in the URITemplate. The service works well, and I can receive posted information and work with it. My problem occurs when the post data exceeds 65k and I get the following error (obtained using system.diagnostics in the web.config and