.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

TT Template files not proper generated in website

Posted By:      Posted Date: October 08, 2010    Points: 0   Category :ASP.Net

When I use TT files to generate code, output files within Websites ar never properly generated.

The resut is always some "Chinese character garbage", and the generated extension is always .cs (whatever the given outputextension may be)

Generating text files works fine in class libraries, MVC websites and  other "projects".

Just not in plain websites. Is this a known issue, am I forgetting some swith or doing something wrong, can or can I not fix this?



It seems to be a problem with the Tangible T4 Editor,

after uninstalling this tool, it seems to work fine. However, I've lost syntax highlighting and intellisense then.

Since this is an external tool, I don't think this forum covers that scope.


View Complete Post

More Related Resource Links

More Windows 2000 UI Goodies: Extending Explorer Views by Customizing Hypertext Template Files


The Web-style interface is the default Explorer folder view for the Desktop Update in Windows 2000. The Desktop Update uses HTML-based hypertext templates to create the Web view, and you can customize these templates to include your own views and commands. This article shows you how the Explorer Web view works and how to build your own custom templates for it. You'll see how to add a command prompt and task buttons to a new folder view using HTML, script, and ActiveX controls. The shell object model and thumbnail shell extensions are also examined, then used to build a simple icon viewer for Explorer.

Dino Esposito

MSDN Magazine June 2000

Login database with visual studio 2010 asp website template


Has anyone deployed a website using the login database in the visual studio 2010 asp website template? I was wondering if I could look at someone's example to see how the integrated this into their website.

creating different sub page design template in sharepoint website


I know very little about sharepoint and have outsourced the design of a master page and sub page design for a new website using sharepoint. i received a site master file with all of the necessary images and the home page works just fine. However the file i received for the sub page design template was an ASPX file with the following instructions:


Here I enclosed the inner page layout file. You upload this file by using following instructions. you can change & edit the blue menu section in the master page itself. If I change into modifiable section you need to add the menu in each and every page, otherwise it will show as empty block. Please let me know your comments.


Steps for uploading inner page layout page.


1.Select the Site Actions button and click on Site Settings->Modify All site settings

Creating Lists On Share-point 2010 Server from .stp list template files using Features

Plz, let me know, how to create list on share-point 2010 server from .stp list template files using features in C#

Request for Proposal Template: "Request Document" list not showing correct files


Hi, I've ran in to a challenge with the standard Request for Proposals (RfP) template. Due to the number of proposals we use, the huge number of documents per proposal and a need to keep historic results I have had to add folders into the "request documents" library for each RfP to reduce the number of documents shown in the list when creating an RfP and confusing users.

All works fine, however when I create a new RfP, I see additional files in the "request documents" list instead of just the folder names. It looks like it is also readin gthe contents of each foldr, but not all files are listed. Versioning is turned on for major and minor releases as default.

As I am unable to view the details of the standard new RfP page I am struggling to work out how to fix this.


Any ideas?





Loading Static Files in a website from a network share


Hi everyone

Hopefully someone can give me some input on this problem

I have a secured network share which has folders arranged by user Identifiers. These folders consists of HTML files (and their content which is spread across sub folders). The content can be any static file (image,css) etc. All i know (through a config file) is the HTML file i need to load. Then i am blind to its content.

I cannot unfortunately import this folder/files under my web application due to certain security concerns.

Is there any way through my web application(Asp.net 2 and IIS 6) that i can load this file when the request comes through.



Reusable Template/style for RDLC files


Hi folks, 

I want to create a template for RDLC files which contains the UI descriptions for tables and charts which acts as a base style/template for other rdlc files.. when I create new RDLC files i do not want to apply UI settings every time i create the RDLC file.. i jst want to do it in the template and use it for newly created RDLC files.. 

As the RDLC files are XML files, i thought of CSS or xsl but that is not the solution bcoz CSS and XSL work only with browser... I want to use the simillar concepts.. so if you geeks have any idea... please share it with me...

Thanks in Anticipation


Add DLL files to a website using VS 2010


Hi, i have created a simple class:

using System;
using System.Linq;
using System.Text;
using System.Collections.Generic;

namespace MCPro
    class DataServer
          Public string GetValue(string value)
                 return value;

i build it by pressing shift+ctrl+B, then i get the DLL from Bin\Debug\MCPro.dll

then on my website i click add reference, then my MCPro.dll was added to the Bin folder, thne i press shift+ctrl+B to build my website and when i try to type"Using MCPro" the namespace or the class is not available in the intellisense??


my reference on this process is this link http://www.c-sharpcorner.com/UploadFile/chitkaran/DLLFile11132007043215AM/DLLFile.aspx


How to verify that the Web Server Extensions TEMPLATE files were updated appropriately for SP2 Langu


Hi all,

According to the http://www.microsoft.com/downloads/en/details.aspx?FamilyId=318D8562-58BD-4329-B1F6-F1941A38BC7F&displaylang=en  download and install page, it states the following below statement.

The language-specific site templates are installed in the \Program Files\Common Files\Microsoft Shared\web server extensions\12\template\number directory, where number is the Language ID for the language that you are installing. For example, the US English language pack installs to the \Program Files\Common Files\Microsoft Shared\web server extensions\12\template\1033 directory. After you install a language pack, site owners and site collection administrators can create sites and site collections based on the language-specific site templates by specifying a language when they are creating a new SharePoint site or site collection.

After the install of the SP2 Language Server packs, is there a way to verify that the Web Server Extensions TEMPLATE files were updated appropriately? Is there a version number updated in the registry or other location.

Thanks, -ja

Building a project from website files


I have been asked to do some work on a website. I downloaded all of the files and chose "open website" in Visual Studio. In the picture below you can see the file structure. When I run the project I get some errors such as "could not load type 'AdminSite.Partner.Listing" or "file project/adminmaster.master does not exist'. Now, those files are indeed there. I have noticed that within the Admin folder and the Home folder there are compiled DLLs in the bin folders. Also, there are project files within each of those folders. I've tried opening the project files and the projects only encompass the files within each of the Admin and Home directories respectively. I'm just wondering what the best way is to set up this solution. As I've done so far, by opening it as a web site, why is it not seeing the DLLs in the bin folders when I run it? Do I need to reference them somehow?

Just not sure how to get satrted on this.


Using files in website.



I am using files on web-site,

written in C#, VS 2008, framework 3.5.


I have the following exception :

request for the permission of type 'system.security.permissions.fileiopermission,mscorlib, version =, Culture = neutral,PublicTokenKey=b77a5c561934e089' failed

How can I overcome this exception (writing something in web.config, my code, assemblyInfo.cs) ?


Thanks :)

change my website template


dear all 
I hope you will all....

i am working now on plan to create my CMS ,i want to know how i can change my website html template from the control panel for my CMS?

like the dotnetnuke CMS , i want to use the theming feature.

please help me to begin.

MFSvcUtil generated proxy files compiling error


I have a temperature sensor running DPWS, for which I have a WSDL file; and I want to talk to it from a Win32 client.
I managed to use MFSvcUtil.exe temperature.wsdl to generate proxy files (TemperatureSensor.cs, TemperatureSensorClientProxy.cs, TemperatureSensorHostedService.cs). However, when I want to use it in my project, my VS2010 gives me the following error:
'www.xxx.yyy.zzz.TemperatureSensor.StatusDataContractSerializer.ReadObject(System.Xml.XmlReader)': no suitable method found to override (TemperatureSensor.cs ...).

My questions are: 
(1) is it the correct way to use MFSvcUtil.exe to generate proxy for a normal .NET application to talk to a DPWS device? 
(2) if answer is yes to Q(1), what is wrong wit

Sharepoint seeking authentication when opening Word / Excel files from website


The company I work for is using SharePoint as a CMS for it's public facing website. I recently enabled FBA (Forms Based Authentication) for the site in order to provide some user specific functionality, but this has caused a side effect with Word / Excel files when opened from the site using Office 2007 / 2010.

Some users are challenged for authentication when opening a Word / Excel document from IE (but not when they're select "save file" instead of "open file"). A window pops up behind IE / Word / Excel (so you often don't realise it's there) showing the sites login page. If the window is dismissed then the document continues to open normally.

It seems to be environmental. Most Office 2007 / 2010 users internally experience this and we've had one report externally of this happening.

Anyone know how to prevent this behaviour?

In case it's relevant: The company also has an internal SharePoint site using NTML authentication allowing internal users to edit the same content visible externally.

I originally suspected the SharePoint header added to responses may be alerting Office to check for authentication to allow extended functionality, but I remove the response header in IIS and it didn't make any difference.


Proper order of a class members, generated via System.CodeDom


I use System.CodeDom to dynamically create a C++/CLI class and fill it with fields and methods. 

When I fill methods with statements, everything is fine. However, when I insert class fields, I run into a problem of order.


For example, the following lines

CodeTypeDelegate delegateDecl = new CodeTypeDelegate("delegate_name");

CodeMemberField delegateField = new CodeMemberField(new CodeTypeReference(delegateDecl.Name), "delegate_field");

codeType.Members.Add(delegateDecl);    /// the order of insertion - delegate declaration first !!!

codeType.Members.Add(delegateField);   /// the order of insertion - field with the delegate usage second!!!

generates the following code:

    public ref class classA


Clean Web.Config Files (VS 2010 and .NET 4.0 Series)

.NET 4 includes a new version of the CLR, and a new .NET 4 specific machine.config file (which is installed side-by-side with the one used by .NET 2, .NET 3 and .NET 3.5).

The new .NET 4 machine.config file now automatically registers all of the ASP.NET tag sections, handlers and modules that we've added over the years, including the functionality for:

.ASP.NET Dynamic Data
.ASP.NET Routing (which can now be used for both ASP.NET WebForms and ASP.NET MVC)
.ASP.NET Chart Control (which now ships built-into ASP.NET V4)
What this means is that when you create a new "Empty ASP.NET application" project in VS 2010, you'll find that the new default application-level web.config file is now clean and simple:

Compiler-generated scopes for local variable declarations

I was tasked with understanding and fixing a bug on error reporting with foreach iteration variables the other day, and it got me thinking about local variable scoping rules in C# in general. First, the bug.
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