Ask something in OnError method
I want to ask about something in error handling
I'm working with ASP.Net 3.5/C#
and I have a base class form my project that inherit from System.Web.UI.Page and my all my page inherit from this BaseClass
I override the onerror method with my implement
What I need is when get into the onerror method and my implementation in this method work I need to return to my page as I have there a label for error message
so my implementation is to faind this control - the error label and set it's text with a custome message
I'm already find the control on the page and set my custem message
but the page didn't stop so the page redirect to the exception page and didn't stop
If I use Try catch when error the page didn't go to the on error method and stop at catch
so Could i do the same and from the onerror method stop the page as if there is catch on the page !!!!!
AshOoO - MCSD
- Moved by Peter Ritchie Monday, August 25, 2008 7:05 PM ASP.NET question (Moved from Visual C# Language to Off-Topic Posts (Do Not Post Here))
Reply:
http://www.peterRitchie.com/blog
------------------------------------
Reply:
AshOoO - MCSD
------------------------------------
SQLBits - the UK's free SQL Server technical conference
Just a reminder for those of you in the UK that registrations are stlll open for the SQLBits conference, which will be taking place on Saturday September 13th at Hatfield in Hertfordshire. SQLBits is a free-to-attend SQL Server technical conference organised by the UK SQL Server community, and this time we've got some great content lined up: four tracks (DBA, Developer, BI and Katmai) with five sessions each and top-notch speakers. You can find out more and register here:
Hope to see you there!
SQLBits - the UK's free SQL Server conference
Are you looking for some free SQL Server training? Do you live in the UK? Then come to SQLBits!
SQLBits is a SQL Server technical conference organised by the UK SQL Server community. It's taking place on Saturday September 13th at Hatfield, just north of London, and we've got some great content lined up: four tracks (DBA, Developer, BI and Katmai) with five sessions each and top-notch speakers. And it's free to attend! If you're looking to learn more about SQL Server then this is a great opportunity.
Hope to see you there!
Microsoft Learning Resource site on Amazon.com
Check it out: http://www.amazon.com/b/?node=10756631
Enjoy.
Michael D. Alligood,
MCITP, MCTS, MCSA, MCDST, MCP, A+, Network+
www.theitclassroom.com
Start. Research. Plan. Perform. End. Test. Evaluate.
Reply:
Sincerely,
Ben
Ben Watson
Director, Microsoft Learning
www.microsoft.com/learning
------------------------------------
Reply:
Michael D. Alligood,
MCITP, MCTS, MCSA, MCDST, MCP
The I.T. Classroom
Start. Research. Plan. Perform. End. Test. Evaluate.
------------------------------------
MS Webcam VX6000 [Install problems]
Everybody here has had this problem, or atleast something similar to this. The only solution that I could figure out was to reinstall the whole software. Uninstall the drivers then the software and follow these steps.
1. Go to device manager and uninstall the device and the drivers from the PC.
2. Restart PC.
3. Install the software as the first thing when the PC loads.
If it goes through properly without any errors. the webcam is setup properly. If not, then the only thing that I can suggest (and has a 95% chance of making it work correctly and also it worked for me) is to reinstall the whole operating system and install the webcam as the first usb device. I have noticed that in Vista, if you have a couple of USB devices installed or plugged in. It causes a problem with the webcam during installation.
Reply:
Hi,
Thank you for your sharing and suggestions!
------------------------------------
** Shibboleth **
Is there anybody who knows anything about Shibboleth and it's installation(not those that mentioned in it's site)?
- Moved by Mr. Wharty Thursday, June 7, 2012 4:45 AM (From:Training and Certification)
Small issue at proclarity.com
When installing the ProClarity Analytics 6 Client from either my MSDN or TechNet subscription there are a few links for Product Tour, Products Overview, etc. They all bring me to a page cannot be found error. http://proclarity.com/ works but it's just a redirect notice.
I'd just like to suggest that any attempts to hit the proclarity.com domain be directed to that http://proclarity.com/ site. It could be helpful to some types of users.
Zac
Reply:
------------------------------------
Reply:
No worries.
------------------------------------
Reply:
Couple of quick questions back from the team who is looking into this:
1. Where are the links going now (the ones causing the error)?
2. On which pages do these broken links exist (the actual URL)?
Thanks!
------------------------------------
Reply:
It actually occurs off of the installation media. They point to various informational links; items such as demo's, technical info, etc. http://proclarity.com/demo is an example. The main suggestion would be to redirect all requests to the main http://proclarity.com site. An easy fix to gloss things over.
Zac
------------------------------------
Selecting Type of Account
I have been reading different articles on security and the selection of account type to be used for hosting the services or running your server.
Some places recommend using System Account (Network Service) and some places mention using a User Account (Domain User Account).
Assuming a scenario, where an application generally requires access to servers over the network, what do you all think is a better option?
Network Service or Domain User Account?
Dharmesh M Mehta http://smartsecurity.blogspot.com
Reply:
In short, if there service EVER needs to access remote resources, then assign a service account. That said most developers define which is required and/or recommended for their applications so it's not very often a matter of choice, but of neccesity.
Jeff Schertz, PointBridge | MVP | MCITP: Enterprise Messaging
------------------------------------
Any "technet library" style templates out there?
Brett Gibson
Gibson Teldata, Inc.
(812) 237-9123
Brett Gibson
Report Builder 2.0 Released!
Update: Report Builder 2.0 RTM (build 10.00.1600.60) is now available on Microsoft Download Center as stand-alone installer in more than 20 languages.
Report Builder 2.0 provides an intuitive report authoring environment for business and power users. It supports the full capabilities of SQL Server 2008 Reporting Services including flexible data layout, data visualizations, and richly formatted text features. Compared to Business Intelligence Development Studio 2008, Report Builder 2.0 includes a number of additional features:
- Easy to use wizards for creating table, matrix and chart data regions
- Support for directly opening and editing reports stored on the report server
- Support for using server resources such as shared data sources
Please direct your feedback to the main Reporting Services MSDN forum.
Thanks,
Robert
DCOM configuration
I have an application that installs a service on the server. There is client software that installs on the workstation. When the client machine runs the application, the client communicates with the service to check user counts and perform other security related stuff.
This program has run reliably for years on servers from NT 4.0 all the way up to Win 2k3 server, using workstations from Win98 to Vista, no problem.
I install on Server 2008 and I get a "Class not registered" error when I try to run locally. I checked the in control panel under "Services" and the service is not installed.
In the past "Class not registered" at a workstation indicated the client software had not been installed on the workstation yet.
This is a test machine so I can make any changes I want. Right now, this machine is the primary domain controller on the test network.
What I have tried so far:
I allowed "Everyone" to have DCOM access and launch permissions.
I placed "Everyone" in the "DCOM users group."
I allowed the anonymous login to have "Everyone" permissions.
I shutdown the Windows Firewall.
I ran the install program as "Administrator".
Ultimately, I will have to come up with a configuration recommendation that will allow my customers to install this program on there Servers without crippling Microsoft's security.
Does anyone have any suggestions?
Thanks in advance.
Rick48
Error Message 8024200D
I was able to get around error message 8024200D on an update for Vista SP1 (update KB947562) by searching for the update name on Google which took me to the standalone updater on the Microsoft site. I then ran the update standalone and it installed perfectly the first time.
Reply:
------------------------------------
Reply:
update for windows vista (kb947562) and update for windows vista service pack1(9036330) are failed
------------------------------------
Login Problems
I have 2 accounts for SSDS, however I am unable to create an authority. I constantly get a FaultException stating that I am not authorized to access the resource.
Fernik
Here is the stacktrace:
System.ServiceModel.FaultException`1 was unhandled
Message="User 'MyUser' is not authorized to access this resource."
Source="mscorlib"
StackTrace:
Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at SSDS.ServiceSSDS.ISitkaSoapService.Create(Scope scope, Entity entity)
at SSDS.ServiceSSDS.SitkaSoapServiceClient.Create(Scope scope, Entity entity) in C:\Users\Fernik\Documents\Visual Studio 2008\Projects\SSDS\SSDS\Service References\ServiceSSDS\Reference.cs:line 476
at SSDS.Program.CreateAuthority(String id) in C:\Users\Fernik\Documents\Visual Studio 2008\Projects\SSDS\SSDS\Program.cs:line 40
at SSDS.Program.SSDSSample() in C:\Users\Fernik\Documents\Visual Studio 2008\Projects\SSDS\SSDS\Program.cs:line 71
at SSDS.Program.Main(String[] args) in C:\Users\Fernik\Documents\Visual Studio 2008\Projects\SSDS\SSDS\Program.cs:line 13
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:
Here is the code:
public
static Authority CreateAuthority(string id){
Scope scope = new Scope(); Authority authority = new Authority();authority.Id = id;
GetProxy().Create(scope, authority); // Exception generated here
return authority;}
Reply:
not able to help w/ the source code, but if you want to try to validate your credentials, you can try my online provisioning client to see if you can create an authority with that.
Also, there's an SDK that Microsoft released recently that has a couple sample apps that you can use to test your credentials.
Mike Amundsen [http://amundsen.com/blog/]
------------------------------------
Reply:
Thanks, the tools you referenced have helped me to troubleshoot my problem. It was very simple I am trying to create an authority already created by someone else, I had an authority naming collision. The credentials are working just fine.
Thanks for your support.
Fernik
------------------------------------
Reply:
yeah, this has come up before. i suspect the SSDS team may need to use a better error message when folks try to create an authority that already exists.
glad you're up and running.
Mike Amundsen [http://amundsen.com/blog/]
------------------------------------
Reply:
Good suggestion..I will forward this on to the team.
Anil
------------------------------------
Inheriting Content from Site Collection to subsites.
Hi,
We are currently working on a WSS 3.0 based solution where we are investigating using WSS as CMS. The idea being that the top level site collection site would be a template for new sites created within. This is quite simple but the complicating factor is that we then want the sub sites to inherite content changes where they don't have a corrisponding, overriding block of content.
We have looked at some how using a custom SPVirtualPathProvider and also using Variations, but both seem to have problems. It is not clear how to insert our custom SPVirtualPathProvider BEFORE the regular SPVirtualPathProvider. And Variations are only available on MOSS and seem to be more suited to changing the language in the sites, rather than having different content. Initially the requirements are for sites that are both English Language. I realise that for content based on SPLists, Document Libraries etc. we always have reference to the parent of a subsite, so it would be quite easy to find out if content exists for the subsite, if not refer back to the SPLists of the parent. What I can't quite figure out is the actual pages themselves.
Ideas so far apart from those mentioned about include some URL re-write management, custom navigation based on a tweaked SPSiteMap Provider, Delegate controls or a combination of all.
I would like to ask if anyone has approached this kind of problem before or has any ideas on the best way of implementing this in WSS?
Any ideas, comments gratefully recieved, I have included a more detailed example below.
Richard.
For example, we have a site collection, with content pages. This is our top level CMS site and the master template for a theoretical client. The client requests that they want two country specific sites, one for America, another for Canada.
MASTER SITE (Site collection)
|
ContentPage1.aspx (ContentPages in this situation could be webpart pages. )
ContentPage2.aspx
ContentPage3.aspx
DocumentLibrary1
DocumentLibrary2
American (Site) Canadian (Site)
| |
ContentPage1.aspx ContentPage1.aspx
ContentPage3.aspx ContentPage2.aspx
DocumentLibrary1 DocumentLibrary2
ContentPage2.aspx (from MASTER SITE) ContentPage3.aspx (from MASTER SITE)
DocumentLibrary2 (from MASTER SITE) DocumentLibrary1 (from MASTER SITE)
In this kind of scenario, all changes to ContentPage2.aspx on the MASTER SITE would be seen on American Site, all changes to DocumentLibrary1 on the MASTERSITE would be seen on the Canadian Site. Once Canadian Site added it's own ContentPage3.aspx then changes to the page in MASTER SITE would not be seen on Canadian Site.
Another example would be as follows:
MASTER SITE (Site collection)
|
ContentPage1.aspx (webpart page)
|contains
WebPart1 (Contains some text)
WebPart2 (Contains data from SPList)
WebPart3 (Custom webpart pulling data from SQL)
American Site (Site) Canadian Site (Site)
| |
ContentPage1.aspx (webpart page) ContentPage1.aspx (webpart page)
|contains |contains
WebPart2 (Contains data from SPList) WebPart1 (Contains some text)
WebPart3 (Custom webpart pulling data from SQL) WebPart3 (Custom webpart pulling data from SQL)
WebPart1 (Contains some text from MASTER SITE) WebPart2 (Contains data from SPList FROM MASTER SITE)
In this kind of scenario, all changes to the content of WebPart1 on the MASTER SITE would be seen on American Site, all changes to WebPart2 on the MASTERSITE would be seen on the Canadian Site. Once Canadian Site added it's own WebPart2 then changes to the webpart in MASTER SITE would not be seen on Canadian Site.
Reply:
www.sharepointcms.com
It provides some CMS capabilities for WSS 3.0
Regards.
Blog; http://www.the-north.com/sharepoint --- Posting is provided "AS IS" with no warranties, and confers no rights.
------------------------------------
Reply:
------------------------------------
HP psc 500 drivers/software included in xp issue
I have inherited an hp psc 500. The CD's were not included which as it turns out were deemed not usable and instructed on the hp site to discard and use the included in Xp- home drivers. Which work great as a free stand and operating piece of equipment. However there is nothing in programs or any where else I can find that allows access to the scan to option, maintenance options or actually any other option other than print found under file on any page. I think that what I am asking for might be called a dash board or something of the sort, or at least a link under all programs.
HP steadfastly insists ( through all links on site ) that all software/drivers are included in XP and will offer no other help, software or even an answer beyond " all you need is included in xp hardware/device management. E machine says that they have nothing to add to what Microsoft provides in the ome-xp that came with my pc contact HP.
I am running xp home. I am not the most knowledageable and do not understand all the tech lingo of the pc world.I have spent endless hours searching the net and placing threads anywhere I thought could be related and got nothing until I was directed here from another Microsoft forum site. I desperately need help with finding what I need to either open or where to download what I need to make this accessible for use and maintenance. Any assistance or direction to the proper place for assistance will be greatly appreciated.
Thanks
Vixalin
Reply:
Hi Vixalin,
This forum is for SCE related issues. For questions about Windows XP, please use the Microsoft public newsgroups which would be the most relevant newsgroup for your question.
HTH.
------------------------------------
still working on my IP configuration
I didn't respond immediately because I was checking out my last resort, McAfee.
Reply:
C&Z
Please go back and check some of the many, many threads that you have started about this same problem.
You have some replies that you need to answer.
Ronnie Vernon
Microsoft MVP
Windows Desktop Experience
------------------------------------
Reply:
------------------------------------
Reply:
C&Z
Don't worry about the other threads that you have started, just stick with the thread at the following link. Chris will help you solve the problem.
IP Configuration - TechNet Forums:
http://forums.microsoft.com/TechNet/ShowPost.aspx?PostID=3785347&SiteID=17
--------------------------
Ronnie Vernon
Microsoft MVP
Windows Desktop Experience
------------------------------------
re"6to4
thank you this was very helpful . I have the problem solved
Moving SQL Express 2008 discussion to the main forum
Hi Everyone,
Now that SQL Server 2008 has released I won't be monitoring the Katmai Express forum on a regular basis. Please post SQL Express related questions for all version to the main SQL Express forum at http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=385&SiteID=1.
Thanks,
Mike
Error while adding derived column
Hi,
I have following requirement for creating ssis package.
· Source component
o This will fetch data using stored proc from Sybase database.
· Derived column component
o 5 columns must be added to input of source component
· Destination component
o All columns (source component output columns + 5 derived columns) should be inserted into destination database.
I have written code for above requirement
I am getting error only while adding derived columns.
If I add one derived column, package executes perfectly.
But if I add more then one derived columns it gives me following error
For ex. I am adding following three derived columns.
Here is the code.
Note:
- requestID, portCode and fromDate are private variables in a class
- value of respective derived column should be assigned from these variables respectively.
--------------------
IDTSOutputColumn90 myCol = derivedColumn.OutputCollection[0].OutputColumnCollection.New();
myCol.Name = "Requestid";
myCol.SetDataTypeProperties(Microsoft.SqlServer.Dts.Runtime.Wrapper.DataType.DT_STR, 12, 0, 0, 1252);
myCol.ExternalMetadataColumnID = 0;
myCol.ErrorRowDisposition = DTSRowDisposition.RD_FailComponent;
myCol.TruncationRowDisposition = DTSRowDisposition.RD_FailComponent;
-------
IDTSCustomProperty90 myProp = myCol.CustomPropertyCollection.New();
myProp.Name = "Expression";
myProp.ContainsID = true;
myProp.Value = requestID;
myProp.Description = "Derived Column Expression1";
myProp = myCol.CustomPropertyCollection.New();
myProp.Name = "FriendlyExpression";
myProp.Value = requestID;
-------
IDTSOutputColumn90 myCol1 = derivedColumn.OutputCollection[0].OutputColumnCollection.New();
myCol1.Name = "PortCode";
myCol1.SetDataTypeProperties(Microsoft.SqlServer.Dts.Runtime.Wrapper.DataType.DT_STR, 8, 0, 0, 1252);
myCol1.ExternalMetadataColumnID = 0;
myCol1.ErrorRowDisposition = DTSRowDisposition.RD_FailComponent;
myCol1.TruncationRowDisposition = DTSRowDisposition.RD_FailComponent;
IDTSCustomProperty90 myProp1 = myCol1.CustomPropertyCollection.New();
myProp1.Name = "Expression1";
myProp1.ContainsID = true;
myProp1.Value = portCode;
myProp1.Description = "Derived Column Expression";
myProp1 = myCol1.CustomPropertyCollection.New();
myProp1.Name = "FriendlyExpression1";
myProp1.Value = portCode;
-------
IDTSOutputColumn90 myCol2 = derivedColumn.OutputCollection[0].OutputColumnCollection.New();
myCol2.Name = "FromDate";
myCol2.SetDataTypeProperties(Microsoft.SqlServer.Dts.Runtime.Wrapper.DataType.DT_STR, 25, 0, 0, 1252);
myCol2.ExternalMetadataColumnID = 0;
myCol2.ErrorRowDisposition = DTSRowDisposition.RD_FailComponent;
myCol2.TruncationRowDisposition = DTSRowDisposition.RD_FailComponent;
IDTSCustomProperty90 myProp2 = myCol2.CustomPropertyCollection.New();
myProp2.Name = "Expression2";
myProp2.ContainsID = true;
myProp2.Value = fromDate;
myProp2.Description = "Derived Column Expression";
myProp2 = myCol2.CustomPropertyCollection.New();
myProp2.Name = "FriendlyExpression2";
myProp2.Value = fromDate;
-------
Error messages while executing package…..
Error in Microsoft.SqlServer.Dts.Runtime.TaskHost/DTS.Pipeline : component "Derived Column" (25) failed validation and returned error code 0xC0010009.
Error in Microsoft.SqlServer.Dts.Runtime.TaskHost/DTS.Pipeline : One or more component failed validation.
Error in Microsoft.SqlServer.Dts.Runtime.TaskHost/ : There were errors during task validation.
Error in Microsoft.SqlServer.Dts.Runtime.TaskHost/DTS.Pipeline : component "Derived Column" (25) failed validation and returned error code 0xC0010009.
Error in Microsoft.SqlServer.Dts.Runtime.TaskHost/DTS.Pipeline : One or more component failed validation.
Error in Microsoft.SqlServer.Dts.Runtime.TaskHost/ : There were errors during task validation.
Note: Error Code 0xC0010009:
| 0xC0010009 | -1073676279 | DTS_E_ELEMENTNOTFOUND | The element cannot be found in a collection. This error happens when you try to retrieve an element from a collection on a container during execution of the package and the element is not there. |
If I add only one column I do not get this type of error.
I do not know where I am wrong in creating derived column.
I appreciate help on this issue.
Thanks
Vijay C
Reply:
Vijay,
I didnt read your code but why dont you use derived column transformation instead of coding?
------------------------------------
Reply:
Thanks for your reply.
I have to dynamically create package writting code. because this code will go into class of .NET win32 service. That should do data transfer from Sybase to Sql server.
i have written all the code. everything is working fine. even this works, if i add 2 derived columns.
but when i add more then 2 derived columns this gives me error.
i am not able to find out the problem.
Thanks.
Vijay C.
------------------------------------
Reply:
I cannot see an obvious error, so here is what I would do. Once the package is built add some code to save it to disk.
Application application = new Application(); Application.SaveToXML(filename, package, nothing);
Now open the package in BIDS/VS and see what is wrong. Hopefully you will get a better validation message with more detail.
I would also build a package in the designer that matches the desired state of your generated package. You can now compare the two. This can be done in the designer, using both the default Editor and also the Advanced Editor, (the generic editor available from the right-click menu). Also compare the XML, open the dtsx file in your favourite editor or notepad. It is messy, but often the designer masks things it does not like so the only way to see a difference is in the XML. BIDS Helper has a feature to try and ease comparing package XML, which may be worth looking into if you do this a lot.
Please do not post duplicate questions. If it is really important that this issue is resolved consider paying for some support. The free support you get here is mostly individuals volunteering their time so they do so on their time schedule not yours.
------------------------------------
Reply:
Issue mentioned in this post is been resolved. Thanks.
------------------------------------
Reply:
Hello,
I am facing same issue. I am trying to attach expressions to two columns, but after running package it gives me same error. Can you please leet me know how you solved that issue?
Also I want to add new columns using derived columns component, need some help in that also.
Thanks,
Sushant
------------------------------------
Excellent New Failover Clustering and Hyper-V Hotfix - 951308
An Excellent new hotfix is available that solves many issues when using Failover Clustering with Hyper-V VMs...
Get yours here: http://support.microsoft.com/kb/951308/en-us
Excellent work by the Failover Clustering team! Thanks, guys!
| Changes to the virtual machine view |
| Changes to virtual machine actions |
| Allow for more than one virtual machine in a "Services or Applications" group Unsupported Cluster configuration. SCVMM does not support managing virtual machines if there is more than one virtual machine in a group. |
| Add support for mount points or volumes without a drive letter |
| Changes to the virtual machine refresh action |
| Behavior changes if any node of the failover cluster has a disconnected virtual machine An error was encountered while loading the list of available virtual machine. Value cannot be null. Parameter name: managementObject. Then, the wizard exits. The Hyper-V Manager console lets virtual machine Virtual Hard Disk (VHD) files reside on removable storage. However, if that removable storage is removed, the state of the virtual machine is disconnected. Therefore, you receive the error message in the High Availability Wizard, and then the wizard exits. |
| Behavior change when you add a pass-through disk to a virtual machine |
| Behavior change when the parent differencing disk is not on shared storage |
| Volume path copy |
Ryan Sokolowski | MVP - Clustering | MCT, MCITP x3, MCTS x6, MCSE x2, CCNA, CCDA, BCFP
Reply:
Regards
Steve
------------------------------------
No comments:
Post a Comment