Mark Barto's Blog

Technical Blog about the Microsoft .NET Platform and everything that surrounds it such as .Net, C#, BizTalk, WCF, ASP.NET, SQL, Silverlight, IIS ...

Various: Howto create temporary files of specific size

Sometimes you want to have a file with a specific size for testing purposes.

Easily you can do that with the following command:

fsutil file createnew c:\onegb.txt 1073741824 

This will create a file with the name onegb.txt with a size of 1GB.

Read More ...

Posted by mabarto on 03-10-2011 and Filed under: Various
1 comments

Framework: Mixed mode assembly is built against version 'v2.0.50727' of the runtime

aa496123_NET_logoenusMSDN_10

When we were upgraded our project to Framework 4 and compiled we were getting the following error:

Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.

Read More ...

Posted by mabarto on 21-09-2011 and Filed under: .NET
0 comments

Microsoft Visual Studio 11 Developer Preview (ISO)

ff657791_DEV11_PLAT(en-us,MSDN_10)


Visual Studio 11 Developer Preview is an integrated development environment that seamlessly spans the entire life cycle of software creation, including architecture, user interface design, code creation, code insight and analysis, code deployment, testing and validation.

Read More ...

Posted by mabarto on 21-09-2011
0 comments

VS: Turn off repairing file when user delete/modify file

vdp-5063



Visual studio creates advertised shortcuts so that when you are starting the application it will check first of existence for each file and repair the file automatically if it is modified or deleted. But sometimes you don't want to have this behavior for each file so how to deal with that ?

 

Read More ...

Posted by mabarto on 11-08-2011 and Filed under: Visual Studio
5 comments

Aspose.Words: Image file cannot be written to disk when using external images

asponse.words

I have a .docx template and have defined some mail merge fields and included an image from the web as link included. When I'm trying to save the document as output for HTML I'm getting the following error:

Image file cannot be written to disk. When saving the document to a stream either Images Folder should be specified or custom streams should be provided via ImageSavingCallback.

 

Read More ...

Posted by mabarto on 13-05-2011 and Filed under: Aspose.Words
5 comments