1
Posted on 6:56 AM by Softminer and filed under ,

XAML browser applications (XBAPs) combines features of both Web applications and rich-client applications. Like Web applications, XBAPs can be deployed to a Web server and started from Internet Explorer or Firefox.
Create an HTML page that contains a hyperlink to open the deployment manifest, which is the file that has the .xbap extension.


<html> 
  <head></head>
  <body> 
    <a href="WpfBrowserApplication1.xbap">Click this link to launch the application</a>
  </body> 
</html>

In Visual Studio, open the project properties.

On the Security tab, click Advanced.

The Advanced Security Settings dialog box appears.

Make sure that the Grant the application access to its site of origin check box is checked and then click OK.


On the Debug tab, select the Start browser with URL option and specify the URL for the HTML page that contains the XBAP.


In Internet Explorer, click the Tools button and then select Internet Options.

The Internet Options dialog box appears.

Click the Advanced tab.

In the Settings list under Security, check the Allow active content to run in files on My Computer check box.




Click OK.
0
Posted on 8:27 AM by Softminer and filed under , ,








First Download the latest version of BlogEngine from following URL
http://blogengine.codeplex.com/

by defualt BlogEngine is using XmlBlogProvider. therefore all data is saved in APP_DATA in XML files.

to change it to SQL Server follow the instructions:

create a Database in SQL Server 2005 or 2008.

Run the SQL script on you Database, the script is in this Folder:
BlogEngine.Web\setup\SQLServer\

Replace SQLServerWeb.config with Web.config

change the connection string in Web.config to your DB connection

change the blogProvider from XmlBlogProvider to DbBlogProvider

<BlogEngine>
<blogProvider defaultProvider="DbBlogProvider">
<providers>
 <add name="XmlBlogProvider" type="BlogEngine.Core.Providers.XmlBlogProvider, BlogEngine.Core"/>
 <add name="DbBlogProvider" type="BlogEngine.Core.Providers.DbBlogProvider, BlogEngine.Core" connectionStringName="BlogEngine"/>
</providers>
</blogProvider>
</BlogEngine>


The appliction should be runnable now.

PS: for importing Post you can use
bin/BlogImporter.asmx
call the service with WCF TestClient
0
Posted on 5:50 AM by Softminer and filed under ,

Elmah:
Error Logging Modules and Handlers for ASP.NET

Error Handling in MVC with ELMAH
Error Logging Modules and Handlers for ASP.NET

Pingdom
Be the first to know when your website is down

Host Tracker
website monitoring service

LinqPad
Convert Linq to SQL
0
Posted on 6:53 AM by Softminer and filed under

SQL Server Profiler shows how SQL Server resolves queries internally. on Microsoft SQL Server Management Studio on Menus Tools-> SQL Server Profiler.



as you can see the log file generated is too big to track. by adding Application Name to ConnectionString , you can filter the Log file:



server=MyServer;database=MyDatabase;Integrated Security=SSPI;Application Name=My Application;