.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Having trouble starting my very own MVC tutorial-sans web application.

Posted By:      Posted Date: September 06, 2010    Points: 0   Category :ASP.Net
I'm having trouble trying to understand what to do here. My objective isn't as simple as a regular old CRUD form to create a new entity, but rather a browse index page that will list all of the Evaluations in my database. Each evaluation is attached to a RegisteredCourse which in turn has a Teacher attached to it. Here is how I'd like to present the information:My table structure doesn't allow me to just invoke it simply, so I know I have to create a ViewModel to have my controller give my View something nice and useful. My question is how to create this ViewModel. I'm stumped because I've never tackled this sort of problem before. Thanks. Below is SQL schema if that helps.create table Grado( ID int identity(1,1) primary key, Nombre varchar(64) ) create table Jefe( ID int identity(1,1) primary key, Nombre varchar(128), Apellido varchar(256) ) create table Area( ID int identity(1,1) primary key, IDJefe int foreign key references Jefe(ID), Nombre varchar(64) ) create table Carrera( ID int identity(1,1) primary key, IDArea int foreign key references Area(ID), Nombre varchar(64) ) create table Docente( ID int identity(1,1) primary key, IDCarrera int foreign key references Carrera(ID), IDGrado int foreign key references Grado(ID), Nombre varchar(128), Apellido varchar(256), Carnet varchar(20), FechaNacimiento datetime ) create table Materia( ID int

View Complete Post

More Related Resource Links

Trouble deploying Winforms application that accesses com components

Using VS2008 Framework 3.5. I have a Winforms application (exe) that uses a Winforms user control (dll) that uses a VB6 user control (ocx) that connects to a VB6 ActiveX EXE. All of this runs on a single Windows XP workstation, no networking involved. I have verified that the VB6 components are installed and working properly. When I run the Winforms exe on my development machine, it runs correctly. When I copy the Winforms exe, dll, and interop dlls to another developers workstation, it too runs correctly. When I copy the same files to a non-developer workstation, it does not run. I get an error that says the application encountered a problem and needs to close. The error signature refers to an Event Type:clr20r3 and a system.invalidoperationexception. The workstation has Framework 3.5 and the VB6 components are installed properly. I looked at the CAS and it appears everything is running with fulltrust. I also tried building the assemblies with strong names. And I tried installing them to the GAC... no change. It seems like I must be missing something easy. Can anyone point me in the right direction? Thanks

touchscreen application development tutorial



I am planning ti develop a simple touchscreen application for a store with the sales item. I wish to use the SQL server 2005 as the database. But I am total newbie in developing a touchscreen application. C#, WPF is what I think would be suitable to make a good User Interface and coding.

I would really appreciate if anyone could help me with the basic starting tutorials(eBooks, links to  video tutorials) and where I can get the resources from.

Thank you in advance.

Anish Shrestha. MSP 2010, Nepal.

starting a new independent wpf application from the application itself


In a wpf application i have a class  (AddressesClass) that supplie the address of some folder where a database and some fiels are stoed.

All the classes in this app.domainrefere to these class when they ahve to get or save data.


many classes have indepente threds to read or write data to tehse folders.


One class in this application should allow the user to see data stored in another set of folders

but it needs to used the classes of the app.domain to present the data.



I could change temporary the folder addresses stored in the AddressesClass but sice these classes could be used by  independet threads

started from inside the app.domain i would like to find a more robust way to address this problem.


I would like to start an independent application where the addresses are changed so i do not create problem with the original one


how can i do this in wpf?


i found this interesting article but i can not translate it in vb.net even with a converte









Updating the Tailspin Spyworks Tutorial Application.

I'm planning an overdue update to the Tailspin Spyworks Tutorial and applicaiton. [ Click HERE for the Tailspin Spyworks Home Page ] I intend there to be two phases. 1.) Bug fixes And then in a subsequent release.. 2.) A few feature enhancements. I'll be reviewing all the comments and re-editing the .pdf. If you have any additional requests / suggestions please send them to me. [ Click HERE for my contact form . ] THANKS ! Read More......(read more)

Problems with UserProfile Application Service not starting.



I'm using the Rational Guide from Harbar.net, and have the following problem:

UserProfileApplication.SynchronizeMIIS: Failed to configure ILM, will attempt during next rerun. Exception: System.Data.SqlClient.SqlException: Specified collection 'StringSchemaCollection' cannot be dropped because it is used by object 'MyAD_Domain\spfarm.GetObjectCurrent'.     

I found references to simalr errors with Kerberos auth problems, but not one like this.

What did I do wrong, and how do I correct it?



"Windows SharePoint Services Web Application" service is showing 'Error starting'.


I just installed MOSS SP2 and ran the config wizard on the server.
I am facing issue with our farm. Found that "Windows SharePoint Services Web Application" is in a problem.

I tried below commands:-
stsadm -o provisionservice -action stop -servicetype spwebservice -servicename ""
stsadm -o provisionservice -action start -servicetype spwebservice -servicename ""
But getting error:- Provision of service failed. Additional information: 1387.

Checked eventvwr and found below error log:-
Event Type: Error
Event Source: Windows SharePoint Services 3
Event Category: Topology
Event ID: 7034
Date:  10/21/2010
Time:  5:16:10 AM
User:  N/A
Computer: <Servername>
An attempt to start/stop instance  of service Windows SharePoint Services Web Application on server <servername> did not succeed. Re-run the action via UI or command line on the specified server.

None of the sites are working and I cannot see anything in the IIS folder nor in the IIS manager. All application folders are missing. But, I can see all the sites & Content databasesin the Central Admin.

Can someone please help?


Forefront Identity Manager errors when starting the User Profile Synchronization Service Application

I have seen several people who are having trouble getting the User Profile Synchronization Service to start.  None of those threads have the set of errors that I am seeing.  I have all the prerequisites installed and I am using the farm administrator account which has admin rights both on the SP server and the SQL box.  This is a split back-to-back extranet topology and there is a one way trust between the extranet domain and the internal domain.  The administrator account is an internal domain account.  I receive the following two Forefront errors every five seconds in the event log after starting the User Profile Synchronization Service Application:

.Net SqlClient Data Provider: System.Data.SqlClient.SqlException: HostId is not registered
   at Microsoft.ResourceManagement.Data.Exception.DataAccessExceptionManager.ThrowException(SqlException innerException)
   at Microsoft.ResourceManagement.Data.DataAccess.RetrieveWorkflowDataForHostActivator(Int16 hostId, Int16 pingIntervalSecs, Int32 activeHostedWorkflowDefinitionsSequenceNumber, Int16 workflowControlMessagesMaxPerMinute, Int16 requestRecoveryMaxPerMinute, Int16 requestCleanupMaxPerMinute, Boolean runRequestRecoveryScan, Boolean& doPolicyApplicationDispatch, ReadOnlyCollection`1& activ

How to solve Application error at the time of starting debugger

Hello all,

This is my first post here. So if I posted in wrong forum point me to the correct direction.

I have installed Visual Studio 2005 (.Net 2.0) in my Windows Xp Service Pack 2 operating system.
When the setup had finished the wizard displayed me the following message :-

Visual Studio Setup is complete.
Setup is completed with some warnings."

Now when I clicked the "View Error Log" link a web document opened and there I found so many lines. Of them one is :-

"Failed to copy the file properly Webdev.Webserver.Exe"

Now when I'm trying to launch Vs2005 IDE, it is working but when I'm trying to run my programs by pressing F5 or anyone of the available debugger options I'm fetching the following errors :-

In case of windows applications (regradless whether the selected language is VB or C#) :-
"The application failed to initiliaze properly (0xc000007b). Click on OK to terminate the application."

In case of web a

SQL Injection Walkthrough / Tutorial

SQL Injection is a trick to inject SQL query/command as an input possibly via web pages. Many web pages take parameters from web user, and make SQL query to the database. Take for instance when a user login, web page that user name and password and make SQL query to the database to check if a user has valid name and password. With SQL Injection, it is possible for us to send crafted user name and/or password field that will change the SQL query and thus grant us something else.

Microsoft's Collaborative Application Markup Language (CAML) Loop

discovered an interesting error recently while working with Microsoft's Collaborative Application Markup Language (CAML) that, surprisingly, had received no ink. Partly what surprises me about this is that the error may require you to rewrite large sections of your code if you haven't previously considered this SharePoint limitation. I'll start with some context, but first of all the error is:

SharePoint Tutorial - Web Parts

A page in SharePoint is comprised of web parts the exist within zones. Web parts are available for just about everything. For example in the page below there are four web part highlighted by different colors. The purple web part displays a short list of the new announcements stored in the annoucements library. The pink web part displays events from a calendar within the site. The green web part displays an image from a location the user specifies. The gray web part displays a list of links from the links list on the site.

SharePoint Tutorial - Team Sites

Team sites are small web sites that are created to store everything about a particular thing. For example a site can be created for a department in an organization like human resources. I site can be created for a particular project. A site can even be created for a meeting. Everything about the thing (department, project, meeting) like documents, lists, calendars, etc. is stored in that site.

SharePoint Tutorial - Libraries

A library is a feature in SharePoint that stores files (documents). Think of a library as a folder on your file system. For example, a library can be created to store resumes in the human resources team site. A library is usually created for a specific type of file. Libraries can contain metadata to describe the particular file in more detail and to make it easier to find.

SharePoint Tutorial - Lists

A list is a feature in SharePoint that stores a lists of information. For example, a list can be created to store web links in the human resources team site. A list is usually created for a specific type of information. Lists can contain metadata to describe the particular information in more detail and to make it easier to find.

SharePoint Tutorial - Security

Security in SharePoint is comprised of users, groups and roles.

Users, Groups and Roles

A user account comes from the authentication system. For example, if Active Directory is used to authenticate then the user accounts will come from it.

There are two types of groups SharePoint uses: domain groups and SharePoint groups.

SharePoint Tutorial - SharePoint Logical Architecture

The SharePoint logical architecure consists of nested and isolated levels. These levels provide benefits for security, navigation, search, branding and ect. depending on the level

SharePoint Farm
The base level for any SharePoint implementation is the SharePoint farm. Physically a farm can consist of one server or many servers. An organization may implement one or more farms. This usually depends on security and performance needs.

SharePoint Tutorial - Content Types

SharePoint content types provide users with a way to manage and organize content in a more meaningful way. It's a reusable of settings you want to apply to a particular type of document in a library or item in a list.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend